:root, [data-theme="light"] {
  --md-sys-color-primary: #6750A4;
  --md-sys-color-on-primary: #FFFFFF;
  --md-sys-color-primary-container: #EADDFF;
  --md-sys-color-on-primary-container: #21005D;
  
  --md-sys-color-secondary: #625B71;
  --md-sys-color-on-secondary: #FFFFFF;
  --md-sys-color-secondary-container: #E8DEF8;
  --md-sys-color-on-secondary-container: #1D192B;
  
  --md-sys-color-background: #FEF7FF;
  --md-sys-color-on-background: #1D1B20;
  --md-sys-color-surface: #FEF7FF;
  --md-sys-color-on-surface: #1D1B20;
  --md-sys-color-surface-variant: #E7E0EC;
  --md-sys-color-on-surface-variant: #49454F;
  
  --md-sys-color-outline: #79747E;
  --md-sys-color-outline-variant: #CAC4D0;
  
  --md-sys-color-surface-container-lowest: #FFFFFF;
  --md-sys-color-surface-container-low: #F7F2FA;
  --md-sys-color-surface-container: #F3EDF7;
  --md-sys-color-surface-container-high: #ECE6F0;
  --md-sys-color-surface-container-highest: #E6E0E9;

  --md-sys-typescale-display-small: 400 36px/44px 'Roboto', system-ui, sans-serif;
  --md-sys-typescale-headline-small: 400 24px/32px 'Roboto', system-ui, sans-serif;
  --md-sys-typescale-body-large: 400 16px/24px 'Roboto', system-ui, sans-serif;
  --md-sys-typescale-label-medium: 500 12px/16px 'Roboto', system-ui, sans-serif;
  
  --md-sys-shape-corner-extra-large: 28px;
  --md-sys-shape-corner-large: 16px;
  --md-sys-shape-corner-full: 9999px;
  
  --md-sys-elevation-1: 0px 1px 3px 1px rgba(0, 0, 0, 0.15), 0px 1px 2px 0px rgba(0, 0, 0, 0.30);
}

[data-theme="dark"] {
  --md-sys-color-primary: #D0BCFF;
  --md-sys-color-on-primary: #381E72;
  --md-sys-color-primary-container: #4F378B;
  --md-sys-color-on-primary-container: #EADDFF;
  
  --md-sys-color-secondary: #CCC2DC;
  --md-sys-color-on-secondary: #332D41;
  --md-sys-color-secondary-container: #4A4458;
  --md-sys-color-on-secondary-container: #E8DEF8;
  
  --md-sys-color-background: #141218;
  --md-sys-color-on-background: #E6E0E9;
  --md-sys-color-surface: #141218;
  --md-sys-color-on-surface: #E6E0E9;
  --md-sys-color-surface-variant: #49454F;
  --md-sys-color-on-surface-variant: #CAC4D0;
  
  --md-sys-color-outline: #938F99;
  --md-sys-color-outline-variant: #49454F;
  
  --md-sys-color-surface-container-lowest: #0F0D13;
  --md-sys-color-surface-container-low: #1D1B20;
  --md-sys-color-surface-container: #211F26;
  --md-sys-color-surface-container-high: #2B2930;
  --md-sys-color-surface-container-highest: #36343B;
  
  --md-sys-elevation-1: 0px 1px 3px 1px rgba(0, 0, 0, 0.15), 0px 1px 2px 0px rgba(0, 0, 0, 0.30);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --md-sys-color-primary: #D0BCFF;
    --md-sys-color-on-primary: #381E72;
    --md-sys-color-primary-container: #4F378B;
    --md-sys-color-on-primary-container: #EADDFF;
    
    --md-sys-color-secondary: #CCC2DC;
    --md-sys-color-on-secondary: #332D41;
    --md-sys-color-secondary-container: #4A4458;
    --md-sys-color-on-secondary-container: #E8DEF8;
    
    --md-sys-color-background: #141218;
    --md-sys-color-on-background: #E6E0E9;
    --md-sys-color-surface: #141218;
    --md-sys-color-on-surface: #E6E0E9;
    --md-sys-color-surface-variant: #49454F;
    --md-sys-color-on-surface-variant: #CAC4D0;
    
    --md-sys-color-outline: #938F99;
    --md-sys-color-outline-variant: #49454F;
    
    --md-sys-color-surface-container-lowest: #0F0D13;
    --md-sys-color-surface-container-low: #1D1B20;
    --md-sys-color-surface-container: #211F26;
    --md-sys-color-surface-container-high: #2B2930;
    --md-sys-color-surface-container-highest: #36343B;
    
    --md-sys-elevation-1: 0px 1px 3px 1px rgba(0, 0, 0, 0.15), 0px 1px 2px 0px rgba(0, 0, 0, 0.30);
  }
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--md-sys-color-background);
    color: var(--md-sys-color-on-background);
    font-family: 'Roboto', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s cubic-bezier(0.2, 0, 0, 1), color 0.3s cubic-bezier(0.2, 0, 0, 1);
}

