/* ANALYTICS DASHBOARD */
.analytics-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-left: 1px solid #475569;
    padding: 24px;
    overflow-y: auto;
    transition: right 0.3s ease;
    z-index: 2000;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
}

.analytics-panel.active {
    right: 0;
}

.analytics-panel h2 {
    font-size: 24px;
    margin-bottom: 24px;
    color: #e2e8f0;
}

.analytics-panel h3 {
    font-size: 16px;
    margin: 24px 0 12px 0;
    color: #cbd5e1;
    font-weight: 600;
}

.panel-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    transition: all 0.2s;
}

.panel-close:hover {
    color: #fff;
    transform: rotate(90deg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.insights-section,
.notes-section {
    margin-bottom: 24px;
}

.insights-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.insight-item {
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.insight-item.focus {
    background: rgba(251, 191, 36, 0.1);
    border-left: 3px solid #fbbf24;
    color: #fbbf24;
}

.insight-item.warning {
    background: rgba(239, 68, 68, 0.1);
    border-left: 3px solid #ef4444;
    color: #ef4444;
}

.insight-item.praise {
    background: rgba(34, 197, 94, 0.1);
    border-left: 3px solid #22c55e;
    color: #22c55e;
}

.insight-item.challenge {
    background: rgba(96, 165, 250, 0.1);
    border-left: 3px solid #60a5fa;
    color: #60a5fa;
}

.notes-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.note-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 14px;
}

.note-name {
    font-weight: 600;
    color: #e2e8f0;
}

.note-stat {
    font-size: 12px;
    color: #94a3b8;
}

.note-stat.weak {
    color: #ef4444;
}

.note-stat.strong {
    color: #22c55e;
}

.section-help {
    font-size: 12px;
    color: #94a3b8;
    margin: -8px 0 12px 0;
    font-style: italic;
}

@media (max-width: 768px) {
    .analytics-panel {
        width: 100%;
        right: -100%;
    }
}