/* ===== Global Layout ===== */
body {
    padding-top: 80px;
}

.analytics-container {
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.page-header {
    margin-bottom: 32px;
    text-align: center;
}

.page-title {
    font-size: 2.25rem;
    /* 36px */
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.page-subtitle {
    font-size: 1rem;
    /* 16px */
    color: rgba(255, 255, 255, 0.8);
}

.analytics-grid {
    display: grid;
    gap: 24px;
    margin-bottom: 32px;
}

/* ===== Chart Card ===== */
.chart-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-card);
    padding: 32px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--glass-border);
}

.chart-title {
    font-size: 1.25rem;
    /* 20px */
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chart-subtitle {
    font-size: 0.875rem;
    /* 14px */
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ===== Line Chart ===== */
.line-chart {
    height: 300px;
    display: flex;
    align-items: flex-end;
    padding: 20px 0;
    position: relative;
    border-bottom: 2px solid var(--glass-border);
    border-left: 2px solid var(--glass-border);
}

.line-chart-point {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.line-point {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent-start), var(--color-accent-end));
    box-shadow: 0 0 10px rgba(255, 122, 89, 0.6);
    cursor: pointer;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.line-point:hover {
    transform: scale(1.5);
}

.line-point-value {
    position: absolute;
    bottom: 20px;
    font-size: 0.875rem;
    /* 14px */
    font-weight: 700;
    color: var(--text-primary);
}

.line-chart-label {
    margin-top: 16px;
    font-size: 0.75rem;
    /* 12px */
    color: var(--text-secondary);
    text-align: center;
}

/* ===== Pie Chart ===== */
.pie-chart-container {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
}

.pie-chart {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    position: relative;
    background: conic-gradient(#22c55e 0deg,
            #22c55e var(--easy-deg),
            #f59e0b var(--easy-deg),
            #f59e0b var(--medium-deg),
            #ef4444 var(--medium-deg),
            #ef4444 360deg);
    box-shadow: var(--shadow-soft);
}

.pie-center {
    position: absolute;
    width: 120px;
    height: 120px;
    background: var(--card-bg);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.pie-legend {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.legend-label {
    flex: 1;
    font-weight: 500;
}

.legend-value {
    font-weight: 700;
    color: var(--text-secondary);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .pie-chart-container {
        flex-direction: column;
    }

    .line-chart {
        height: 200px;
    }

    .bar-chart {
        height: 180px;
    }
}