/* =================================================
   ATS CHECKER – PROFESSIONAL REDESIGN
   ================================================= */
:root {
    --ac-bg: #f5f5f5;
    --ac-surface: #ffffff;
    --ac-border: #e8e8e8;
    --ac-border-light: #f0f0f0;
    --ac-text: #1a1a1a;
    --ac-text-sec: #666666;
    --ac-text-muted: #999999;
    --ac-primary: #4a3aff;
    --ac-primary-light: #eeedff;
    --ac-primary-dark: #3a2be0;
    --ac-green: #3b82f6;
    --ac-green-light: #dbeafe;
    --ac-orange: #f59e0b;
    --ac-orange-light: #fef3c7;
    --ac-red: #ef4444;
    --ac-red-light: #fee2e2;
    --ac-radius: 12px;
    --ac-radius-sm: 8px;
    --ac-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    --ac-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --ac-transition: all 0.25s ease;
}

.ac-page {
    background: var(--ac-bg);
    min-height: 100vh;
    padding-bottom: 48px;
}

/* ---- Hero ---- */
.ac-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    padding: 48px 24px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ac-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(74, 58, 255, 0.15), transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(16, 185, 129, 0.1), transparent 50%);
}

.ac-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.ac-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: rgba(74, 58, 255, 0.2);
    border: 1px solid rgba(74, 58, 255, 0.3);
    border-radius: 20px;
    color: #a3b3ff;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.ac-hero-badge i {
    color: #3b82f6;
}

.ac-hero h1 {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px;
    line-height: 1.2;
}

.ac-hero h1 .highlight {
    color: #3b82f6;
}

.ac-hero p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 24px;
    line-height: 1.5;
}

/* Hero Features */
.ac-hero-features {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.ac-hero-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 600;
}

.ac-hero-feature i {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

/* ---- Layout ---- */
.ac-layout {
    max-width: 1280px;
    margin: -40px auto 0;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
    position: relative;
    z-index: 2;
}

/* ---- Input Panel ---- */
.ac-input-panel {
    background: var(--ac-surface);
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius);
    overflow: hidden;
    box-shadow: var(--ac-shadow-md);
}

.ac-panel-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--ac-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ac-panel-header h2 {
    font-size: 16px;
    font-weight: 700;
    color: var(--ac-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ac-panel-header h2 i {
    color: var(--ac-primary);
}

/* Tabs */
.ac-tabs {
    display: flex;
    border-bottom: 1px solid var(--ac-border);
    background: #fafafa;
}

.ac-tab-btn {
    flex: 1;
    padding: 12px 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--ac-text-muted);
    cursor: pointer;
    border: none;
    background: transparent;
    border-bottom: 2px solid transparent;
    transition: var(--ac-transition);
}

.ac-tab-btn:hover {
    color: var(--ac-primary);
}

.ac-tab-btn.active {
    color: var(--ac-primary);
    border-bottom-color: var(--ac-primary);
    background: var(--ac-primary-light);
}

.ac-tab-panel {
    display: none;
}

.ac-tab-panel.active {
    display: block;
}

/* Form */
.ac-form-body {
    padding: 20px 22px;
}

.ac-field {
    margin-bottom: 16px;
}

.ac-field label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--ac-text);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.ac-field label i {
    color: var(--ac-primary);
    font-size: 13px;
}

.ac-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--ac-border);
    border-radius: var(--ac-radius-sm);
    font-size: 13px;
    color: var(--ac-text);
    font-family: 'Courier New', monospace;
    background: #fafafa;
    outline: none;
    transition: var(--ac-transition);
    resize: vertical;
    min-height: 200px;
    line-height: 1.6;
    box-sizing: border-box;
}

.ac-textarea:focus {
    border-color: var(--ac-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(74, 58, 255, 0.08);
}

.ac-textarea::placeholder {
    color: var(--ac-text-muted);
    font-family: inherit;
}

.ac-textarea.job-desc {
    font-family: inherit;
    min-height: 120px;
}

.ac-field-hint {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--ac-text-muted);
    margin-top: 5px;
}

.ac-file-input {
    width: 100%;
    padding: 12px;
    border: 2px dashed var(--ac-border);
    border-radius: var(--ac-radius-sm);
    background: #fafafa;
    cursor: pointer;
    font-size: 13px;
    color: var(--ac-text-sec);
    box-sizing: border-box;
    transition: var(--ac-transition);
}

.ac-file-input:hover {
    border-color: var(--ac-primary);
}

/* Submit */
.ac-form-actions {
    padding: 16px 22px;
    border-top: 1px solid var(--ac-border);
    display: flex;
    gap: 10px;
}

.ac-btn-analyze {
    flex: 1;
    padding: 13px 20px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    border: none;
    border-radius: var(--ac-radius-sm);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--ac-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ac-btn-analyze:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.3);
}