.dashboard {
    background-color: var(--md-sys-color-surface-container-low);
    border-radius: var(--md-sys-shape-corner-extra-large);
    padding: 24px;
    width: calc(100% - 32px);
    max-width: 650px;
    margin: 16px;
    box-shadow: var(--md-sys-elevation-1);
    box-sizing: border-box;
    transition: background-color 0.3s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.3s cubic-bezier(0.2, 0, 0, 1);
}

@media (min-width: 600px) {
    .dashboard {
        padding: 40px;
    }
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.title {
    font: var(--md-sys-typescale-headline-small);
    color: var(--md-sys-color-on-surface);
    margin: 0;
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: none;
    background-color: transparent;
    color: var(--md-sys-color-on-surface-variant);
    border-radius: var(--md-sys-shape-corner-full);
    cursor: pointer;
    transition: background-color 0.2s cubic-bezier(0.2, 0, 0, 1), color 0.2s cubic-bezier(0.2, 0, 0, 1);
    padding: 0;
    flex-shrink: 0;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.icon-button:hover {
    background-color: var(--md-sys-color-surface-variant);
    color: var(--md-sys-color-on-surface-variant);
}

.icon-button:focus-visible {
    background-color: var(--md-sys-color-surface-variant);
    outline: 2px solid var(--md-sys-color-primary);
    outline-offset: 2px;
}

.icon-button:active {
    background-color: var(--md-sys-color-surface-variant);
    opacity: 0.8;
}

.icon-button .material-symbols-outlined {
    font-size: 24px;
}

.progress-wrapper {
    position: relative;
    margin-bottom: 40px;
}

.progress-track {
    width: 100%;
    height: 16px;
    background-color: var(--md-sys-color-surface-variant);
    border-radius: var(--md-sys-shape-corner-full);
    overflow: hidden;
    position: relative;
    transition: background-color 0.3s cubic-bezier(0.2, 0, 0, 1);
}

.progress-fill {
    height: 100%;
    width: 0%;
    background-color: var(--md-sys-color-primary);
    border-radius: var(--md-sys-shape-corner-full);
    transition: width 0.1s linear, background-color 0.3s cubic-bezier(0.2, 0, 0, 1);
}

.markers {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    padding: 0 4px;
    font: var(--md-sys-typescale-label-medium);
    color: var(--md-sys-color-on-surface-variant);
    transition: color 0.3s cubic-bezier(0.2, 0, 0, 1);
}

.stats-panel {
    background-color: var(--md-sys-color-surface-container-highest);
    border-radius: var(--md-sys-shape-corner-large);
    padding: 32px;
    text-align: center;
    transition: background-color 0.3s cubic-bezier(0.2, 0, 0, 1);
}

.percentage-display {
    margin-bottom: 12px;
}

#percentageText {
    font: var(--md-sys-typescale-display-small);
    color: var(--md-sys-color-primary);
    font-variant-numeric: tabular-nums;
    word-break: break-all;
    margin: 0;
    transition: color 0.3s cubic-bezier(0.2, 0, 0, 1);
}

.details-display {
    margin-bottom: 0;
}

#daysText {
    font: var(--md-sys-typescale-body-large);
    color: var(--md-sys-color-on-surface-variant);
    margin: 0;
    transition: color 0.3s cubic-bezier(0.2, 0, 0, 1);
}

@media (max-width: 600px) {
    .dashboard {
        padding: 24px 16px;
        border-radius: var(--md-sys-shape-corner-large);
    }
    
    .title {
        font-size: 20px;
        line-height: 28px;
    }
    
    .stats-panel {
        padding: 24px 16px;
    }
    
    #percentageText {
        font-size: 28px;
        line-height: 36px;
    }
    
    .markers {
        font-size: 10px;
    }
}

.secondary-dashboards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 24px;
}

@media (min-width: 600px) {
    .secondary-dashboards {
        grid-template-columns: repeat(3, 1fr);
    }
}

.mini-dashboard {
    background-color: var(--md-sys-color-surface-container);
    border-radius: var(--md-sys-shape-corner-large);
    padding: 20px;
    transition: background-color 0.3s cubic-bezier(0.2, 0, 0, 1);
}

.mini-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
}

.mini-title {
    font: var(--md-sys-typescale-body-large);
    font-weight: 500;
    color: var(--md-sys-color-on-surface);
    margin: 0;
}

.mini-percentage {
    font: var(--md-sys-typescale-label-medium);
    color: var(--md-sys-color-primary);
    font-variant-numeric: tabular-nums;
    transition: color 0.3s cubic-bezier(0.2, 0, 0, 1);
}

.mini-progress-track {
    width: 100%;
    height: 8px;
    background-color: var(--md-sys-color-surface-variant);
    border-radius: var(--md-sys-shape-corner-full);
    overflow: hidden;
    margin-bottom: 12px;
    transition: background-color 0.3s cubic-bezier(0.2, 0, 0, 1);
}

.mini-progress-fill {
    height: 100%;
    width: 0%;
    background-color: var(--md-sys-color-primary);
    border-radius: var(--md-sys-shape-corner-full);
    transition: width 0.1s linear, background-color 0.3s cubic-bezier(0.2, 0, 0, 1);
}

.mini-details {
    font: var(--md-sys-typescale-label-medium);
    color: var(--md-sys-color-on-surface-variant);
    margin: 0;
    transition: color 0.3s cubic-bezier(0.2, 0, 0, 1);
}