/* 💙 HeartTime - Material Design 3 Theme System */

:root {
    /* ===== Material Design 3 Color Tokens ===== */
    
    /* Primary Color System */
    --m3-primary: #0ea5e9;
    --m3-on-primary: #ffffff;
    --m3-primary-container: #e0f2fe;
    --m3-on-primary-container: #001d36;
    
    /* Secondary Color System */
    --m3-secondary: #0284c7;
    --m3-on-secondary: #ffffff;
    --m3-secondary-container: #bae6fd;
    --m3-on-secondary-container: #001829;
    
    /* Surface Color System */
    --m3-surface: #ffffff;
    --m3-on-surface: #1f2937;
    --m3-surface-variant: #f8fafc;
    --m3-on-surface-variant: #64748b;
    
    /* Background Color System */
    --m3-background: #ffffff;
    --m3-on-background: #1f2937;
    
    /* Outline and Border Colors */
    --m3-outline: #64748b;
    --m3-outline-variant: #e5e7eb;
    
    /* Error Color System */
    --m3-error: #f87171;
    --m3-on-error: #ffffff;
    --m3-error-container: #fef2f2;
    --m3-on-error-container: #7f1d1d;
    
    /* Neutral Color System */
    --m3-neutral-10: #f8fafc;
    --m3-neutral-20: #f1f5f9;
    --m3-neutral-30: #e2e8f0;
    --m3-neutral-40: #cbd5e1;
    --m3-neutral-50: #94a3b8;
    --m3-neutral-60: #64748b;
    --m3-neutral-70: #475569;
    --m3-neutral-80: #334155;
    --m3-neutral-90: #1e293b;
    --m3-neutral-95: #0f172a;
    
    /* ===== Material Design 3 Typography Scale ===== */
    
    /* Display Typography */
    --m3-display-large-font: 57px;
    --m3-display-large-line-height: 64px;
    --m3-display-large-weight: 400;
    --m3-display-large-tracking: -0.25px;
    
    --m3-display-medium-font: 45px;
    --m3-display-medium-line-height: 52px;
    --m3-display-medium-weight: 400;
    --m3-display-medium-tracking: 0px;
    
    --m3-display-small-font: 36px;
    --m3-display-small-line-height: 44px;
    --m3-display-small-weight: 400;
    --m3-display-small-tracking: 0px;
    
    /* Headline Typography */
    --m3-headline-large-font: 32px;
    --m3-headline-large-line-height: 40px;
    --m3-headline-large-weight: 400;
    --m3-headline-large-tracking: 0px;
    
    --m3-headline-medium-font: 28px;
    --m3-headline-medium-line-height: 36px;
    --m3-headline-medium-weight: 400;
    --m3-headline-medium-tracking: 0px;
    
    --m3-headline-small-font: 24px;
    --m3-headline-small-line-height: 32px;
    --m3-headline-small-weight: 400;
    --m3-headline-small-tracking: 0px;
    
    /* Title Typography */
    --m3-title-large-font: 22px;
    --m3-title-large-line-height: 28px;
    --m3-title-large-weight: 400;
    --m3-title-large-tracking: 0px;
    
    --m3-title-medium-font: 16px;
    --m3-title-medium-line-height: 24px;
    --m3-title-medium-weight: 500;
    --m3-title-medium-tracking: 0.15px;
    
    --m3-title-small-font: 14px;
    --m3-title-small-line-height: 20px;
    --m3-title-small-weight: 500;
    --m3-title-small-tracking: 0.1px;
    
    /* Body Typography */
    --m3-body-large-font: 16px;
    --m3-body-large-line-height: 24px;
    --m3-body-large-weight: 400;
    --m3-body-large-tracking: 0.5px;
    
    --m3-body-medium-font: 14px;
    --m3-body-medium-line-height: 20px;
    --m3-body-medium-weight: 400;
    --m3-body-medium-tracking: 0.25px;
    
    --m3-body-small-font: 12px;
    --m3-body-small-line-height: 16px;
    --m3-body-small-weight: 400;
    --m3-body-small-tracking: 0.4px;
    
    /* Label Typography */
    --m3-label-large-font: 14px;
    --m3-label-large-line-height: 20px;
    --m3-label-large-weight: 500;
    --m3-label-large-tracking: 0.1px;
    
    --m3-label-medium-font: 12px;
    --m3-label-medium-line-height: 16px;
    --m3-label-medium-weight: 500;
    --m3-label-medium-tracking: 0.5px;
    
    --m3-label-small-font: 11px;
    --m3-label-small-line-height: 16px;
    --m3-label-small-weight: 500;
    --m3-label-small-tracking: 0.5px;
    
    /* ===== Material Design 3 Spacing System ===== */
    
    /* Base spacing unit (4px) */
    --m3-space-1: 4px;
    --m3-space-2: 8px;
    --m3-space-3: 12px;
    --m3-space-4: 16px;
    --m3-space-5: 20px;
    --m3-space-6: 24px;
    --m3-space-8: 32px;
    --m3-space-10: 40px;
    --m3-space-12: 48px;
    --m3-space-16: 64px;
    --m3-space-20: 80px;
    --m3-space-24: 96px;
    
    /* Component-specific spacing */
    --m3-card-padding: var(--m3-space-4);
    --m3-card-margin: var(--m3-space-4);
    --m3-button-padding-horizontal: var(--m3-space-6);
    --m3-button-padding-vertical: var(--m3-space-3);
    --m3-list-item-padding: var(--m3-space-4);
    
    /* ===== Material Design 3 Elevation System ===== */
    
    --m3-elevation-level0: none;
    --m3-elevation-level1: 0px 1px 3px 1px rgba(0, 0, 0, 0.15), 0px 1px 2px 0px rgba(0, 0, 0, 0.30);
    --m3-elevation-level2: 0px 2px 6px 2px rgba(0, 0, 0, 0.15), 0px 1px 2px 0px rgba(0, 0, 0, 0.30);
    --m3-elevation-level3: 0px 4px 8px 3px rgba(0, 0, 0, 0.15), 0px 1px 3px 0px rgba(0, 0, 0, 0.30);
    --m3-elevation-level4: 0px 6px 10px 4px rgba(0, 0, 0, 0.15), 0px 2px 3px 0px rgba(0, 0, 0, 0.30);
    --m3-elevation-level5: 0px 8px 12px 6px rgba(0, 0, 0, 0.15), 0px 4px 4px 0px rgba(0, 0, 0, 0.30);
    
    /* ===== Material Design 3 Shape System ===== */
    
    --m3-shape-corner-none: 0px;
    --m3-shape-corner-extra-small: 4px;
    --m3-shape-corner-small: 8px;
    --m3-shape-corner-medium: 12px;
    --m3-shape-corner-large: 16px;
    --m3-shape-corner-extra-large: 28px;
    --m3-shape-corner-full: 50%;
    
    /* ===== Material Design 3 Motion System ===== */
    
    /* Duration tokens */
    --m3-motion-duration-short1: 50ms;
    --m3-motion-duration-short2: 100ms;
    --m3-motion-duration-short3: 150ms;
    --m3-motion-duration-short4: 200ms;
    --m3-motion-duration-medium1: 250ms;
    --m3-motion-duration-medium2: 300ms;
    --m3-motion-duration-medium3: 350ms;
    --m3-motion-duration-medium4: 400ms;
    --m3-motion-duration-long1: 450ms;
    --m3-motion-duration-long2: 500ms;
    --m3-motion-duration-long3: 550ms;
    --m3-motion-duration-long4: 600ms;
    
    /* Easing tokens */
    --m3-motion-easing-linear: cubic-bezier(0, 0, 1, 1);
    --m3-motion-easing-standard: cubic-bezier(0.2, 0, 0, 1);
    --m3-motion-easing-standard-accelerate: cubic-bezier(0.3, 0, 1, 1);
    --m3-motion-easing-standard-decelerate: cubic-bezier(0, 0, 0, 1);
    --m3-motion-easing-emphasized: cubic-bezier(0.2, 0, 0, 1);
    --m3-motion-easing-emphasized-accelerate: cubic-bezier(0.3, 0, 0.8, 0.15);
    --m3-motion-easing-emphasized-decelerate: cubic-bezier(0.05, 0.7, 0.1, 1);
    
    /* ===== Component-specific tokens ===== */
    
    /* Navigation tokens */
    --m3-nav-bar-height: 64px;
    --m3-nav-rail-width: 80px;
    --m3-top-app-bar-height: 64px;
    
    /* FAB tokens */
    --m3-fab-size: 56px;
    --m3-fab-small-size: 40px;
    --m3-fab-large-size: 96px;
    
    /* Button tokens */
    --m3-button-height: 40px;
    --m3-button-min-width: 64px;
    
    /* Card tokens */
    --m3-card-elevation: var(--m3-elevation-level1);
    --m3-card-shape: var(--m3-shape-corner-medium);
    
    /* Text field tokens */
    --m3-text-field-height: 56px;
    --m3-text-field-shape: var(--m3-shape-corner-extra-small);
}

