.job-scout-ai {
    max-width: 1100px;
    margin: 0 auto;
}

.job-scout-header {
    margin-bottom: 32px;
}

.job-scout-header h1 {
    margin-bottom: 6px;
}

.job-scout-subtitle {
    margin: 0;
    font-size: 18px;
    opacity: 0.75;
}

.job-scout-scan {
    margin-bottom: 30px;
    padding: 28px;
    border: 1px solid #dcdcde;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.job-scout-scan-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e5e5;
}

.job-scout-scan-header h2 {
    margin: 0;
    font-size: 28px;
}

.job-scout-scan-time {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.65;
}

.job-scout-results {
    min-height: 120px;
}


/*
 * Front-end feedback notice.
 */

.job-scout-feedback-notice {
    margin-bottom: 24px;
    padding: 14px 18px;
    border: 1px solid #b8d8b8;
    border-radius: 8px;
    background: #f2faf2;
    font-weight: 600;
}

.job-scout-scan-source {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #ececec;
    font-size: 12px;
    font-weight: 600;
}


/*
 * Individual front-end job result cards.
 */

.job-scout-job-card {
    margin-bottom: 20px;
    padding: 22px;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    background: #f9f9f9;
}

.job-scout-job-card:last-child {
    margin-bottom: 0;
}

.job-scout-job-title {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 22px;
}

.job-scout-job-card p {
    margin-top: 0;
    margin-bottom: 16px;
}

.job-scout-job-card p:last-child {
    margin-bottom: 0;
}

.job-scout-job-company,
.job-scout-job-posting-date,
.job-scout-job-scores,
.job-scout-job-location,
.job-scout-job-compensation {
    margin-bottom: 14px;
}

.job-scout-availability-warning {
    padding: 12px 14px;
    border: 1px solid #dba617;
    border-radius: 6px;
    background: #fff8e5;
    color: #5f4700;
}


/*
 * Structured job details.
 *
 * Used for responsibilities, required qualifications,
 * and preferred qualifications collected during scans.
 */

.job-scout-job-details {
    margin-top: 20px;
    margin-bottom: 20px;
}

.job-scout-job-detail-section {
    margin-bottom: 18px;
}

.job-scout-job-detail-section:last-child {
    margin-bottom: 0;
}

.job-scout-job-detail-section h4 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 17px;
}

.job-scout-job-detail-section ul {
    margin: 0;
    padding-left: 22px;
    list-style: disc;
}

.job-scout-job-detail-section li {
    margin-bottom: 6px;
}

.job-scout-job-detail-section li:last-child {
    margin-bottom: 0;
}


/*
 * Job result action row.
 *
 * Elementor controls the appearance of the buttons.
 * Job Scout only controls layout and spacing.
 */

.job-scout-job-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #dcdcde;
}

.job-scout-feedback-form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
}

.job-scout-job-link,
.job-scout-action-button {
    flex: 0 0 auto;
}

.job-scout-ai button.job-scout-action-button {
    border-color: transparent !important;
    border: none !important;
}


/*
 * Compact rows retained after classification.
 */

.job-scout-processed-job {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 10px;
    padding: 12px 14px;
    border: 1px solid #dcdcde;
    border-radius: 7px;
    background: #f5f5f5;
    color: #3c434a;
}

.job-scout-processed-job:last-child {
    margin-bottom: 0;
}

.job-scout-processed-job-main,
.job-scout-processed-job-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.job-scout-processed-job-meta {
    justify-content: flex-end;
    font-size: 13px;
}

.job-scout-status-badge,
.job-scout-opportunity-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    background: #e2e5e9;
    font-size: 12px;
    font-weight: 600;
}

.job-scout-status-pass .job-scout-status-badge,
.job-scout-opportunity-closed .job-scout-opportunity-badge {
    background: #eadede;
}

/*
 * Job workflow modals.
 */

body.job-scout-modal-open {
    overflow: hidden;
}

.job-scout-modal {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.55);
}

.job-scout-modal[hidden] {
    display: none;
}