.ac-btn-builder {
    padding: 13px 18px;
    background: var(--ac-surface);
    color: var(--ac-primary);
    border: 2px solid var(--ac-primary);
    border-radius: var(--ac-radius-sm);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--ac-transition);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ac-btn-builder:hover {
    background: var(--ac-primary-light);
    color: var(--ac-primary);
}

/* ---- Results Panel ---- */
.ac-results-panel {
    background: var(--ac-surface);
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius);
    overflow: hidden;
    box-shadow: var(--ac-shadow-md);
}

/* Score Ring */
.ac-score-hero {
    padding: 30px 24px;
    text-align: center;
    border-bottom: 1px solid var(--ac-border);
}

.ac-ring-wrap {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 16px;
}

.ac-ring-wrap svg {
    transform: rotate(-90deg);
}

.ac-ring-wrap .ring-bg {
    stroke: var(--ac-border);
}

.ac-ring-wrap .ring-fill {
    transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.ac-ring-num {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ac-ring-num .big {
    font-size: 42px;
    font-weight: 900;
    line-height: 1;
}

.ac-ring-num .unit {
    font-size: 11px;
    font-weight: 700;
    color: var(--ac-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.ac-score-status {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px;
}

.ac-score-status.excellent {
    color: var(--ac-green);
}

.ac-score-status.good {
    color: var(--ac-orange);
}

.ac-score-status.fair {
    color: var(--ac-red);
}

.ac-score-sub {
    font-size: 12px;
    color: var(--ac-text-muted);
}

/* Quick Stats */
.ac-quick-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid var(--ac-border);
}

.ac-qs-item {
    text-align: center;
    padding: 14px 8px;
    border-right: 1px solid var(--ac-border-light);
}

.ac-qs-item:last-child {
    border-right: none;
}

.ac-qs-item .qs-num {
    font-size: 18px;
    font-weight: 800;
    color: var(--ac-primary);
}

.ac-qs-item .qs-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--ac-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 2px;
}

/* Breakdown bars */
.ac-breakdown {
    padding: 20px 22px;
    border-bottom: 1px solid var(--ac-border);
}

.ac-breakdown h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--ac-text);
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ac-breakdown h3 i {
    color: var(--ac-primary);
}

.ac-bar-item {
    margin-bottom: 12px;
}

.ac-bar-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.ac-bar-label span {
    font-size: 12px;
    font-weight: 700;
    color: var(--ac-text);
}

.ac-bar-label .pts {
    font-size: 12px;
    font-weight: 800;
}

.ac-bar-track {
    height: 8px;
    background: var(--ac-border);
    border-radius: 4px;
    overflow: hidden;
}

.ac-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease;
}

/* Check Items */
.ac-checks {
    padding: 20px 22px;
    border-bottom: 1px solid var(--ac-border);
}

.ac-checks h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--ac-text);
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ac-checks h3 i {
    color: var(--ac-primary);
}

.ac-check-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--ac-radius-sm);
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.ac-check-item .ci-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.ac-check-item.pass {
    background: var(--ac-green-light);
    color: #065f46;
}

.ac-check-item.pass .ci-icon {
    background: var(--ac-green);
    color: #fff;
}

.ac-check-item.warn {
    background: var(--ac-orange-light);
    color: #92400e;
}

.ac-check-item.warn .ci-icon {
    background: var(--ac-orange);
    color: #fff;
}

.ac-check-item.fail {
    background: var(--ac-red-light);
    color: #991b1b;
}

.ac-check-item.fail .ci-icon {
    background: var(--ac-red);
    color: #fff;
}

/* Tips */
.ac-tips {
    padding: 20px 22px;
    border-bottom: 1px solid var(--ac-border);
}

.ac-tips h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--ac-text);
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ac-tips h3 i {
    color: var(--ac-orange);
}

.ac-tip-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 14px;
    background: var(--ac-orange-light);
    border-radius: var(--ac-radius-sm);
    margin-bottom: 6px;
    font-size: 12px;
    color: #92400e;
    font-weight: 500;
    line-height: 1.4;
}

.ac-tip-item i {
    color: var(--ac-orange);
    font-size: 14px;
    margin-top: 1px;
    flex-shrink: 0;
}

/* Keywords */
.ac-keywords {
    padding: 20px 22px;
}

.ac-keywords h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--ac-text);
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ac-keywords h3 i {
    color: var(--ac-primary);
}

.ac-kw-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ac-kw-tag {
    padding: 6px 14px;
    background: var(--ac-primary-light);
    color: var(--ac-primary);
    border: 1px solid rgba(74, 58, 255, 0.15);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.ac-kw-tag.found {
    background: var(--ac-green-light);
    color: var(--ac-green);
    border-color: rgba(16, 185, 129, 0.2);
}

.ac-kw-tag.missing {
    background: var(--ac-red-light);
    color: var(--ac-red);
    border-color: rgba(239, 68, 71, 0.15);
}

/* Empty State */
.ac-empty {
    padding: 80px 32px;
    text-align: center;
}

.ac-empty .empty-ring {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--ac-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.ac-empty .empty-ring i {
    font-size: 40px;
    color: var(--ac-primary);
}

.ac-empty h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--ac-text);
    margin: 0 0 6px;
}