/* ===== Typography Classes ===== */

.m3-display-large {
    font-size: var(--m3-display-large-font);
    line-height: var(--m3-display-large-line-height);
    font-weight: var(--m3-display-large-weight);
    letter-spacing: var(--m3-display-large-tracking);
}

.m3-display-medium {
    font-size: var(--m3-display-medium-font);
    line-height: var(--m3-display-medium-line-height);
    font-weight: var(--m3-display-medium-weight);
    letter-spacing: var(--m3-display-medium-tracking);
}

.m3-display-small {
    font-size: var(--m3-display-small-font);
    line-height: var(--m3-display-small-line-height);
    font-weight: var(--m3-display-small-weight);
    letter-spacing: var(--m3-display-small-tracking);
}

.m3-headline-large {
    font-size: var(--m3-headline-large-font);
    line-height: var(--m3-headline-large-line-height);
    font-weight: var(--m3-headline-large-weight);
    letter-spacing: var(--m3-headline-large-tracking);
}

.m3-headline-medium {
    font-size: var(--m3-headline-medium-font);
    line-height: var(--m3-headline-medium-line-height);
    font-weight: var(--m3-headline-medium-weight);
    letter-spacing: var(--m3-headline-medium-tracking);
}

.m3-headline-small {
    font-size: var(--m3-headline-small-font);
    line-height: var(--m3-headline-small-line-height);
    font-weight: var(--m3-headline-small-weight);
    letter-spacing: var(--m3-headline-small-tracking);
}

