* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #f5f5f5;
    --container-bg: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --accent-color: #4a90e2;
    --progress-bg: #e0e0e0;
    --shadow: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --container-bg: #2d2d2d;
    --text-primary: #f5f5f5;
    --text-secondary: #b0b0b0;
    --accent-color: #64b5f6;
    --progress-bg: #404040;
    --shadow: rgba(0, 0, 0, 0.3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    background: var(--container-bg);
    border-radius: 24px;
    padding: 48px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 8px 32px var(--shadow);
    position: relative;
    transition: background-color 0.3s ease;
}

.title {
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 40px;
    color: var(--text-primary);
}

.main-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.stat-box {
    text-align: center;
    padding: 24px;
    background: var(--bg-color);
    border-radius: 16px;
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-4px);
}

.label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.value {
    font-size: 64px;
    font-weight: 700;
    color: var(--accent-color);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.secondary-display {
    text-align: center;
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-weight: 500;
}

.progress-container {
    width: 100%;
    height: 8px;
    background: var(--progress-bg);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 16px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), #64b5f6);
    border-radius: 4px;
    transition: width 0.5s ease;
    width: 0%;
}

.percentage {
    text-align: center;
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 600;
}

.theme-toggle {
    position: absolute;
    top: 24px;
    right: 24px;
    background: var(--bg-color);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.icon {
    display: block;
    transition: transform 0.3s ease;
}

/* Responsive design */
@media (max-width: 600px) {
    .container {
        padding: 32px 24px;
    }
    
    .title {
        font-size: 24px;
        margin-bottom: 32px;
    }
    
    .main-display {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .value {
        font-size: 56px;
    }
    
    .secondary-display {
        font-size: 16px;
    }
    
    .theme-toggle {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

/* Animation for initial load */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    animation: fadeIn 0.5s ease;
}
