/* ===================================================== 
   ROOT VARIABLES (Consistent with App) 
===================================================== */
:root {
    --bg-light: #f4f6fb;
    --bg-dark: #0f1220;
    --glass-light: rgba(255, 255, 255, 0.7);
    --glass-dark: rgba(25, 25, 45, 0.75);
    --accent: #6c63ff;
    --radius: 24px;
}

/* ===================================================== 
   STATS GRID (TOP CARDS)
===================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.stat {
    background: var(--glass-light);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    padding: 18px 10px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.04);
}

body.dark .stat {
    background: var(--glass-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat .label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.6;
}

.stat strong {
    display: block;
    font-size: 24px;
    font-weight: 800;
    margin-top: 4px;
    color: var(--accent);
}

/* ===================================================== 
   WEEKLY PROGRESS CHART (REFINED BARS)
===================================================== */
.chart-container {
    background: var(--glass-light);
    backdrop-filter: blur(20px);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

body.dark .chart-container {
    background: var(--glass-dark);
}

.chart-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    opacity: 0.9;
}

.week-bars {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 160px; /* Increased height for better visibility */
}

.day-bar {
    text-align: center;
    width: 10%;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
}

.day-bar .bar {
    width: 100%;
    height: 120px; /* Fixed height for the track */
    background: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    position: relative;
}

body.dark .day-bar .bar {
    background: rgba(255, 255, 255, 0.1);
}

.day-bar .fill {
    width: 100%;
    background: linear-gradient(180deg, #8f88ff 0%, var(--accent) 100%);
    border-radius: 12px;
    transition: height 0.6s cubic-bezier(0.17, 0.67, 0.83, 0.67);
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.3);
}

.day-bar small {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.7;
    margin-top: 10px;
    display: block;
}

/* Highlight today */
.day-bar.today small {
    color: var(--accent);
    opacity: 1;
}

.day-bar.today .bar {
    border: 1px solid rgba(108, 99, 255, 0.3);
}
