/* Apple Design System Variables */
:root {
    /* Apple-inspired Monochrome Color Scheme */
    --color-primary: #007AFF;    /* iOS System Blue */
    --color-background: #FFFFFF; /* Pure White */
    --color-surface: #F5F5F7;    /* Light Gray Surface */
    --color-text-primary: #1D1D1F;   /* Near Black */
    --color-text-secondary: #86868B; /* Medium Gray */
    --color-text-tertiary: #515154;  /* Dark Gray */
    --color-border: #D2D2D7;     /* Light Gray Border */
    
    /* Gradient Colors */
    --gradient-start: #007AFF;
    --gradient-end: #5AC8FA;
    
    /* Apple Spacing - 8px base unit */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-xxl: 64px;
    
    /* Apple Border Radius */
    --border-radius-sm: 6px;
    --border-radius: 12px;
    --border-radius-lg: 16px;
    
    /* Apple Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    
    /* Apple Transitions - Enhanced easing */
    --transition-fast: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-medium: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-smooth: 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    --transition-bounce: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* System Font Stack - Prioritizing SF Pro and premium system fonts */
@font-face {
    font-family: 'SF Pro Display';
    src: local('SF Pro Display'), local('SF-Pro-Display');
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
    background: #FFFFFF;
    min-height: 100vh;
    color: var(--color-text-primary);
    display: flex;
    flex-direction: column;
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    position: relative;
    overflow-x: hidden;
}

/* Background Gradient Glows - Performance Optimized */
body::before,
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

/* Primary Cool Blue Glow - Top Left */
body::before {
    background: radial-gradient(
        ellipse 60vw 45vw at -5% 35%,
        rgba(99, 179, 237, 0.12) 0%,
        rgba(66, 153, 225, 0.08) 20%,
        rgba(49, 130, 206, 0.04) 40%,
        rgba(43, 108, 176, 0.01) 60%,
        transparent 80%
    );
    filter: blur(80px);
    transform: translate3d(0, 0, 0);
    will-change: transform;
    mix-blend-mode: normal;
}

/* Secondary Soft Purple Glow - Bottom Right */
body::after {
    background: radial-gradient(
        ellipse 45vw 35vw at 115% 80%,
        rgba(196, 181, 253, 0.30) 0%,
        rgba(165, 180, 252, 0.16) 25%,
        rgba(147, 197, 253, 0.08) 50%,
        transparent 75%
    );
    filter: blur(100px);
    transform: translate3d(0, 0, 0);
    will-change: transform;
    opacity: 0.85;
}

/* Additional subtle glow layer - Floating Orb */
.glow-layer {
    position: fixed;
    top: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
    pointer-events: none;
    z-index: 0;
    background: 
        radial-gradient(
            circle 400px at 45% 45%,
            rgba(129, 140, 248, 0.08) 0%,
            rgba(129, 140, 248, 0.04) 30%,
            transparent 60%
        ),
        radial-gradient(
            circle 300px at 70% 60%,
            rgba(251, 207, 232, 0.06) 0%,
            transparent 50%
        );
    filter: blur(120px);
    transform: translate3d(0, 0, 0);
    animation: subtle-drift 30s ease-in-out infinite alternate;
    opacity: 0.7;
}

@keyframes subtle-drift {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    33% {
        transform: translate3d(50px, 30px, 0) scale(1.05);
    }
    66% {
        transform: translate3d(-30px, 60px, 0) scale(0.95);
    }
    100% {
        transform: translate3d(40px, -20px, 0) scale(1.02);
    }
}

/* Ensure content is above background */
.header,
.main-container,
.footer {
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.85) 0%,
        rgba(255, 255, 255, 0.75) 100%
    );
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.4);
    padding: var(--spacing-sm) var(--spacing-md);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 17px;
    font-weight: 600;
    color: var(--color-text-primary);
    letter-spacing: 0.02em;
}

.logo-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.controls {
    display: flex;
    gap: var(--spacing-xs);
    align-items: center;
}

