/* =============================================
   Section 1 — @font-face (DM Sans)
   ============================================= */
@font-face { font-family: 'DM Sans'; src: url('../fonts/DMSans-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('../fonts/DMSans-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('../fonts/DMSans-SemiBold.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('../fonts/DMSans-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

/* =============================================
   Section 2 — @property registrations
   Typed <color> values allow browser to
   interpolate during transitions.
   ============================================= */

/* Original 11 */
@property --theme-bg-start    { syntax: '<color>'; inherits: true; initial-value: #FFF8F0; }
@property --theme-bg-end      { syntax: '<color>'; inherits: true; initial-value: #FFD8A8; }
@property --theme-surface     { syntax: '<color>'; inherits: true; initial-value: rgba(255,255,255,0.75); }
@property --theme-border      { syntax: '<color>'; inherits: true; initial-value: rgba(124,58,0,0.15); }
@property --theme-text        { syntax: '<color>'; inherits: true; initial-value: #3B1800; }
@property --theme-text-muted  { syntax: '<color>'; inherits: true; initial-value: #7C3A00; }
@property --theme-accent      { syntax: '<color>'; inherits: true; initial-value: #F97316; }
@property --theme-accent-hover{ syntax: '<color>'; inherits: true; initial-value: #EA580C; }
@property --theme-today       { syntax: '<color>'; inherits: true; initial-value: rgba(249,115,22,0.15); }
@property --theme-weekend     { syntax: '<color>'; inherits: true; initial-value: rgba(249,115,22,0.05); }
@property --theme-on-accent   { syntax: '<color>'; inherits: true; initial-value: #fff; }

/* 5 new glass properties */
@property --theme-glass-border    { syntax: '<color>'; inherits: true; initial-value: rgba(255,255,255,0.6); }
@property --theme-glass-ring      { syntax: '<color>'; inherits: true; initial-value: rgba(124,58,0,0.06); }
@property --theme-glass-shadow    { syntax: '<color>'; inherits: true; initial-value: rgba(0,0,0,0.04); }
@property --theme-glass-highlight { syntax: '<color>'; inherits: true; initial-value: rgba(255,255,255,0.7); }
@property --theme-glass-divider   { syntax: '<color>'; inherits: true; initial-value: rgba(124,58,0,0.1); }
@property --theme-modal-bg       { syntax: '<color>'; inherits: true; initial-value: #FFF6EC; }

/* =============================================
   Section 3 — CSS Reset
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    height: 100%;
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    color: var(--theme-text);
    transition: color var(--theme-transition-duration, 15s) ease-in-out;
    -webkit-font-smoothing: antialiased;
}

/* =============================================
   Section 4 — Theme blocks
   Driven by data-theme attribute on <body>
   ============================================= */
[data-theme="morning"] {
    --theme-bg-start:          #FFF8F0;
    --theme-bg-end:            #FFD8A8;
    --theme-surface:           rgba(255,255,255,0.75);
    --theme-border:            rgba(124,58,0,0.15);
    --theme-text:              #3B1800;
    --theme-text-muted:        #7C3A00;
    --theme-accent:            #F97316;
    --theme-accent-hover:      #EA580C;
    --theme-today:             rgba(249,115,22,0.15);
    --theme-weekend:           rgba(249,115,22,0.05);
    --theme-on-accent:         #fff;
    --theme-surface-opacity:   0.55;
    --theme-glass-border:      rgba(255,255,255,0.6);
    --theme-glass-ring:        rgba(124,58,0,0.06);
    --theme-glass-shadow:      rgba(0,0,0,0.04);
    --theme-glass-highlight:   rgba(255,255,255,0.7);
    --theme-glass-divider:     rgba(124,58,0,0.1);
    --theme-modal-bg:          #FFF6EC;
}

[data-theme="daytime"] {
    --theme-bg-start:          #E8F4FD;
    --theme-bg-end:            #C8E6FA;
    --theme-surface:           rgba(255,255,255,0.80);
    --theme-border:            rgba(26,74,110,0.15);
    --theme-text:              #0F2A40;
    --theme-text-muted:        #1A4A6E;
    --theme-accent:            #3B82F6;
    --theme-accent-hover:      #2563EB;
    --theme-today:             rgba(59,130,246,0.15);
    --theme-weekend:           rgba(59,130,246,0.05);
    --theme-on-accent:         #fff;
    --theme-surface-opacity:   0.55;
    --theme-glass-border:      rgba(255,255,255,0.5);
    --theme-glass-ring:        rgba(26,74,110,0.06);
    --theme-glass-shadow:      rgba(0,0,0,0.06);
    --theme-glass-highlight:   rgba(255,255,255,0.6);
    --theme-glass-divider:     rgba(26,74,110,0.1);
    --theme-modal-bg:          #EDF4FA;
}

[data-theme="evening"] {
    --theme-bg-start:          #2D1B4E;
    --theme-bg-end:            #4A2060;
    --theme-surface:           rgba(255,255,255,0.10);
    --theme-border:            rgba(244,200,122,0.2);
    --theme-text:              #F4E8D0;
    --theme-text-muted:        #F4C87A;
    --theme-accent:            #C084FC;
    --theme-accent-hover:      #A855F7;
    --theme-today:             rgba(192,132,252,0.2);
    --theme-weekend:           rgba(192,132,252,0.08);
    --theme-on-accent:         #fff;
    --theme-surface-opacity:   0.12;
    --theme-glass-border:      rgba(244,200,122,0.15);
    --theme-glass-ring:        rgba(244,200,122,0.06);
    --theme-glass-shadow:      rgba(0,0,0,0.2);
    --theme-glass-highlight:   rgba(255,255,255,0.08);
    --theme-glass-divider:     rgba(244,200,122,0.1);
    --theme-modal-bg:          #2A1A42;
}

[data-theme="night"] {
    --theme-bg-start:          #0A0E1A;
    --theme-bg-end:            #0F1628;
    --theme-surface:           rgba(255,255,255,0.06);
    --theme-border:            rgba(139,179,232,0.15);
    --theme-text:              #E2EAF4;
    --theme-text-muted:        #8BB3E8;
    --theme-accent:            #60A5FA;
    --theme-accent-hover:      #3B82F6;
    --theme-today:             rgba(96,165,250,0.15);
    --theme-weekend:           rgba(96,165,250,0.05);
    --theme-on-accent:         #fff;
    --theme-surface-opacity:   0.08;
    --theme-glass-border:      rgba(139,179,232,0.12);
    --theme-glass-ring:        rgba(139,179,232,0.04);
    --theme-glass-shadow:      rgba(0,0,0,0.3);
    --theme-glass-highlight:   rgba(255,255,255,0.04);
    --theme-glass-divider:     rgba(139,179,232,0.08);
    --theme-modal-bg:          #121A2E;
}

/* =============================================
   Section 5 — Layout utilities
   Custom Bootstrap replacements
   ============================================= */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.text-center { text-align: center; }
.hidden { display: none; }
.block { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.text-danger { color: #ef4444; }
.mb-1 { margin-bottom: 4px; } .mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; } .mb-4 { margin-bottom: 24px; }
.mb-5 { margin-bottom: 40px; }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; } .mt-4 { margin-top: 24px; }
.ms-1 { margin-left: 4px; } .ms-2 { margin-left: 8px; }
.me-1 { margin-right: 4px; } .me-2 { margin-right: 8px; }
.px-2 { padding-left: 8px; padding-right: 8px; }
.px-3 { padding-left: 16px; padding-right: 16px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-3 { padding-top: 16px; padding-bottom: 16px; }
.pb-1 { padding-bottom: 4px; } .pb-2 { padding-bottom: 8px; }
.pb-3 { padding-bottom: 16px; } .pb-4 { padding-bottom: 24px; }
.pt-1 { padding-top: 4px; } .pt-2 { padding-top: 8px; }
.pt-3 { padding-top: 16px; } .pt-4 { padding-top: 24px; }
.p-2 { padding: 8px; } .p-3 { padding: 16px; } .p-4 { padding: 24px; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 16px; }
.w-full { width: 100%; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fw-bold { font-weight: 700; }
.fw-semibold { font-weight: 600; }
.text-sm { font-size: 13px; }

/* =============================================
   Section 6 — DOM layer model
   ============================================= */
#theme-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: linear-gradient(160deg, var(--theme-bg-start), var(--theme-bg-end));
    transition:
        --theme-bg-start var(--theme-transition-duration, 15s) ease-in-out,
        --theme-bg-end   var(--theme-transition-duration, 15s) ease-in-out;
    pointer-events: none;
}

#weather-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    transition: opacity 1s ease;
}

#app {
    position: relative;
    z-index: 2;
    min-height: 100vh;
}

/* =============================================
   Section 7 — Glass surface mixin class
   ============================================= */
.glass-surface {
    background: rgba(255, 255, 255, calc(var(--theme-surface-opacity, 0.55) * var(--user-surface-multiplier, 1)));
    border: 1px solid var(--theme-glass-border);
    border-radius: 8px;
    box-shadow:
        0 0 0 1px var(--theme-glass-ring),
        0 8px 24px var(--theme-glass-shadow),
        inset 0 1px 0 var(--theme-glass-highlight);
    transition:
        background-color var(--theme-transition-duration, 15s) ease-in-out,
        border-color var(--theme-transition-duration, 15s) ease-in-out,
        box-shadow var(--theme-transition-duration, 15s) ease-in-out;
}

/* =============================================
   Section 8 — Buttons
   ============================================= */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px; padding: 10px 20px; font-size: 14px;
    font-family: inherit; font-weight: 500; border-radius: 6px;
    cursor: pointer; border: none;
    transition: background-color var(--theme-transition-duration, 15s) ease-in-out,
                color var(--theme-transition-duration, 15s) ease-in-out,
                border-color var(--theme-transition-duration, 15s) ease-in-out;
}

.btn:active { filter: brightness(0.95); }

.btn-primary {
    background: var(--theme-accent); color: var(--theme-on-accent); font-weight: 600;
    box-shadow: 0 0 12px color-mix(in srgb, var(--theme-accent) 20%, transparent);
}

.btn-secondary, .btn-glass {
    background: rgba(255, 255, 255, calc(var(--theme-surface-opacity, 0.55) * var(--user-surface-multiplier, 1)));
    color: var(--theme-text); border: 1px solid var(--theme-glass-border);
    box-shadow: inset 0 1px 0 var(--theme-glass-highlight);
}

.btn-ghost { background: transparent; color: var(--theme-text-muted); padding: 10px; min-height: auto; }
.btn-danger { background: transparent; color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-sm { padding: 6px 12px; font-size: 12px; min-height: 36px; }
.btn-close { background: transparent; border: none; color: var(--theme-text-muted); font-size: 20px; cursor: pointer; padding: 8px; line-height: 1; }
.btn-group { display: inline-flex; gap: 4px; }

/* =============================================
   Section 9 — View tabs (clean underline)
   ============================================= */
.view-tabs { display: flex; border-bottom: 2px solid var(--theme-glass-divider); list-style: none; transition: border-color var(--theme-transition-duration, 15s) ease-in-out; }
.view-tab { padding: 12px 20px; font-size: 14px; font-weight: 500; color: var(--theme-text-muted); background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -2px; cursor: pointer; min-height: 48px; transition: color 0.2s ease-in-out, border-color 0.2s ease-in-out; }
.view-tab.active { font-weight: 600; color: var(--theme-text); border-bottom-color: var(--theme-accent); }

/* =============================================
   Section 10 — Modals
   ============================================= */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.4); z-index: 100; display: flex; align-items: center; justify-content: center; }
.modal-dialog { width: 100%; max-width: 500px; padding: 16px; }
.modal-sm .modal-dialog { max-width: 360px; }
.modal-content {
    background: var(--theme-modal-bg);
    border: 1px solid var(--theme-glass-border); border-radius: 8px;
    box-shadow: 0 0 0 1px var(--theme-glass-ring), 0 16px 48px var(--theme-glass-shadow), inset 0 1px 0 var(--theme-glass-highlight);
    color: var(--theme-text);
    transition: background-color var(--theme-transition-duration, 15s) ease-in-out, border-color var(--theme-transition-duration, 15s) ease-in-out, color var(--theme-transition-duration, 15s) ease-in-out;
}
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--theme-glass-divider); }
.modal-title { font-size: 18px; font-weight: 600; }
.modal-body { padding: 20px; }
.modal-footer { display: flex; justify-content: space-between; padding: 16px 20px; border-top: 1px solid var(--theme-glass-divider); gap: 8px; }

/* =============================================
   Section 11 — Forms
   ============================================= */
.form-label { display: block; font-size: 13px; font-weight: 500; color: var(--theme-text-muted); margin-bottom: 6px; }
.form-input { width: 100%; background: transparent; border: 1px solid var(--theme-glass-border); border-radius: 6px; color: var(--theme-text); padding: 10px 14px; font-size: 14px; font-family: inherit; transition: border-color var(--theme-transition-duration, 15s) ease-in-out, color var(--theme-transition-duration, 15s) ease-in-out; }
.form-input:focus { outline: none; border-color: var(--theme-accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--theme-accent) 20%, transparent); }
.form-check { display: flex; align-items: center; gap: 8px; }
.form-check-input { accent-color: var(--theme-accent); width: 20px; height: 20px; }
.form-check-label { font-size: 14px; color: var(--theme-text); }

/* =============================================
   Section 12 — Alerts
   ============================================= */
.alert { padding: 12px 16px; border-radius: 6px; font-size: 14px; }
.alert-warning { background: rgba(234, 179, 8, 0.15); color: var(--theme-text); border: 1px solid rgba(234, 179, 8, 0.3); }
.alert-danger { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }

/* =============================================
   Section 13 — Spinner
   ============================================= */
.spinner { display: inline-block; width: 24px; height: 24px; border: 3px solid var(--theme-glass-divider); border-top-color: var(--theme-accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
.spinner-sm { width: 16px; height: 16px; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* =============================================
   Section 14 — Calendar components
   ============================================= */

/* ── Dashboard container ──────────────────────────────────────────────── */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    overflow-x: hidden;
}

/* ── Month table ──────────────────────────────────────────────────────── */
.month-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    background: rgba(255, 255, 255, calc(var(--theme-surface-opacity, 0.55) * var(--user-surface-multiplier, 1)));
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    overflow: hidden;
    transition: background-color var(--theme-transition-duration, 15s) ease-in-out,
                color var(--theme-transition-duration, 15s) ease-in-out,
                border-color var(--theme-transition-duration, 15s) ease-in-out;
}

.month-table th,
.month-table td {
    border: 1px solid var(--theme-glass-divider);
    padding: 0.75rem;
    text-align: left;
    vertical-align: top;
}

.month-table th {
    background-color: rgba(255, 255, 255, calc(var(--theme-surface-opacity, 0.55) * var(--user-surface-multiplier, 1)));
    font-weight: 600;
    color: var(--theme-text-muted);
    transition: background-color var(--theme-transition-duration, 15s) ease-in-out,
                color var(--theme-transition-duration, 15s) ease-in-out,
                border-color var(--theme-transition-duration, 15s) ease-in-out;
}

.weekend-cell {
    background-color: var(--theme-weekend);
}

.today-cell {
    background-color: var(--theme-today);
    border: 2px solid var(--theme-accent);
}

/* ── Event capsule ────────────────────────────────────────────────────── */
.event-capsule {
    background-color: var(--theme-accent);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: transform 0.1s ease-in-out;
}

.event-capsule:hover {
    transform: scale(1.02);
}

.overflow-indicator {
    color: var(--theme-text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

/* ── Calendar chip selector ─────────────────────────────────────────── */
.chip-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    border: 2px solid transparent;
    transition: opacity 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
    user-select: none;
}

.chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.chip-active {
    background-color: var(--chip-color, #4F46E5);
    border-color: var(--chip-color, #4F46E5);
    color: #fff;
}

.chip-inactive {
    background-color: transparent;
    border-color: var(--chip-color, #6c757d);
    color: var(--chip-color, #6c757d);
    opacity: 0.65;
}

.chip-inactive:hover {
    opacity: 1;
}

.chip-dot {
    display: inline-block;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background-color: currentColor;
    flex-shrink: 0;
}

.chip-active .chip-dot {
    background-color: rgba(255, 255, 255, 0.85);
}

.chip-name {
    line-height: 1;
}

.chip-remove {
    font-size: 0.7rem;
    line-height: 1;
    margin-left: 0.1rem;
    opacity: 0.8;
    transition: opacity 0.1s;
}

.chip-remove:hover {
    opacity: 1;
}

.chip-error {
    font-size: 0.82rem;
    color: #dc3545;
}

/* ── Day View Grid ────────────────────────────────────────────────────── */
.day-view-container {
    display: flex;
    flex-direction: column;
    height: 75vh;
    border: 1px solid var(--theme-glass-divider);
    border-radius: 8px;
    background: rgba(255, 255, 255, calc(var(--theme-surface-opacity, 0.55) * var(--user-surface-multiplier, 1)));
    overflow-y: auto;
    transition: background-color var(--theme-transition-duration, 15s) ease-in-out,
                color var(--theme-transition-duration, 15s) ease-in-out,
                border-color var(--theme-transition-duration, 15s) ease-in-out;
}

.day-view-sticky-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(255, 255, 255, calc(var(--theme-surface-opacity, 0.55) * var(--user-surface-multiplier, 1)));
}

.day-header {
    display: flex;
    border-bottom: 1px solid var(--theme-glass-divider);
    background-color: rgba(255, 255, 255, calc(var(--theme-surface-opacity, 0.55) * var(--user-surface-multiplier, 1)));
}

.time-axis-header {
    width: 60px;
    flex-shrink: 0;
    border-right: 1px solid var(--theme-glass-divider);
}

.calendar-header-col {
    flex: 1;
    min-width: 0;
    text-align: center;
    padding: 0.5rem;
    font-weight: 600;
    border-right: 1px solid var(--theme-glass-divider);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.calendar-header-col:last-child {
    border-right: none;
}

.all-day-container {
    display: flex;
    border-bottom: 2px solid var(--theme-glass-divider);
    background-color: var(--theme-weekend);
}

.all-day-label {
    width: 60px;
    flex-shrink: 0;
    border-right: 1px solid var(--theme-glass-divider);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
    font-size: 0.75rem;
    color: var(--theme-text-muted);
    min-height: 40px;
}

.all-day-col {
    flex: 1;
    border-right: 1px solid var(--theme-glass-divider);
    padding: 4px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.all-day-col:last-child {
    border-right: none;
}

.day-body-scrollable {
    flex: 1;
    overflow-y: visible;
    position: relative;
    background-color: rgba(255, 255, 255, calc(var(--theme-surface-opacity, 0.55) * var(--user-surface-multiplier, 1)));
}

.current-time-line {
    position: absolute;
    left: 60px;
    right: 0;
    height: 2px;
    background-color: var(--theme-accent);
    z-index: 20;
    pointer-events: none;
}
.current-time-line::before {
    content: '';
    position: absolute;
    left: -4px;
    top: -4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--theme-accent);
}

.day-body-flex {
    display: flex;
    position: relative;
    height: 1440px; /* 1 pixel per minute * 1 = 1440px total. 60px per hour. */
}

/* Time axis left column */
.time-axis {
    width: 60px;
    flex-shrink: 0;
    border-right: 1px solid var(--theme-glass-divider);
    position: relative;
    background-color: rgba(255, 255, 255, calc(var(--theme-surface-opacity, 0.55) * var(--user-surface-multiplier, 1)));
    z-index: 2; /* keep above horizontal lines */
}

.time-slot-label {
    position: absolute;
    width: 100%;
    text-align: right;
    padding-right: 8px;
    font-size: 0.75rem;
    color: var(--theme-text-muted);
    transform: translateY(-50%); /* Center the text vertically on the hour line */
}

/* Background grid horizontal lines */
.hour-lines-container {
    position: absolute;
    top: 0;
    left: 60px;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.hour-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--theme-glass-divider);
    opacity: 0.5;
}

/* Calendar Columns Container */
.calendar-cols-container {
    display: flex;
    flex: 1;
    position: relative;
    z-index: 3;
}

.calendar-col {
    flex: 1;
    border-right: 1px solid var(--theme-glass-divider);
    position: relative; /* absolute events position relative to this col */
    cursor: pointer; /* Click slot to add event here */
}
.calendar-col:last-child {
    border-right: none;
}

.calendar-col:hover {
    background-color: rgba(0,0,0,0.02);
}

/* Individual day event blocks */
.day-event-block {
    position: absolute;
    border-radius: 4px;
    padding: 2px 6px;
    color: white;
    font-size: 0.8rem;
    line-height: 1.2;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    border: 1px solid rgba(0,0,0,0.1);
    transition: filter 0.2s, z-index 0.2s;
    /* width and left explicitly set by inline styles for overlapping logic */
}

.day-event-block:hover {
    filter: brightness(1.1);
    z-index: 50 !important; /* Bring to front on hover */
}

/* ── Agenda View ──────────────────────────────────────────────────────── */
.agenda-view-container {
    background: rgba(255, 255, 255, calc(var(--theme-surface-opacity, 0.55) * var(--user-surface-multiplier, 1)));
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: background-color var(--theme-transition-duration, 15s) ease-in-out,
                color var(--theme-transition-duration, 15s) ease-in-out,
                border-color var(--theme-transition-duration, 15s) ease-in-out;
}

.agenda-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.agenda-table th,
.agenda-table td {
    border: 1px solid var(--theme-glass-divider);
    padding: 2px 4px;
    vertical-align: top;
    overflow: hidden;
}

.agenda-header-row th {
    background-color: rgba(255, 255, 255, calc(var(--theme-surface-opacity, 0.55) * var(--user-surface-multiplier, 1)));
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--theme-text-muted);
    text-align: center;
}

.agenda-day-col {
    width: 80px;
    white-space: nowrap;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--theme-text);
}

.agenda-cal-col {
    font-size: 0.75rem;
}

.agenda-cal-cell {
    cursor: pointer;
    height: calc((100vh - 150px) / 31);
    font-size: 0.75rem;
    overflow: hidden;
}

.agenda-cal-cell:hover {
    background-color: rgba(0,0,0,0.02);
}

.agenda-weekend-row .agenda-day-col,
.agenda-weekend-row .agenda-cal-cell {
    background-color: var(--theme-weekend);
}

.agenda-today-row .agenda-day-col {
    color: var(--theme-accent);
    font-weight: 700;
}

.agenda-today-row .agenda-cal-cell {
    background-color: var(--theme-today);
}

.agenda-event-line {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--theme-text);
    font-size: 0.75rem;
    padding: 1px 2px;
    cursor: pointer;
    border-radius: 2px;
}

.agenda-event-line:hover {
    background-color: rgba(0,0,0,0.07);
}

.agenda-overflow-btn {
    color: var(--theme-text-muted);
    font-size: 0.7rem;
    cursor: pointer;
    padding: 1px 2px;
}

.agenda-overflow-btn:hover {
    color: var(--theme-text);
    text-decoration: underline;
}

.cal-color-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 4px;
    vertical-align: middle;
}

/* =============================================
   Section 15 — Dashboard header
   ============================================= */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: rgba(255, 255, 255, calc(var(--theme-surface-opacity, 0.55) * var(--user-surface-multiplier, 1)));
    border-bottom: 1px solid var(--theme-glass-divider);
    color: var(--theme-text);
    transition: background-color var(--theme-transition-duration, 15s) ease-in-out,
                border-color var(--theme-transition-duration, 15s) ease-in-out,
                color var(--theme-transition-duration, 15s) ease-in-out;
}

.dashboard-header__brand {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.dashboard-header__settings {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: var(--theme-text);
    text-decoration: none;
    border-radius: 50%;
    transition: background-color 0.2s ease, color var(--theme-transition-duration, 15s) ease-in-out;
}

.dashboard-header__settings:hover {
    background: var(--theme-accent);
    color: var(--theme-on-accent);
}

.dashboard-header__back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: var(--theme-text);
    text-decoration: none;
    border-radius: 50%;
    transition: background-color 0.2s ease, color var(--theme-transition-duration, 15s) ease-in-out;
}

.dashboard-header__back:hover {
    background: var(--theme-accent);
    color: var(--theme-on-accent);
}

/* =============================================
   Section 16 — Settings page
   ============================================= */
.settings-page {
    max-width: 700px;
    margin: 0 auto;
    padding: 24px 20px 80px;
    overflow-y: auto;
    /* Virtual keyboard inset */
    padding-bottom: max(80px, env(keyboard-inset-height, 0px));
}

.settings-section__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--theme-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 32px 0 12px;
}

.settings-section {
    background: rgba(255, 255, 255, calc(var(--theme-surface-opacity, 0.55) * var(--user-surface-multiplier, 1)));
    border: 1px solid var(--theme-glass-divider);
    border-radius: 12px;
    padding: 20px;
    transition: background-color var(--theme-transition-duration, 15s) ease-in-out,
                border-color var(--theme-transition-duration, 15s) ease-in-out;
}

.settings-location-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--theme-accent);
    color: #fff;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.settings-location-pill__badge {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(0,0,0,0.25);
}

.settings-input-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.settings-label {
    font-size: 0.9rem;
    color: var(--theme-text-muted);
}

.settings-input {
    background: transparent;
    border: 1px solid var(--theme-glass-divider);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 1rem;
    color: var(--theme-text);
    outline: none;
    min-height: 48px;
    transition: border-color 0.2s ease;
}

.settings-input:focus {
    border-color: var(--theme-accent);
}

.settings-btn {
    display: block;
    width: 100%;
    min-height: 48px;
    background: var(--theme-accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: background-color 0.2s ease;
}

.settings-btn:hover:not(:disabled) {
    background: var(--theme-accent-hover);
}

.settings-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.settings-btn--secondary {
    background: transparent;
    border: 1px solid var(--theme-glass-divider);
    color: var(--theme-text);
    margin-top: 16px;
}

.settings-hint {
    font-size: 0.85rem;
    color: var(--theme-text-muted);
    margin: 6px 0 0;
}

.settings-error {
    color: #ef4444;
    font-size: 0.9rem;
    margin: 4px 0;
}

.settings-field-error {
    color: #ef4444;
    font-size: 0.82rem;
    margin: 4px 0 0;
}

.settings-input--error {
    border-color: #ef4444;
}

.settings-btn--ghost {
    background: transparent;
    border: none;
    color: var(--theme-text-muted);
    font-size: 0.85rem;
    padding: 8px 0;
    cursor: pointer;
    text-decoration: underline;
    min-height: 48px;
}

.settings-btn--ghost:hover {
    color: var(--theme-text);
}

/* Theme schedule tiles */
.settings-theme-schedule {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.theme-tile {
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.theme-tile--morning  { background: rgba(249,115,22,0.15);  }
.theme-tile--daytime  { background: rgba(59,130,246,0.15);  }
.theme-tile--evening  { background: rgba(192,132,252,0.15); }
.theme-tile--night    { background: rgba(96,165,250,0.10);  }

.theme-tile__name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--theme-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.theme-tile__time {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--theme-text);
}

/* Account section */
.settings-account {
    text-align: center;
}

.account-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--theme-accent);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.account-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--theme-text);
    margin: 0 0 4px;
}

.account-email {
    font-size: 0.9rem;
    color: var(--theme-text-muted);
    margin: 0 0 16px;
}

/* Settings sliders */
.settings-slider {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: var(--theme-glass-divider);
    outline: none;
}
.settings-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--theme-accent);
    cursor: pointer;
    border: 2px solid var(--theme-on-accent);
    box-shadow: 0 0 8px color-mix(in srgb, var(--theme-accent) 30%, transparent);
}
.settings-slider-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--theme-text);
    min-width: 50px;
    text-align: right;
}

