﻿/* ============================================================
   ATS MODULE CUSTOM CSS
   Uses global theme tokens from themes.css
   ============================================================ */

/* CARD CONTROL */
.ats-card {
    border-radius: 12px;
    border: 1px solid rgba(69, 85, 108, 0.18);
    padding: 24px;
    background: var(--color-primary-light, #FAFAF9);
    color: var(--text-dark, #1D293D);
    box-shadow: 0 10px 24px rgba(29, 41, 61, 0.08);
}

/* HEADINGS */
.ats-heading {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--color-primary-dark, #1D293D);
    margin-bottom: 1rem;
}

.ats-subheading {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark, #1D293D);
}

/* TEXTAREA */
.ats-textarea {
    font-size: 0.95rem;
    line-height: 1.4rem;
    border-radius: 10px;
    color: var(--text-dark, #1D293D);
    background: #FFFFFF;
    border: 1px solid rgba(69, 85, 108, 0.22);
}

    .ats-textarea:focus {
        border-color: var(--hover-glow-light, #53EAFD);
        box-shadow: 0 0 0 0.2rem rgba(83, 234, 253, 0.25);
        outline: none;
    }

/* KEYWORD CHIPS */
.ats-chip {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    margin: 3px;
}

    .ats-chip.match {
        background-color: rgba(154, 230, 48, 0.18);
        color: var(--text-dark, #1D293D);
        border: 1px solid rgba(154, 230, 48, 0.4);
    }

    .ats-chip.missing {
        background-color: rgba(255, 32, 86, 0.12);
        color: var(--state-danger, #FF2056);
        border: 1px solid rgba(255, 32, 86, 0.28);
    }

/* SCORE BAR */
.ats-score-bar {
    height: 28px !important;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(69, 85, 108, 0.16);
}

.ats-score-progress {
    font-weight: 800;
    font-size: 0.9rem;
    line-height: 28px;
    color: var(--text-light, #FAFAF9);
}

.ats-score-high {
    background-color: var(--state-success, #9AE630) !important;
    color: var(--text-dark, #1D293D) !important;
}

.ats-score-mid {
    background-color: var(--state-warning, #FFD230) !important;
    color: var(--text-dark, #1D293D) !important;
}

.ats-score-low {
    background-color: var(--state-danger, #FF2056) !important;
    color: var(--text-light, #FAFAF9) !important;
}

/* SUGGESTIONS */
.ats-suggestions li {
    padding: 12px;
    border-radius: 10px;
    background: rgba(250, 250, 249, 0.88);
    border: 1px solid rgba(69, 85, 108, 0.14);
    color: var(--text-dark, #1D293D);
}

/* HISTORY TABLE */
.ats-table thead th {
    background: rgba(69, 85, 108, 0.08);
    font-weight: 800;
    color: var(--text-dark, #1D293D);
}

/* BUTTONS */
.btn-ats-dark {
    background-color: var(--color-primary-dark, #1D293D);
    color: var(--text-light, #FAFAF9);
    border: none !important;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 10px;
    transition: background-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

    .btn-ats-dark:hover {
        background-color: var(--highlight-attention, #FE9A37);
        color: var(--color-primary-dark, #1D293D);
        box-shadow: 0 10px 24px rgba(29, 41, 61, 0.18);
        transform: translateY(-2px);
    }

    .btn-ats-dark:focus {
        box-shadow: 0 0 0 0.2rem rgba(29, 41, 61, 0.3);
        outline: none;
    }

/* PREFORMATTED TEXT */
.ats-pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    overflow-x: hidden;
    max-width: 100%;
}

/* BADGES */
.badge-ats-keys {
    background-color: var(--surface-card-accent-blue, #74D4FF);
    color: var(--color-primary-dark, #1D293D);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .ats-card {
        padding: 16px;
    }

    .ats-heading {
        font-size: 1.35rem;
    }
}