/* Apple-style Select Dropdowns */
.control-btn {
    /* Reset default select appearance */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    
    /* Apple-style dimensions and spacing */
    padding: 8px 32px 8px 12px;
    min-width: 120px;
    height: 36px;
    
    /* Apple-style background with subtle glass effect */
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(255, 255, 255, 0.85) 100%
    );
    backdrop-filter: blur(10px) saturate(150%);
    -webkit-backdrop-filter: blur(10px) saturate(150%);
    
    /* Text styling */
    color: var(--color-text-primary);
    font-size: 14px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
    letter-spacing: -0.01em;
    text-align: left;
    
    /* Apple-style border and shadows */
    border: 0.5px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 0 0 0.5px rgba(255, 255, 255, 0.5) inset,
        0 1px 1px rgba(0, 0, 0, 0.06);
    
    /* Interactions */
    cursor: pointer;
    transition: all var(--transition-fast);
    outline: none;
    position: relative;
    
    /* Custom dropdown arrow */
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23666666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 10px 6px;
}

/* Hover state - Subtle highlight */
.control-btn:hover {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.9) 100%
    );
    border-color: rgba(0, 0, 0, 0.16);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.06),
        0 0 0 0.5px rgba(255, 255, 255, 0.6) inset,
        0 2px 3px rgba(0, 0, 0, 0.08);
    transform: translateY(-0.5px);
}

/* Focus state - Apple blue ring */
.control-btn:focus {
    border-color: var(--color-primary);
    box-shadow: 
        0 0 0 3px rgba(0, 122, 255, 0.15),
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 0 0 0.5px rgba(255, 255, 255, 0.5) inset;
    background: rgba(255, 255, 255, 0.98);
}

/* Active/pressed state */
.control-btn:active {
    background: linear-gradient(
        180deg,
        rgba(245, 245, 247, 0.9) 0%,
        rgba(245, 245, 247, 0.85) 100%
    );
    transform: translateY(0);
    box-shadow: 
        0 0.5px 2px rgba(0, 0, 0, 0.06),
        0 0 0 0.5px rgba(255, 255, 255, 0.4) inset;
}

/* Disabled state */
.control-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Option styling for better consistency */
.control-btn option {
    padding: 8px 12px;
    background: white;
    color: var(--color-text-primary);
    font-size: 14px;
    font-weight: 400;
}

/* Main Container */
.main-container {
    flex: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: var(--spacing-xxl) var(--spacing-md);
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-xl);
}

/* Time Display - Glass Morphism with Glow */
.time-display {
    text-align: center;
    padding: calc(var(--spacing-xxl) * 1.2);
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.85) 0%,
        rgba(255, 255, 255, 0.75) 50%,
        rgba(250, 250, 252, 0.85) 100%
    );
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    border: 0.5px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--border-radius-lg);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.03),
        0 4px 16px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    width: 100%;
    max-width: 700px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-smooth);
}

.time-display:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.05),
        0 4px 20px rgba(0, 0, 0, 0.08);
}

.time-display::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at 30% 30%,
        rgba(59, 130, 246, 0.03) 0%,
        transparent 40%
    );
    pointer-events: none;
    animation: gentle-rotate 15s linear infinite;
}

@keyframes gentle-rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.seconds-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    position: relative;
    z-index: 1;
}