.job-scout-modal-panel {
    width: min(520px, 100%);
    padding: 24px;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.job-scout-modal-panel h3 {
    margin-top: 0;
}

.job-scout-modal-panel textarea {
    width: 100%;
    margin: 8px 0 18px;
    padding: 10px;
    resize: vertical;
}

.job-scout-modal-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.job-scout-choice-group {
    margin: 0 0 20px;
    padding: 0;
    border: 0;
}

.job-scout-choice-group legend,
.job-scout-field > span {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.job-scout-choice {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 14px 8px 0;
}

.job-scout-field {
    display: block;
    margin-bottom: 16px;
}

.job-scout-field input[type="date"],
.job-scout-field input[type="file"],
.job-scout-field textarea {
    box-sizing: border-box;
    width: 100%;
}

.job-scout-field input[type="date"],
.job-scout-field input[type="file"] {
    padding: 8px;
}

.job-scout-field-help {
    margin-top: -6px;
    opacity: 0.72;
}

.job-scout-evaluation-modal {
    font-size: 14px;
    text-align: left;
}

.job-scout-evaluation-panel {
    width: min(760px, 100%);
    max-height: 85vh;
    overflow-y: auto;
}

.job-scout-evaluation-panel h4 {
    margin: 22px 0 8px;
}

.job-scout-evaluation-job {
    margin: -4px 0 18px;
}

.job-scout-evaluation-scores {
    margin: 0 0 22px;
    border: 1px solid #dcdcde;
    border-radius: 6px;
}

.job-scout-evaluation-scores > div {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 12px;
    padding: 9px 12px;
    border-bottom: 1px solid #dcdcde;
}

.job-scout-evaluation-scores > div:last-child {
    border-bottom: 0;
}

.job-scout-evaluation-scores dt {
    font-weight: 600;
}

.job-scout-evaluation-scores dd {
    margin: 0;
}

.job-scout-evaluation-bottom-line {
    margin-bottom: 22px;
}

.job-scout-application-entry {
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    background: #f9f9f9;
}

.job-scout-application-entry:last-child {
    margin-bottom: 0;
}

.job-scout-application-entry h4 {
    margin: 0 0 8px;
}

.job-scout-application-documents {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0;
}


/*
 * Empty scan state.
 */

.job-scout-empty {
    padding: 18px 0;
}

.job-scout-empty h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 22px;
}

.job-scout-empty p {
    margin-bottom: 0;
    opacity: 0.75;
}


/*
 * Responsive front-end layout.
 */

@media (max-width: 700px) {

    .job-scout-scan {
        padding: 20px;
    }

    .job-scout-scan-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .job-scout-scan-header h2 {
        font-size: 24px;
    }

    .job-scout-job-card {
        padding: 18px;
    }

    .job-scout-job-title {
        font-size: 20px;
    }

    .job-scout-job-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .job-scout-feedback-form {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .job-scout-job-link,
    .job-scout-action-button {
        width: 100%;
    }

    .job-scout-processed-job {
        align-items: flex-start;
        flex-direction: column;
    }

    .job-scout-processed-job-meta {
        justify-content: flex-start;
    }

    .job-scout-modal-actions {
        align-items: stretch;
        flex-direction: column;
    }
}


/*
 * Saved Jobs admin table.
 */

.post-type-job_scout_job .wp-list-table .check-column {
    width: clamp(20px, 5%, 36px) !important;
    max-width: 36px !important;
    padding-left: 8px;
    padding-right: 0;
}

.post-type-job_scout_job .wp-list-table .column-title {
    width: auto;
}

.post-type-job_scout_job .wp-list-table .column-company {
    width: 11%;
}

.post-type-job_scout_job .wp-list-table .column-fit_score {
    width: 6%;
    max-width: 16px;
}

.post-type-job_scout_job .wp-list-table .column-priority_score {
    width: 7%;
    max-width: 20px;
}

.post-type-job_scout_job .wp-list-table .column-should_apply {
    width: 7%;
}

.post-type-job_scout_job .wp-list-table .column-status {
    width: 8%;
    max-width: 20px;
}

.post-type-job_scout_job .wp-list-table .column-opportunity_status {
    width: 7%;
    max-width: 20px;
}

.post-type-job_scout_job .wp-list-table .column-first_seen {
    width: 9%;
}

.post-type-job_scout_job .wp-list-table .column-last_seen {
    width: 9%;
}


/*
 * Keep short values from wrapping unnecessarily.
 */

.post-type-job_scout_job .wp-list-table .column-fit_score,
.post-type-job_scout_job .wp-list-table .column-priority_score {
    line-height: 1em;
}

.post-type-job_scout_job .wp-list-table .column-status,
.post-type-job_scout_job .wp-list-table .column-opportunity_status {
    white-space: nowrap;
}


/*
 * Dashboard scan controls and live progress.
 */

.job-scout-live-page-form,
.job-scout-manual-slot-choice {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.job-scout-manual-slot-choice {
    border: 0;
    margin: 16px 0;
    padding: 0;
}

.job-scout-manual-slot-choice label {
    margin-right: 6px;
}

.job-scout-scan-progress {
    margin: 16px 0;
    max-width: 680px;
}

.job-scout-scan-progress-track {
    background: #dcdcde;
    border-radius: 999px;
    height: 12px;
    overflow: hidden;
    position: relative;
}

.job-scout-scan-progress-track span {
    background: #2271b1;
    display: block;
    height: 100%;
    min-width: 0;
    transition: width 0.3s ease;
}

.job-scout-scan-progress.is-indeterminate .job-scout-scan-progress-track span {
    animation: job-scout-progress 1.4s ease-in-out infinite;
    min-width: 28%;
    position: absolute;
}

@keyframes job-scout-progress {
    from { left: -30%; }
    to { left: 100%; }
}
