.dashboard-section {
    padding-top: 100px;
    min-height: 100vh;
}

.dashboard-title {
    text-align: center;
    margin-bottom: 16px;
}

.analyzer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
}

@media (max-width: 968px) {
    .analyzer-grid {
        grid-template-columns: 1fr;
    }
}

.analyzer-card {
    background: var(--white);
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--glass-border);
    transition: all 0.3s;

    height: 100%;
    display: flex;
    flex-direction: column;
}

.analyzer-card h2 {
    font-size: 18px;

    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-dark);
}


.upload-area {
    border: 2px dashed #e2e8f0;
    /* Lighter border */
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #f8fafc;
    /* Fill remaining height */
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.upload-area.dragover {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.04);
}

.upload-area .btn-browse {
    margin-top: 16px;
    padding: 10px 28px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: #fff;
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.upload-area .btn-browse:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
    background: linear-gradient(135deg, #1d4ed8 0%, #4338ca 100%);
}

.upload-area .btn-browse:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.upload-area .btn-browse svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

[data-theme="dark"] .upload-area .btn-browse {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

[data-theme="dark"] .upload-area .btn-browse:hover {
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
}

.upload-icon {
    width: 64px;
    height: 64px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.analyzer-card .form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}


#jd-text {
    width: 100%;
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-dark);
    background: #f8fafc;
    transition: all 0.3s;
    resize: none !important;
    height: 100%;
}

#jd-text:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.analyze-cta-container {
    text-align: center;
    margin-top: 40px;
    padding-bottom: 20px;
}

#analyze-btn {
    min-width: 200px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 100px;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.2);
    transition: all 0.3s;
}

#analyze-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.3);
}

.results-section {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid #e2e8f0;
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.score-overview {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .score-overview {
        grid-template-columns: 1fr;
    }
}

.score-card {
    text-align: center;
}

.circular-chart {
    display: block;
    margin: 10px auto;
    max-width: 180px;
    max-height: 250px;
}

.circle-bg {
    fill: none;
    stroke: #eee;
    stroke-width: 2.5;
}

.circle {
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    transition: stroke-dasharray 1s ease-out;
}

.score-low {
    stroke: #ef4444;
}

.score-medium {
    stroke: #f59e0b;
}

.score-high {
    stroke: #22c55e;
}

.percentage {
    fill: var(--text-dark);
    font-family: sans-serif;
    font-weight: bold;
    font-size: 0.5em;
    text-anchor: middle;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    align-content: center;
}

.metric-card {
    background: #f8fafc;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.metric-label {
    display: block;
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 8px;
    font-weight: 500;
}

.metric-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.metric-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    width: 100%;
}

.metric-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1s ease-out;
}


.history-section {
    margin: 40px 0;
    animation: fadeIn 0.8s ease;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.history-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.history-item {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.history-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.history-info {
    display: flex;
    flex-direction: column;
}

.history-info strong {
    color: var(--text-dark);
    font-size: 15px;
    margin-bottom: 4px;
}

.history-info .date {
    font-size: 12px;
    color: var(--text-gray);
}

.history-score {
    font-size: 18px;
    font-weight: 700;
}

.score-high-text {
    color: #22c55e;
}

.score-medium-text {
    color: #f59e0b;
}

.score-low-text {
    color: #ef4444;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--text-gray);
    background: var(--white);
    border-radius: 12px;
    border: 1px dashed #e2e8f0;
}


[data-theme="dark"] .metric-card {
    background: var(--surface-2);
    border-color: var(--glass-border);
}

[data-theme="dark"] .metric-value,
[data-theme="dark"] .section-title,
[data-theme="dark"] .history-info strong {
    color: var(--text-main);
}

[data-theme="dark"] .metric-bar {
    background: var(--glass-border);
}

[data-theme="dark"] .history-item {
    background: var(--card-bg);
    border-color: var(--glass-border);
}

[data-theme="dark"] .empty-state {
    background: var(--glass-bg);
    border-color: var(--glass-border);
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

@media (max-width: 768px) {
    .details-grid {
        grid-template-columns: 1fr;
    }
}

.section-desc {
    color: var(--text-gray);
    margin-bottom: 16px;
    font-size: 14px;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

.tag-missing {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.tag-matched {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}


[data-theme="dark"] .analyzer-card {
    background: var(--card-bg);
}

[data-theme="dark"] .upload-area {
    background: var(--surface-2);
    border-color: var(--glass-border);
}

[data-theme="dark"] .upload-area.dragover {
    background: var(--glass-bg);
    border-color: var(--accent-color);
}

[data-theme="dark"] .upload-icon {
    background: var(--glass-bg);
    color: var(--accent-color);
}

[data-theme="dark"] .upload-area p,
[data-theme="dark"] .analyzer-card h2,
[data-theme="dark"] .analyzer-card h3,
[data-theme="dark"] #file-name,
[data-theme="dark"] .percentage,
[data-theme="dark"] .breakdown-item .label,
[data-theme="dark"] .breakdown-item .value {
    color: var(--text-main);
}

[data-theme="dark"] #jd-text {
    background: var(--surface-2);
    border-color: var(--glass-border);
    color: var(--text-main);
}

[data-theme="dark"] #jd-text:focus {
    border-color: var(--accent-color);
    background: var(--glass-bg);
}

.file-info {
    border: 2px solid #22c55e;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    background: rgba(34, 197, 94, 0.04);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.file-info-icon {
    width: 64px;
    height: 64px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: #22c55e;
}

.file-info-icon span {
    font-size: 32px;
    line-height: 1;
}

.file-name-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    word-break: break-all;
}

.file-size-text {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.btn-remove {
    background: rgba(239, 68, 68, 0.08) !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
    box-shadow: none !important;
    font-weight: 600 !important;
    padding: 0 16px !important;
    font-size: 13px !important;
    margin-top: 8px !important;
    min-height: 32px !important;
    height: 32px !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    border-radius: 100px !important;
    transition: all 0.2s ease !important;
    font-family: 'Inter', sans-serif !important;
    letter-spacing: 0.3px !important;
    white-space: nowrap !important;
    width: auto !important;
}

.btn-remove:hover {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #dc2626 !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.1) !important;
    transform: translateY(-1px) !important;
}

.btn-remove:active {
    transform: translateY(0) !important;
    box-shadow: none !important;
}

[data-theme="dark"] .btn-remove {
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

[data-theme="dark"] .btn-remove:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: white !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}

[data-theme="dark"] .file-info {
    background: rgba(34, 197, 94, 0.06);
    border-color: #22c55e;
}

[data-theme="dark"] .file-info-icon {
    background: rgba(34, 197, 94, 0.15);
}

[data-theme="dark"] .file-name-text {
    color: white;
}

[data-theme="dark"] .circle-bg {
    stroke: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .progress-bar {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .tag-missing {
    background: rgba(185, 28, 28, 0.2);
    color: #fca5a5;
    border-color: rgba(185, 28, 28, 0.4);
}

[data-theme="dark"] .tag-matched {
    background: rgba(21, 128, 61, 0.2);
    color: #86efac;
    border-color: rgba(21, 128, 61, 0.4);
}