/* Numbers with Subtle Apple-style Shine Effect */
.seconds-number {
    font-size: clamp(80px, 15vw, 130px);
    font-weight: 200;
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum' on;
    letter-spacing: 0.03em;
    line-height: 1;
    padding: 20px 40px;
    position: relative;
    transition: all var(--transition-smooth);
    
    /* Subtle blue gradient - Apple style */
    background: linear-gradient(
        90deg,
        #007AFF 0%,
        #5AC8FA 25%,
        #007AFF 50%,
        #0051D5 75%,
        #007AFF 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    
    /* Minimal, elegant shadow */
    text-shadow: 0 2px 20px rgba(0, 122, 255, 0.1);
    
    /* Subtle glow effect */
    filter: drop-shadow(0 2px 15px rgba(0, 122, 255, 0.15));
    
    /* Slow, smooth animation */
    animation: 
        apple-shine 10s ease-in-out infinite,
        gentle-breathe 4s ease-in-out infinite;
}

/* Enhanced effect for dark mode */
[data-theme="dark"] .seconds-number {
    /* Slightly brighter gradient for dark backgrounds */
    background: linear-gradient(
        90deg,
        #0A84FF 0%,
        #64D2FF 25%,
        #0A84FF 50%,
        #0051D5 75%,
        #0A84FF 100%
    );
    
    /* Slightly stronger glow in dark mode */
    filter: drop-shadow(0 2px 20px rgba(10, 132, 255, 0.2));
}

/* Dark mode styles for Apple-style select dropdowns */
[data-theme="dark"] .control-btn {
    background: linear-gradient(
        180deg,
        rgba(30, 30, 30, 0.9) 0%,
        rgba(28, 28, 28, 0.85) 100%
    );
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.3),
        0 0 0 0.5px rgba(255, 255, 255, 0.05) inset,
        0 1px 1px rgba(0, 0, 0, 0.4);
    
    /* Update arrow color for dark mode */
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23999999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

[data-theme="dark"] .control-btn:hover {
    background: linear-gradient(
        180deg,
        rgba(35, 35, 35, 0.95) 0%,
        rgba(32, 32, 32, 0.9) 100%
    );
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.4),
        0 0 0 0.5px rgba(255, 255, 255, 0.08) inset;
}

[data-theme="dark"] .control-btn:focus {
    border-color: #0A84FF;
    box-shadow: 
        0 0 0 3px rgba(10, 132, 255, 0.25),
        0 1px 3px rgba(0, 0, 0, 0.3),
        0 0 0 0.5px rgba(255, 255, 255, 0.1) inset;
    background: rgba(30, 30, 30, 0.98);
}

[data-theme="dark"] .control-btn:active {
    background: linear-gradient(
        180deg,
        rgba(25, 25, 25, 0.9) 0%,
        rgba(22, 22, 22, 0.85) 100%
    );
    box-shadow: 
        0 0.5px 2px rgba(0, 0, 0, 0.5),
        0 0 0 0.5px rgba(255, 255, 255, 0.03) inset;
}

[data-theme="dark"] .control-btn option {
    background: #1C1C1E;
    color: rgba(255, 255, 255, 0.9);
}

/* Apple-style Subtle Shine Animation */
@keyframes apple-shine {
    0% {
        background-position: -200% 50%;
        opacity: 1;
    }
    50% {
        background-position: 0% 50%;
        opacity: 0.95;
    }
    100% {
        background-position: 200% 50%;
        opacity: 1;
    }
}

/* Alternative: Rotating Conic Gradient (uncomment to use) */
/*
.seconds-wrapper {
    background: conic-gradient(
        from 0deg at 50% 50%,
        #FF00E6 0deg,
        #00F5FF 60deg,
        #39FF14 120deg,
        #FF9F0A 180deg,
        #FF00E6 240deg,
        #00F5FF 300deg,
        #FF00E6 360deg
    );
    animation: rotate-gradient 3s linear infinite;
}

@keyframes rotate-gradient {
    to {
        transform: rotate(360deg);
    }
}
*/

@keyframes gentle-breathe {
    0%, 100% { 
        transform: scale(1) translateY(0);
        opacity: 1;
    }
    50% { 
        transform: scale(1.02) translateY(-2px);
        opacity: 0.9;
    }
}

.seconds-label {
    font-size: clamp(16px, 2.5vw, 19px);
    color: var(--color-text-secondary);
    font-weight: 400;
    font-family: inherit;
    letter-spacing: 0.04em;
    text-transform: lowercase;
    opacity: 0.9;
}

/* Progress Section - Refined */
.progress-section {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: center;
    position: relative;
    z-index: 1;
}

