/**
 * Nicholas Air Greenhouse Jobs - Styles
 */

/* Container */
.naghj-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 0;
}

/* Loading Spinner */
.naghj-loading {
    text-align: center;
    padding: 40px 20px;
}

.naghj-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #003366;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: naghj-spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes naghj-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Jobs Table/List */
.naghj-jobs-table {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.naghj-job-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #ddd;
    transition: background-color 0.2s ease;
}

.naghj-job-row:last-child {
    border-bottom: none;
}

.naghj-job-row:hover {
    background-color: #f8f9fa;
}

.naghj-job-info {
    flex: 1;
}

.naghj-job-title {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
    color: #003366;
}

.naghj-job-location {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.naghj-job-action {
    flex-shrink: 0;
    margin-left: 20px;
}

.naghj-apply-button {
    background-color: #003366;
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.naghj-apply-button:hover {
    background-color: #00509e;
}

.naghj-apply-button:active {
    background-color: #002244;
}

/* No Jobs Message */
.naghj-no-jobs {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

/* Job Details */
.naghj-job-details {
    padding: 20px 0;
}

.naghj-back-button {
    background-color: #f8f9fa;
    color: #003366;
    border: 1px solid #ddd;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: background-color 0.2s ease;
}

.naghj-back-button:hover {
    background-color: #e9ecef;
}

.naghj-job-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #003366;
}

.naghj-job-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 700;
    color: #003366;
}

.naghj-job-header .naghj-job-location {
    margin: 0;
    font-size: 16px;
    color: #666;
}

.naghj-job-description {
    margin-bottom: 40px;
}

.naghj-job-description h3 {
    font-size: 22px;
    font-weight: 600;
    color: #003366;
    margin: 0 0 20px 0;
}

.naghj-job-description-content {
    line-height: 1.6;
    color: #333;
}

.naghj-job-description-content p {
    margin-bottom: 15px;
}

.naghj-job-description-content ul,
.naghj-job-description-content ol {
    margin-bottom: 15px;
    padding-left: 30px;
}

.naghj-job-description-content li {
    margin-bottom: 8px;
}

/* Application Form */
.naghj-application-form {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid #ddd;
}

.naghj-application-form h3 {
    font-size: 22px;
    font-weight: 600;
    color: #003366;
    margin: 0 0 20px 0;
}

#grnhse_app {
    min-height: 400px;
}

/* Error Messages */
.naghj-error,
.naghj-error-message {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

.naghj-error p,
.naghj-error-message p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .naghj-job-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }
    
    .naghj-job-action {
        margin-left: 0;
        margin-top: 15px;
        width: 100%;
    }
    
    .naghj-apply-button {
        width: 100%;
        text-align: center;
    }
    
    .naghj-job-title {
        font-size: 18px;
    }
    
    .naghj-job-header h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .naghj-container {
        padding: 10px 0;
    }
    
    .naghj-job-row {
        padding: 12px;
    }
    
    .naghj-job-title {
        font-size: 16px;
    }
    
    .naghj-apply-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}