/* =============================================
   Section 16b — Settings tabbed layout
   ============================================= */
.settings-page--tabbed {
    display: flex;
    min-height: calc(100vh - 64px);
}

.settings-tab-strip {
    width: 100px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,0.12);
    border-right: 1px solid var(--theme-border);
    padding: 12px 0;
    gap: 2px;
}

.settings-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 14px 8px;
    min-height: 62px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--theme-text-muted);
    text-align: center;
    position: relative;
    transition: background 0.15s;
}

.settings-tab:hover {
    background: rgba(var(--theme-accent-rgb, 249,115,22), 0.06);
}

.settings-tab--active {
    background: rgba(var(--theme-accent-rgb, 249,115,22), 0.12);
    color: var(--theme-accent);
    font-weight: 700;
}

.settings-tab--active::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 3px;
    background: var(--theme-accent);
    border-radius: 2px 0 0 2px;
}

.settings-tab__icon {
    font-size: 1.25rem;
    line-height: 1;
}

.settings-tab__label {
    line-height: 1.2;
}

.settings-tab-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.settings-section-content {
    padding: 16px 14px;
}

.settings-subsection__title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--theme-text-muted);
    opacity: 0.7;
    margin: 16px 0 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.settings-subsection__title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--theme-border);
}

.settings-theme-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
}