.ac-empty p {
    font-size: 13px;
    color: var(--ac-text-sec);
    margin: 0;
    max-width: 300px;
    display: inline-block;
}

/* ---- Facts Section ---- */
.ac-facts {
    max-width: 1280px;
    margin: 40px auto 0;
    padding: 0 24px;
}

.ac-facts-title {
    text-align: center;
    margin-bottom: 24px;
}

.ac-facts-title h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--ac-text);
    margin: 0 0 6px;
}

.ac-facts-title p {
    font-size: 13px;
    color: var(--ac-text-sec);
    margin: 0;
}

.ac-facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.ac-fact-card {
    background: var(--ac-surface);
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius);
    padding: 24px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: var(--ac-transition);
    box-shadow: var(--ac-shadow);
}

.ac-fact-card:hover {
    border-color: #c8c8ff;
    box-shadow: var(--ac-shadow-md);
    transform: translateY(-2px);
}

.ac-fact-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.ac-fact-card h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--ac-text);
    margin: 0 0 4px;
}

.ac-fact-card p {
    font-size: 12px;
    color: var(--ac-text-sec);
    margin: 0;
    line-height: 1.5;
}

/* ---- How It Works ---- */
.ac-how {
    max-width: 1280px;
    margin: 40px auto 0;
    padding: 0 24px;
}

.ac-how-inner {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border-radius: var(--ac-radius);
    padding: 40px 32px;
    text-align: center;
    color: #fff;
}

.ac-how-inner h2 {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 8px;
}

.ac-how-inner>p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 32px;
}

.ac-how-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.ac-how-step {
    text-align: center;
}

.ac-how-step .step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(74, 58, 255, 0.2);
    border: 2px solid rgba(74, 58, 255, 0.4);
    color: #a3b3ff;
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.ac-how-step h4 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 6px;
}

.ac-how-step p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    line-height: 1.4;
}

/* ---- Upload Dropzone ---- */
.ac-dropzone {
    border: 2px dashed var(--ac-border);
    border-radius: var(--ac-radius);
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--ac-transition);
    background: var(--ac-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ac-dropzone:hover,
.ac-dropzone.dragover {
    border-color: var(--ac-primary);
    background: var(--ac-primary-light);
}

.ac-dropzone-inner {
    pointer-events: none;
}

.ac-dropzone-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--ac-primary-light);
    color: var(--ac-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 12px;
    transition: var(--ac-transition);
}

.ac-dropzone:hover .ac-dropzone-icon,
.ac-dropzone.dragover .ac-dropzone-icon {
    background: var(--ac-primary);
    color: #fff;
    transform: scale(1.1);
}

.ac-dropzone h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--ac-text);
    margin: 0 0 4px;
}

.ac-dropzone p {
    font-size: 12px;
    color: var(--ac-text-sec);
    margin: 0 0 10px;
}

.ac-browse-link {
    color: var(--ac-primary);
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

.ac-dropzone-formats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ac-dropzone-formats span {
    font-size: 11px;
    font-weight: 600;
    color: var(--ac-text-muted);
    display: flex;
    align-items: center;
    gap: 3px;
}

.ac-size-limit {
    background: var(--ac-border-light);
    padding: 2px 8px;
    border-radius: 10px;
}

.ac-upload-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    background: var(--ac-bg);
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius-sm);
    margin-top: 8px;
}

.ac-file-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.ac-file-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--ac-green-light);
    color: var(--ac-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.ac-file-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ac-file-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--ac-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.ac-file-meta {
    font-size: 10px;
    color: var(--ac-text-muted);
    margin-top: 1px;
}

.ac-btn-remove {
    background: var(--ac-red-light);
    color: var(--ac-red);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: var(--ac-transition);
    flex-shrink: 0;
}

.ac-btn-remove:hover {
    background: var(--ac-red);
    color: #fff;
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
    .ac-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .ac-hero {
        padding: 32px 16px 64px;
    }

    .ac-hero h1 {
        font-size: 24px;
    }

    .ac-hero-features {
        gap: 12px;
        flex-direction: column;
        align-items: center;
    }

    .ac-layout {
        padding: 0 16px;
        margin-top: -32px;
    }

    .ac-quick-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .ac-qs-item:nth-child(2) {
        border-right: none;
    }

    .ac-facts-grid {
        grid-template-columns: 1fr;
    }

    .ac-dropzone {
        padding: 24px 16px;
    }

    .ac-file-name {
        max-width: 140px;
    }
}