:root {
    --bg-color: #eef2f6;
    --card-bg: #ffffff;
    --text-primary: #1e1e1e;
    --text-secondary: #757575;
    --accent-green: #4caf50; /* For >5k dots and text */
    --accent-gray: #e0e0e0;  /* For <5k dots */
    --marker-color: #000000;
    --btn-bg: #1a1a1a;
    --btn-text: #ffffff;
    --font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    font-family: var(--font-family);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.container {
    width: 600px;
}

.card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-learners {
    font-size: 1.2rem;
    color: #9e9e9e;
}

.header h1 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.btn-stats {
    background: var(--btn-bg);
    color: var(--btn-text);
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.1s;
}

.btn-stats:active {
    transform: scale(0.98);
}

/* Stats Section */
.stats-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
}

.number-group h2 {
    font-size: 3.5rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
    line-height: 1;
}

.number-group p {
    margin: 8px 0 0 0;
    color: var(--text-secondary);
    font-size: 1rem;
}

.stats-meta {
    text-align: right;
    margin-bottom: 10px;
}

.highlight {
    color: var(--accent-green);
    font-weight: 700;
    font-size: 1.1rem;
}

.meta-label {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-left: 5px;
}

/* Progress Bar */
.progress-section {
    margin-bottom: 40px;
}

.progress-container {
    height: 48px;
    border-radius: 12px;
    position: relative;
    overflow: hidden; /* To clip the gradient/overlay */
    /* The main gradient is applied here. we will overwrite via JS to be dynamic */
    background: linear-gradient(90deg, #ff9a9e 0%, #fecfef 50%, #e0c3fc 100%); 
}

/* The overlay that dims the right side */
.progress-fill {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    /* width will be set by JS: (100 - percent)% */
    width: 0%; 
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(4px);
    pointer-events: none;
    border-left: 2px solid var(--marker-color);
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Activity Section */
.activity-section {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 24px;
}

.legend {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot-gray { background-color: var(--accent-gray); }
.dot-green { background-color: var(--accent-green); }

.activity-content {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.activity-title h3 {
    margin: 0;
    font-weight: 600;
    font-size: 1.2rem;
    line-height: 1.3;
    color: var(--text-primary);
}

.grid-wrapper {
    flex-grow: 1;
}

.months-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-left: 5px; /* adjust alignment */
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.grid-container {
    display: grid;
    /* We will set columns dynamically or use a fixed repeat */
    grid-template-columns: repeat(13, 1fr); /* Approx for 3 months view? Need to check data size */
    gap: 6px;
}

/* Dot variants for the grid */
.grid-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin: auto;
}
.level-0 { background-color: #e0e0e0; } /* Gray */
.level-1 { background-color: #a5d6a7; } /* Light Green */
.level-2 { background-color: #66bb6a; } /* Medium Green */
.level-3 { background-color: #4caf50; } /* Dark Green */
