/* Evaluation Dashboard Styles */

.eval-panel {
    padding: 0;
}
.eval-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.eval-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}
.eval-title .lucide {
    width: 20px;
    height: 20px;
    color: var(--primary-light);
}
.eval-actions {
    display: flex;
    gap: 8px;
}
.eval-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    font-size: 0.82em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}
.eval-btn:hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: var(--primary);
}
.eval-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.eval-btn .lucide {
    width: 14px;
    height: 14px;
}
.eval-btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.eval-btn-primary:hover {
    background: var(--primary-dark);
}

/* Score cards */
.eval-scores {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}
.eval-score-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: center;
}
.eval-score-icon .lucide {
    width: 20px;
    height: 20px;
}
.eval-score-value {
    font-size: 1.8em;
    font-weight: 700;
    line-height: 1.1;
}
.eval-score-unit {
    font-size: 0.45em;
    font-weight: 400;
    opacity: 0.7;
}
.eval-score-label {
    font-size: 0.75em;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.eval-score-meta {
    justify-content: center;
}
.eval-meta-label {
    font-size: 0.72em;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.eval-meta-value {
    font-size: 0.85em;
    color: var(--text);
    font-weight: 500;
}

/* Sections */
.eval-section {
    margin-bottom: 24px;
}
.eval-section-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9em;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 14px 0;
}
.eval-section-title .lucide {
    width: 16px;
    height: 16px;
    color: var(--primary-light);
}

/* Breakdown bars */
.eval-breakdown {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.eval-bar-row {
    display: grid;
    grid-template-columns: 140px 1fr 50px;
    align-items: center;
    gap: 10px;
}
.eval-bar-label {
    font-size: 0.82em;
    color: var(--text);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.eval-bar-count {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.9em;
}
.eval-bar-track {
    height: 8px;
    background: var(--bg-input);
    border-radius: 4px;
    overflow: hidden;
}
.eval-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease;
}
.eval-bar-value {
    font-size: 0.82em;
    font-weight: 600;
    color: var(--text);
    text-align: right;
}

/* Worst performers */
.eval-worst {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.eval-worst-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.84em;
}
.eval-worst-badge {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75em;
    font-weight: 600;
    flex-shrink: 0;
}
.eval-score-wrong {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}
.eval-score-partial {
    background: rgba(234, 179, 8, 0.1);
    color: #eab308;
}
.eval-score-correct {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}
.eval-worst-q {
    flex: 1;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.eval-worst-cat {
    font-size: 0.8em;
    color: var(--text-muted);
    padding: 1px 6px;
    background: rgba(99, 102, 241, 0.06);
    border-radius: 8px;
    flex-shrink: 0;
}

/* Trend */
.eval-trend {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 0;
}
.eval-trend-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    min-width: 70px;
}
.eval-trend-date {
    font-size: 0.7em;
    color: var(--text-muted);
}
.eval-trend-value {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--text);
}
.eval-trend-delta {
    font-size: 0.72em;
    font-weight: 600;
}
.eval-delta-up {
    color: #22c55e;
}
.eval-delta-down {
    color: #ef4444;
}

/* Empty state */
.eval-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: var(--text-muted);
}
.eval-empty .lucide {
    width: 48px;
    height: 48px;
    opacity: 0.3;
    margin-bottom: 12px;
}
.eval-empty p {
    margin: 4px 0;
    font-size: 0.92em;
}
.eval-empty-sub {
    font-size: 0.82em !important;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 700px) {
    .eval-scores {
        grid-template-columns: repeat(2, 1fr);
    }
    .eval-bar-row {
        grid-template-columns: 100px 1fr 40px;
    }
    .eval-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