.m3-title-large {
    font-size: var(--m3-title-large-font);
    line-height: var(--m3-title-large-line-height);
    font-weight: var(--m3-title-large-weight);
    letter-spacing: var(--m3-title-large-tracking);
}

.m3-title-medium {
    font-size: var(--m3-title-medium-font);
    line-height: var(--m3-title-medium-line-height);
    font-weight: var(--m3-title-medium-weight);
    letter-spacing: var(--m3-title-medium-tracking);
}

.m3-title-small {
    font-size: var(--m3-title-small-font);
    line-height: var(--m3-title-small-line-height);
    font-weight: var(--m3-title-small-weight);
    letter-spacing: var(--m3-title-small-tracking);
}

.m3-body-large {
    font-size: var(--m3-body-large-font);
    line-height: var(--m3-body-large-line-height);
    font-weight: var(--m3-body-large-weight);
    letter-spacing: var(--m3-body-large-tracking);
}

.m3-body-medium {
    font-size: var(--m3-body-medium-font);
    line-height: var(--m3-body-medium-line-height);
    font-weight: var(--m3-body-medium-weight);
    letter-spacing: var(--m3-body-medium-tracking);
}

.m3-body-small {
    font-size: var(--m3-body-small-font);
    line-height: var(--m3-body-small-line-height);
    font-weight: var(--m3-body-small-weight);
    letter-spacing: var(--m3-body-small-tracking);
}

.m3-label-large {
    font-size: var(--m3-label-large-font);
    line-height: var(--m3-label-large-line-height);
    font-weight: var(--m3-label-large-weight);
    letter-spacing: var(--m3-label-large-tracking);
}

.m3-label-medium {
    font-size: var(--m3-label-medium-font);
    line-height: var(--m3-label-medium-line-height);
    font-weight: var(--m3-label-medium-weight);
    letter-spacing: var(--m3-label-medium-tracking);
}

.m3-label-small {
    font-size: var(--m3-label-small-font);
    line-height: var(--m3-label-small-line-height);
    font-weight: var(--m3-label-small-weight);
    letter-spacing: var(--m3-label-small-tracking);
}

/* ===== Elevation Classes ===== */

.m3-elevation-0 { box-shadow: var(--m3-elevation-level0); }
.m3-elevation-1 { box-shadow: var(--m3-elevation-level1); }
.m3-elevation-2 { box-shadow: var(--m3-elevation-level2); }
.m3-elevation-3 { box-shadow: var(--m3-elevation-level3); }
.m3-elevation-4 { box-shadow: var(--m3-elevation-level4); }
.m3-elevation-5 { box-shadow: var(--m3-elevation-level5); }

/* ===== Shape Classes ===== */

.m3-shape-none { border-radius: var(--m3-shape-corner-none); }
.m3-shape-extra-small { border-radius: var(--m3-shape-corner-extra-small); }
.m3-shape-small { border-radius: var(--m3-shape-corner-small); }
.m3-shape-medium { border-radius: var(--m3-shape-corner-medium); }
.m3-shape-large { border-radius: var(--m3-shape-corner-large); }
.m3-shape-extra-large { border-radius: var(--m3-shape-corner-extra-large); }
.m3-shape-full { border-radius: var(--m3-shape-corner-full); }