/* stats.css - מסך הסטטיסטיקות והגרפים */
.stats-summary { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 0.75rem; 
    margin-bottom: 1.5rem; 
}

.stat-big { 
    background: var(--dark-light); 
    border-radius: var(--radius-md); 
    padding: 1rem; 
    text-align: center; 
}
.stat-big .stat-value { font-size: 1.75rem; font-weight: 700; color: var(--primary-light); margin-bottom: 0.25rem; }
.stat-big .stat-label { color: var(--gray-light); font-size: 0.8rem; }

.chart-container { 
    background: var(--dark-light); 
    border-radius: var(--radius-lg); 
    padding: 1rem; 
    height: 250px; 
    margin-bottom: 1rem; 
}
/* --- תוספת עבור היסטוריית מבחנים --- */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.history-card {
    background: var(--dark-light);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
}

.history-header {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: rgba(255,255,255,0.02);
}

.history-header:hover { background: rgba(255,255,255,0.05); }

.h-date { font-weight: 700; color: #fff; font-size: 0.95rem; }
.h-time { font-size: 0.75rem; color: var(--gray); margin-right: 5px; }

.h-score { 
    font-weight: 800; 
    font-size: 1.1rem;
    padding: 2px 8px;
    border-radius: 6px;
    min-width: 50px;
    text-align: center;
}
.score-pass { color: var(--secondary); background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.3); }
.score-fail { color: var(--danger); background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.3); }

.history-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: rgba(0,0,0,0.2);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.history-card.active .history-body {
    max-height: 500px; /* גובה מקסימלי לפתיחה */
    overflow-y: auto;
}

.h-content { padding: 15px; }
.h-title { font-size: 0.85rem; color: var(--gray-light); margin-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 4px; }

.cat-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 6px;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(255,255,255,0.03);
}
.cat-good { border-right: 3px solid var(--secondary); }
.cat-bad { border-right: 3px solid var(--danger); }