.progress-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-tertiary);
    font-family: inherit;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    opacity: 0.8;
}

.progress-bar-container {
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    box-shadow: 0 0 20px rgba(0, 113, 227, 0.2);
    will-change: width;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4));
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { 
        opacity: 0;
        transform: translateX(-20px);
    }
    50% { 
        opacity: 1;
        transform: translateX(0);
    }
}

.progress-percentage {
    font-size: 15px;
    font-weight: 400;
    color: var(--color-text-secondary);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.03em;
    transition: all var(--transition-fast);
}

/* Info Section - Glass Card */
.info-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.7) 0%,
        rgba(255, 255, 255, 0.5) 100%
    );
    backdrop-filter: blur(20px) saturate(120%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
    border-radius: var(--border-radius);
    border: 0.5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all var(--transition-medium);
}

.info-section:hover {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.info-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--color-text-secondary);
    font-size: 15px;
    letter-spacing: 0.02em;
}

.info-separator {
    width: 1px;
    height: 16px;
    background: var(--color-border);
    opacity: 0.5;
}

.info-label {
    font-weight: 400;
    color: var(--color-text-tertiary);
    font-size: 14px;
}

.info-value {
    font-weight: 500;
    color: var(--color-text-primary);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

/* Time Reference Section */
.time-reference-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--spacing-md) var(--spacing-xxl);
    width: 100%;
    position: relative;
    z-index: 1;
}

.time-reference-container {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.75) 0%,
        rgba(255, 255, 255, 0.65) 50%,
        rgba(250, 250, 252, 0.75) 100%
    );
    backdrop-filter: blur(20px) saturate(120%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
    border: 0.5px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.03),
        0 2px 12px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all var(--transition-medium);
    overflow: hidden;
}

.time-reference-container:hover {
    transform: translateY(-1px);
    box-shadow: 
        0 14px 45px rgba(0, 0, 0, 0.04),
        0 3px 15px rgba(0, 0, 0, 0.06);
}

.time-reference-title {
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    color: var(--color-text-tertiary);
    margin-bottom: var(--spacing-lg);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    opacity: 0.85;
}

.time-reference-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.time-reference-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.time-reference-table thead th {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-align: center;
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    opacity: 0.8;
}

.time-reference-table tbody tr {
    transition: all var(--transition-fast);
    position: relative;
}

.time-reference-table tbody tr:not(:last-child) td {
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.time-reference-table tbody tr:hover {
    background: rgba(0, 122, 255, 0.02);
}

.time-reference-table tbody tr:hover td {
    color: var(--color-text-primary);
}

.time-reference-table td {
    padding: var(--spacing-md) var(--spacing-md);
    vertical-align: middle;
    text-align: center;
    transition: all var(--transition-fast);
}

.time-value {
    white-space: nowrap;
    min-width: 120px;
    text-align: center;
}

.time-number {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-primary);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    margin-right: 4px;
}

.time-unit {
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text-secondary);
    letter-spacing: 0.02em;
}

.concept-text {
    font-size: 15px;
    font-weight: 400;
    color: var(--color-text-primary);
    letter-spacing: 0.01em;
}

.activity-text {
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text-secondary);
    line-height: 1.5;
    letter-spacing: 0.01em;
}