.theme-tile--selectable {
    cursor: pointer;
    transition: transform 0.1s;
}

.theme-tile--selectable:hover {
    transform: scale(1.02);
}

.theme-tile--readonly {
    cursor: default;
    opacity: 0.85;
}

.theme-tile--selected {
    border-color: white !important;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.6);
}

.theme-tile__tick {
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 0.85rem;
}

.settings-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    margin-bottom: 10px;
    background: rgba(255,255,255,0.12);
    border: 1px solid var(--theme-border);
    border-radius: 8px;
}

.settings-label--muted {
    opacity: 0.4;
}

/* Theme tile colour palettes — override base opacity-only backgrounds */
.settings-theme-grid .theme-tile--morning  { background: linear-gradient(135deg, #FFF8F0, #FFD8A8); }
.settings-theme-grid .theme-tile--daytime  { background: linear-gradient(135deg, #E8F4FD, #C8E6FA); }
.settings-theme-grid .theme-tile--evening  { background: linear-gradient(135deg, #2D1B4E, #4A2060); }
.settings-theme-grid .theme-tile--night    { background: linear-gradient(135deg, #0A0E1A, #0F1628); }

.settings-theme-grid .theme-tile--morning .theme-tile__name,
.settings-theme-grid .theme-tile--morning .theme-tile__time { color: #3B1800; }
.settings-theme-grid .theme-tile--daytime .theme-tile__name,
.settings-theme-grid .theme-tile--daytime .theme-tile__time { color: #0F2A40; }
.settings-theme-grid .theme-tile--evening .theme-tile__name { color: #F4C87A; }
.settings-theme-grid .theme-tile--evening .theme-tile__time { color: #F4E8D0; }
.settings-theme-grid .theme-tile--night .theme-tile__name   { color: #8BB3E8; }
.settings-theme-grid .theme-tile--night .theme-tile__time   { color: #E2EAF4; }

/* ── Calendar settings list ─────────────────────────────────────────── */
.calendar-settings-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.calendar-settings-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 8px;
}

.calendar-settings-row__color {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid var(--theme-glass-border);
}

.calendar-settings-row__name {
    flex: 1;
    font-size: 1rem;
    font-weight: 500;
    color: var(--theme-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-settings-row__controls {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.pill-toggle {
    min-width: 96px;
    min-height: 48px;
    padding: 10px 16px;
    border-radius: 9999px;
    border: 2px solid var(--theme-glass-border);
    background: transparent;
    color: var(--theme-text);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
    user-select: none;
}

.pill-toggle:hover:not(:disabled) {
    border-color: var(--theme-accent);
}

.pill-toggle--on {
    background-color: var(--theme-accent);
    border-color: var(--theme-accent);
    color: #fff;
}

.pill-toggle--off {
    background-color: transparent;
    color: var(--theme-text-muted);
}

.pill-toggle:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pill-toggle--shared.pill-toggle--on {
    background-color: var(--theme-accent-hover, var(--theme-accent));
    border-color: var(--theme-accent-hover, var(--theme-accent));
}

.weather-override__toggle-row,
.weather-override__modifier-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
}

.weather-override__condition-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

/* =============================================
   Section 17 — Error boundary
   ============================================= */
.error-boundary-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem;
}

.error-boundary-card {
    text-align: center;
    padding: 2.5rem;
    max-width: 420px;
    width: 100%;
}

.error-boundary-card h2 {
    color: var(--theme-text);
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.error-boundary-card p {
    color: var(--theme-text-muted);
    margin: 0 0 1.5rem;
}

/* =============================================
   Section 18 — Blazor error UI
   ============================================= */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* ── Weather Strip ── */
.weather-strip {
    display: flex;
    align-items: center;
    padding: 6px 16px;
    gap: 12px;
    font-size: 13px;
    border-radius: 0;
    transition: opacity 0.3s ease;
}

.weather-strip__current {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.weather-strip__temp {
    font-weight: 500;
}

.weather-strip__condition {
    opacity: 0.7;
    font-size: 12px;
}

.weather-strip__divider {
    width: 1px;
    height: 20px;
    background: var(--theme-glass-divider);
    flex-shrink: 0;
}

.weather-strip__forecast {
    display: flex;
    gap: 16px;
    overflow: hidden;
}

.weather-strip__forecast-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 11px;
}

.weather-strip__day-name {
    opacity: 0.6;
}

.weather-strip__day-temps {
    font-size: 11px;
}

.weather-strip__today-summary {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Weather Icon ── */
.weather-icon {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: var(--theme-text);
}

.weather-icon svg {
    vertical-align: middle;
}

.weather-icon__wind {
    opacity: 0.6;
}

/* Agenda Weather */
.agenda-weather {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

.agenda-weather__temps {
    font-size: 11px;
    color: var(--theme-text-muted);
}

/* Day View Hourly Weather */
.day-hour-temp {
    font-size: 12px;
    opacity: 0.8;
    color: var(--theme-text-muted);
}

/* ── Weather Overlay Animations ── */

/* Rain — falling lines using repeating gradient */
.weather-lightrain::before,
.weather-heavyrain::before,
.weather-drizzle::before {
    content: '';
    position: absolute;
    inset: -100% 0 0 0;
    background: repeating-linear-gradient(
        transparent,
        transparent 98%,
        rgba(174, 194, 224, 0.3) 98%,
        rgba(174, 194, 224, 0.3) 100%
    );
    background-size: 3px 80px;
    animation: weather-rain 0.8s linear infinite;
}

.weather-drizzle::before {
    background-size: 5px 120px;
    animation-duration: 1.5s;
    opacity: 0.5;
}

.weather-heavyrain::before {
    background-size: 2px 60px;
    animation-duration: 0.5s;
    opacity: 0.8;
}

@keyframes weather-rain {
    0% { transform: translateY(-80px); }
    100% { transform: translateY(80px); }
}

/* Thunder — rain + lightning flash */
.weather-thunder::before {
    content: '';
    position: absolute;
    inset: -100% 0 0 0;
    background: repeating-linear-gradient(
        transparent,
        transparent 98%,
        rgba(174, 194, 224, 0.3) 98%,
        rgba(174, 194, 224, 0.3) 100%
    );
    background-size: 2px 60px;
    animation: weather-rain 0.5s linear infinite;
    opacity: 0.8;
}

.weather-thunder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.15);
    opacity: 0;
    animation: weather-lightning 4s ease-in-out infinite;
}

@keyframes weather-lightning {
    0%, 92%, 94%, 96%, 100% { opacity: 0; }
    93% { opacity: 1; }
    95% { opacity: 0.67; }
}

/* Snow — falling dots */
.weather-snow::before {
    content: '';
    position: absolute;
    inset: -100% 0 0 0;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.5), transparent),
        radial-gradient(2px 2px at 50% 60%, rgba(255,255,255,0.4), transparent),
        radial-gradient(2px 2px at 80% 20%, rgba(255,255,255,0.5), transparent),
        radial-gradient(3px 3px at 35% 80%, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 65% 45%, rgba(255,255,255,0.4), transparent);
    background-size: 100px 100px;
    animation: weather-snow 3s linear infinite;
}

@keyframes weather-snow {
    0% { transform: translateY(-100px) translateX(0); }
    100% { transform: translateY(100px) translateX(20px); }
}

/* Sleet — mix of rain and snow */
.weather-sleet::before {
    content: '';
    position: absolute;
    inset: -100% 0 0 0;
    background:
        repeating-linear-gradient(transparent, transparent 98%, rgba(174,194,224,0.2) 98%, rgba(174,194,224,0.2) 100%),
        radial-gradient(2px 2px at 50% 50%, rgba(255,255,255,0.3), transparent);
    background-size: 4px 80px, 80px 80px;
    animation: weather-rain 1s linear infinite;
}

/* Clouds — drifting opacity */
.weather-partlycloudy::before,
.weather-cloudy::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(128,128,128,0.05) 20%,
        rgba(128,128,128,0.08) 40%,
        transparent 60%,
        rgba(128,128,128,0.06) 80%,
        transparent 100%
    );
    animation: weather-clouds 20s ease-in-out infinite;
}

.weather-cloudy::before {
    background: linear-gradient(
        90deg,
        rgba(128,128,128,0.05) 0%,
        rgba(128,128,128,0.12) 25%,
        rgba(128,128,128,0.15) 50%,
        rgba(128,128,128,0.1) 75%,
        rgba(128,128,128,0.05) 100%
    );
    animation-duration: 15s;
}

@keyframes weather-clouds {
    0%, 100% { transform: translateX(-10%); opacity: 0.7; }
    50% { transform: translateX(10%); opacity: 1; }
}

/* Fog */
.weather-fog::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(200,200,200,0.08) 30%,
        rgba(200,200,200,0.12) 60%,
        rgba(200,200,200,0.08) 100%
    );
    animation: weather-fog-pulse 6s ease-in-out infinite;
}

@keyframes weather-fog-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* GPU layer promotion for Pi 3B+ */
.weather-lightrain::before,
.weather-heavyrain::before,
.weather-drizzle::before,
.weather-thunder::before,
.weather-snow::before,
.weather-sleet::before {
    will-change: transform;
}

.weather-partlycloudy::before,
.weather-cloudy::before {
    will-change: transform, opacity;
}

.weather-fog::before,
.weather-thunder::after {
    will-change: opacity;
}

/* Wind modifier — tilts particle animations */
.weather-windy::before {
    transform-origin: top center;
}

.weather-windy.weather-lightrain::before,
.weather-windy.weather-heavyrain::before,
.weather-windy.weather-drizzle::before,
.weather-windy.weather-thunder::before {
    animation-name: weather-rain-windy;
}

.weather-windy.weather-snow::before {
    animation-name: weather-snow-windy;
}

@keyframes weather-rain-windy {
    0% { transform: translateY(-80px) rotate(15deg); }
    100% { transform: translateY(80px) rotate(15deg); }
}

@keyframes weather-snow-windy {
    0% { transform: translateY(-100px) translateX(0) rotate(10deg); }
    100% { transform: translateY(100px) translateX(40px) rotate(10deg); }
}
