/* Jobs Container */
.jobs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Job Listing */
.job-listing {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.job-listing h2 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 24px;
}

/* Job Meta */
.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.job-meta span {
    background: #f5f5f5;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
}

/* Job Description */
.job-description {
    line-height: 1.6;
    color: #444;
    margin-bottom: 20px;
}

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

.job-description ul,
.job-description ol {
    margin: 10px 0 20px 25px;
}

.job-description li {
    margin-bottom: 5px;
}

/* Apply Button */
.apply-button {
    background: #0073aa;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s;
}

.apply-button:hover {
    background: #005a87;
}

/* Modal */
#application-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 999999;
    overflow-y: auto;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 500px;
    margin: 50px auto;
    padding: 30px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

.close-modal:hover {
    color: #333;
}

.modal-content h3 {
    margin: 0 0 25px 0;
    color: #333;
    font-size: 22px;
    padding-right: 30px;
}

/* Form */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea,
.form-group input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 15px;
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.file-info {
    color: #666;
    font-size: 12px;
    margin-top: 5px;
    font-style: italic;
}

/* Submit Button */
.submit-button {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    transition: background 0.3s;
}

.submit-button:hover {
    background: #218838;
}

.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Messages */
#application-message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 5px;
    font-weight: 500;
}

#application-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#application-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Admin Table */
.wp-list-table th {
    font-weight: 600;
    background: #f1f1f1;
}

.wp-list-table td {
    vertical-align: middle;
}

.wp-list-table select {
    padding: 3px;
}
/* Email Settings Styles */
#job_email_settings .form-table th {
    width: 200px;
}

#job_email_settings textarea {
    font-family: monospace;
    background: #f9f9f9;
}

#job_email_settings .description {
    color: #666;
    font-style: italic;
    margin-top: 5px;
    line-height: 1.5;
}

/* Admin Notice */
.notice-success {
    background: #d4edda;
    border-left-color: #28a745;
    color: #155724;
    padding: 12px;
    margin: 20px 0;
    border-radius: 4px;
}

/* Button Styles */
.button-small {
    font-size: 12px;
    padding: 3px 10px;
    margin: 2px;
}

/* Admin Table Enhancements */
.wp-list-table .button-small {
    margin-right: 5px;
}

.wp-list-table td {
    vertical-align: middle;
}

/* Email Settings Page */
.careers-email-settings {
    background: #fff;
    padding: 20px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    margin: 20px 0;
}

.careers-email-settings h2 {
    margin-top: 0;
    color: #0073aa;
}

/* Responsive */
@media (max-width: 768px) {
    .job-listing {
        padding: 20px;
    }
    
    .job-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .modal-content {
        width: 95%;
        padding: 20px;
        margin: 30px auto;
    }
}
