.stats-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem;
}

.period-stats {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.period-stats h2 {
    color: var(--larkan-green);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
}

.activity-type-stats {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.activity-type-stats h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.5rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--larkan-green);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #666;
}

/* Responsive design */
@media (min-width: 768px) {
    .stats-container {
        padding: 2rem;
    }

    .period-stats {
        padding: 2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

/* Activity type specific styling */
.activity-type-stats[data-type="Run"] .stat-value {
    color: #e74c3c;
}

.activity-type-stats[data-type="WeightTraining"] .stat-value {
    color: #8e44ad;
}

.activity-type-stats[data-type="Ride"] .stat-value {
    color: #2980b9;
}

.activity-type-stats[data-type="Swim"] .stat-value {
    color: #16a085;
}

/* Loading state */
.stats-loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

/* Error state */
.stats-error {
    background: #fee;
    color: #c0392b;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    text-align: center;
}

.strava-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.stats-card {
    background: var(--surface);
    border-radius: 12px;
    padding: 1.5rem;
}

.stats-card h3 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 0.5rem;
}

.activity-block {
    margin-bottom: 1.5rem;
}

.activity-block:last-child {
    margin-bottom: 0;
}

.activity-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.activity-header h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--surface-variant);
    border-radius: 8px;
}

.stat-item .material-icons {
    color: var(--primary);
    font-size: 1.25rem;
}

.stat-details {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.heatmap-container {
    margin-top: 2rem;
}

.heatmap-card {
    background: var(--surface);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

#activity-map {
    height: 400px;
    width: 100%;
    border-radius: 8px;
} 