/* Time Reference Section - Dark Mode Support */
[data-theme="dark"] .time-reference-container {
    background: linear-gradient(
        135deg,
        rgba(30, 30, 30, 0.75) 0%,
        rgba(28, 28, 28, 0.65) 50%,
        rgba(32, 32, 32, 0.75) 100%
    );
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .time-reference-table thead th {
    border-bottom-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .time-reference-table tbody tr:not(:last-child) td {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .time-reference-table tbody tr:hover {
    background: rgba(10, 132, 255, 0.05);
}

[data-theme="dark"] .time-number {
    color: #0A84FF;
}

[data-theme="dark"] .concept-text {
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .activity-text,
[data-theme="dark"] .time-unit {
    color: rgba(255, 255, 255, 0.6);
}

/* Time Reference Responsive Design */
@media (max-width: 768px) {
    .time-reference-section {
        padding: 0 var(--spacing-sm) var(--spacing-xl);
    }
    
    .time-reference-container {
        padding: var(--spacing-lg);
        border-radius: var(--border-radius);
    }
    
    .time-reference-title {
        font-size: 16px;
        margin-bottom: var(--spacing-md);
    }
    
    .time-reference-table thead th {
        font-size: 12px;
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    .time-reference-table td {
        padding: var(--spacing-sm) var(--spacing-sm);
    }
    
    .time-number {
        font-size: 16px;
    }
    
    .concept-text {
        font-size: 14px;
    }
    
    .activity-text {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .time-reference-table {
        font-size: 13px;
    }
    
    .time-reference-table thead {
        display: none;
    }
    
    .time-reference-table tbody tr {
        display: block;
        margin-bottom: var(--spacing-md);
        padding: var(--spacing-sm);
        background: rgba(0, 0, 0, 0.02);
        border-radius: var(--border-radius-sm);
        border: 1px solid rgba(0, 0, 0, 0.04);
    }
    
    .time-reference-table tbody tr:not(:last-child) td {
        border-bottom: none;
    }
    
    .time-reference-table td {
        display: block;
        padding: var(--spacing-xs) 0;
        text-align: left;
    }
    
    .time-value {
        font-weight: 600;
        margin-bottom: var(--spacing-xs);
    }
    
    .concept-text {
        margin-bottom: var(--spacing-xs);
    }
    
    .concept-text::before {
        content: "🎯 ";
        opacity: 0.6;
    }
    
    .activity-text::before {
        content: "⏱ ";
        opacity: 0.6;
    }
    
    [data-theme="dark"] .time-reference-table tbody tr {
        background: rgba(255, 255, 255, 0.03);
        border-color: rgba(255, 255, 255, 0.08);
    }
}

/* Footer */
.footer {
    text-align: center;
    padding: var(--spacing-lg) var(--spacing-md);
    background: transparent;
    color: var(--color-text-tertiary);
    font-size: 13px;
    font-family: inherit;
    letter-spacing: 0.02em;
    opacity: 0.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .controls {
        width: 100%;
        justify-content: center;
    }

    .main-container {
        padding: var(--spacing-lg) var(--spacing-sm);
        gap: var(--spacing-lg);
    }

    .time-display {
        padding: var(--spacing-xl);
    }

    .seconds-number {
        font-size: 72px;
    }

    .info-section {
        flex-direction: column;
        gap: var(--spacing-xs);
        padding: var(--spacing-sm);
    }

    .info-separator {
        width: 40px;
        height: 1px;
    }
}

@media (max-width: 480px) {
    .seconds-number {
        font-size: 64px;
    }

    .seconds-label {
        font-size: 16px;
    }

    .progress-bar-container {
        height: 3px;
    }

    .info-item {
        font-size: 14px;
    }

    .progress-percentage {
        font-size: 14px;
    }
    
    .time-display {
        padding: var(--spacing-lg);
    }
}

/* Accessibility */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
    border-radius: var(--border-radius-sm);
}

/* Performance optimizations */
.seconds-number,
.progress-bar {
    will-change: transform;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --color-text-primary: #000000;
        --color-text-secondary: #666666;
        --color-border: #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .glow-layer {
        animation: none !important;
    }
    
    body::before,
    body::after {
        filter: none !important;
    }
}

/* Performance optimizations for background glows */
@supports (backdrop-filter: blur(1px)) {
    .glow-layer,
    body::before,
    body::after {
        transform: translateZ(0);
        backface-visibility: hidden;
        perspective: 1000px;
    }
}

/* Reduce glow complexity on low-end devices */
@media (max-width: 768px) {
    .glow-layer {
        opacity: 0.5;
        filter: blur(80px);
    }
    
    body::after {
        display: none;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Selection styles */
::selection {
    background-color: rgba(0, 113, 227, 0.1);
    color: var(--color-primary);
}