.study-tip-banner {
    background: #f0f4ff;
    border: 1px solid #c7d2fe;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1e3a8a;
    font-size: 0.95em;
    line-height: 1.5;
}

.tip-icon {
    background: #1e3a8a;
    border-radius: 20px;
    padding: 6px 14px;
    font-weight: 700;
    color: white;
    white-space: nowrap;
    font-size: 0.8em;
    letter-spacing: 0.05em;
}

.overall-stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.overall-stat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 14px;
    text-align: center;
    transition: box-shadow 0.2s;
}

.overall-stat-card:hover {
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.08);
}

.overall-stat-value {
    font-size: 2em;
    font-weight: 700;
    color: #1e3a8a;
    line-height: 1.2;
}

.overall-stat-value.accuracy-high { color: #059669; }
.overall-stat-value.accuracy-mid { color: #d97706; }
.overall-stat-value.accuracy-low { color: #dc2626; }

.overall-stat-label {
    color: #64748b;
    font-size: 0.78em;
    font-weight: 600;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.insights-tabs {
    display: flex;
    gap: 0;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 6px;
    border: 1px solid #e2e8f0;
}

.insights-tab {
    flex: 1;
    padding: 11px 16px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 0.88em;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.insights-tab:hover {
    color: #1e3a8a;
    background: rgba(30, 58, 138, 0.06);
}

.insights-tab.active {
    background: #1e3a8a;
    color: white;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.25);
}

.auto-refresh-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75em;
    color: #94a3b8;
    padding: 6px 0 14px;
    justify-content: flex-end;
}

.refresh-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #059669;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.insights-panel {
    display: none;
}

.insights-panel.active {
    display: block;
}

.rec-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 14px;
    border-left: 5px solid #cbd5e1;
    transition: transform 0.15s, box-shadow 0.15s;
}

.rec-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.08);
}

.rec-card.priority-high { border-left-color: #dc2626; }
.rec-card.priority-medium { border-left-color: #d97706; }
.rec-card.priority-low { border-left-color: #2563eb; }
.rec-card.priority-mastered { border-left-color: #059669; }

.rec-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.rec-topic {
    font-size: 1.1em;
    font-weight: 700;
    color: #1e3a8a;
}

.rec-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.72em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.rec-badge.high { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.rec-badge.medium { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }
.rec-badge.low { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }
.rec-badge.mastered { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }

.rec-stats {
    display: flex;
    gap: 18px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.rec-stat {
    font-size: 0.85em;
    color: #64748b;
}

.rec-stat strong {
    color: #1e293b;
}

.rec-accuracy-bar {
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.rec-accuracy-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.rec-accuracy-fill.high { background: linear-gradient(90deg, #dc2626, #ef4444); }
.rec-accuracy-fill.medium { background: linear-gradient(90deg, #d97706, #f59e0b); }
.rec-accuracy-fill.low { background: linear-gradient(90deg, #2563eb, #3b82f6); }
.rec-accuracy-fill.mastered { background: linear-gradient(90deg, #059669, #10b981); }

.rec-action {
    font-size: 0.88em;
    color: #475569;
    line-height: 1.6;
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: 10px;
    margin-bottom: 10px;
    border: 1px solid #f1f5f9;
}

.rec-difficulty-grid {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.rec-diff-chip {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    background: #1e3a8a;
    color: white;
    border: none;
}

.rec-diff-chip .diff-acc {
    color: rgba(255, 255, 255, 0.85);
    margin-left: 4px;
    font-weight: 500;
}

.rec-practice-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 9px 22px;
    background: linear-gradient(135deg, #f97316, #fb923c);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.25);
}

.rec-practice-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.empty-state h3 {
    color: #1e3a8a;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.empty-state p {
    line-height: 1.7;
    max-width: 400px;
    margin: 0 auto 8px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 2px solid #e2e8f0;
}

.section-header h3 {
    color: #1e3a8a;
    font-size: 1.15em;
    font-style: italic;
}

.section-header .count-badge {
    background: #1e3a8a;
    color: white;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.78em;
    font-weight: 600;
}

@media (max-width: 768px) {
    .insights-tabs {
        flex-direction: column;
    }
    .overall-stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }
    .rec-stats {
        flex-direction: column;
        gap: 4px;
    }
    .rec-difficulty-grid {
        flex-wrap: wrap;
    }
}
