/* Prevent zoom gestures and pinch-to-zoom on touch devices */
html {
    touch-action: manipulation;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

body {
    touch-action: manipulation;
}

:root {
    color-scheme: light dark;
    --background: 40 20% 97%;
    --foreground: 240 15% 20%;
    --card: 0 0% 100%;
    --card-foreground: 240 15% 20%;
    --popover: 0 0% 100%;
    --popover-foreground: 240 15% 20%;
    --primary: 255 65% 60%;
    --primary-foreground: 0 0% 100%;
    --secondary: 150 15% 90%;
    --secondary-foreground: 240 15% 25%;
    --muted: 40 15% 94%;
    --muted-foreground: 240 10% 50%;
    --accent: 35 80% 65%;
    --accent-foreground: 240 20% 15%;
    --destructive: 0 72% 55%;
    --destructive-foreground: 0 0% 100%;
    --border: 240 10% 88%;
    --input: 240 10% 92%;
    --ring: 255 65% 60%;
    --radius: 1rem;
    --focus: 155 65% 55%;
    --focus-foreground: 0 0% 100%;
    --calm: 200 70% 60%;
    --calm-foreground: 0 0% 100%;
    --pause: 35 90% 60%;
    --pause-foreground: 240 20% 15%;
    --gradient-hero: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(280 60% 65%) 100%);
    --gradient-glow: radial-gradient(circle at 50% 0%, hsl(var(--primary) / 0.15) 0%, transparent 70%);
    --gradient-completion: radial-gradient(circle at center, hsl(var(--focus) / 0.3) 0%, transparent 70%);
    --shadow-soft: 0 4px 24px -4px hsl(240 15% 20% / 0.08);
    --shadow-card: 0 8px 40px -8px hsl(240 15% 20% / 0.12);
    --shadow-glow: 0 0 48px -12px hsl(var(--primary) / 0.4);
    --transition-smooth: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.dark {
    color-scheme: dark;
    --background: 240 25% 12%;
    --foreground: 40 15% 92%;
    --card: 240 20% 16%;
    --card-foreground: 40 15% 92%;
    --popover: 240 22% 14%;
    --popover-foreground: 40 15% 92%;
    --primary: 260 75% 65%;
    --primary-foreground: 0 0% 100%;
    --secondary: 240 15% 22%;
    --secondary-foreground: 40 15% 90%;
    --muted: 240 12% 20%;
    --muted-foreground: 240 8% 60%;
    --accent: 15 75% 60%;
    --accent-foreground: 0 0% 100%;
    --destructive: 0 65% 50%;
    --destructive-foreground: 0 0% 100%;
    --border: 240 15% 22%;
    --input: 240 15% 24%;
    --ring: 260 75% 65%;
    --focus: 155 70% 50%;
    --calm: 200 75% 55%;
    --pause: 35 85% 55%;
    --gradient-hero: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(280 70% 60%) 100%);
    --gradient-glow: radial-gradient(circle at 50% 0%, hsl(var(--primary) / 0.2) 0%, transparent 70%);
    --gradient-completion: radial-gradient(circle at center, hsl(var(--focus) / 0.35) 0%, transparent 70%);
    --shadow-soft: 0 4px 24px -4px hsl(0 0% 0% / 0.3);
    --shadow-card: 0 8px 40px -8px hsl(0 0% 0% / 0.4);
    --shadow-glow: 0 0 48px -12px hsl(var(--primary) / 0.5);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    min-height: 100%;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: "GeneralSans", "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    transition: background 0.6s ease, color 0.6s ease;
}

.loader {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: hsl(var(--background));
}

.loader__glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 20%, hsl(var(--primary) / 0.25) 0%, transparent 65%);
    filter: blur(40px);
    opacity: 0.8;
    pointer-events: none;
}

.loader__card {
    position: relative;
    z-index: 1;
    width: min(420px, 90%);
    padding: 3rem 2.5rem;
    border-radius: 2rem;
    background: hsl(var(--card));
    box-shadow: var(--shadow-card);
    border: 1px solid hsl(var(--border) / 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.loader__icon {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 2.25rem;
    background: hsl(var(--primary) / 0.12);
    color: hsl(var(--primary));
    box-shadow: var(--shadow-glow);
}

.loader__title {
    font-size: 1.6rem;
}

.loader__subtitle {
    color: hsl(var(--muted-foreground));
}

.loader__bar {
    width: 100%;
    height: 0.5rem;
    border-radius: 999px;
    overflow: hidden;
    background: hsl(var(--muted) / 0.7);
    position: relative;
}

.loader__bar-fill {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    transform-origin: left center;
    animation: loader-progress 2.8s ease-in-out infinite;
}

@keyframes loader-progress {
    0% { transform: scaleX(0.1); opacity: 0.4; }
    50% { transform: scaleX(1); opacity: 1; }
    100% { transform: scaleX(0.2); opacity: 0.6; }
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.015em;
}

p {
    margin: 0;
    line-height: 1.7;
}

button {
    font: inherit;
}

.splash {
    min-height: 100vh;
    display: grid;
    place-items: center;
    gap: 1rem;
}

.splash__spinner {
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    border: 3px solid hsl(var(--muted));
    border-top-color: hsl(var(--primary));
    animation: spin 1s linear infinite;
}

.loading-spinner {
    width: 4rem;
    height: 4rem;
    border-radius: 999px;
    border: 3px solid hsl(var(--muted));
    border-top-color: hsl(var(--primary));
    border-right-color: hsl(var(--primary) / 0.7);
    animation: spin 1.2s linear infinite;
}

.splash__text {
    font-weight: 600;
    color: hsl(var(--muted-foreground));
}

/* ==========================================
   AUTH SCENE - Modern Login Experience
   ========================================== */
.auth-scene {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    overflow: hidden;
}

.auth-scene__glow {
    position: absolute;
    inset: 0;
    background: var(--gradient-glow);
    opacity: 0.35;
    pointer-events: none;
    animation: glow-pulse 8s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 0.55; }
}

.auth-card {
    position: relative;
    z-index: 10;
    width: min(480px, 100%);
    background: hsl(var(--background));
    border: 1px solid hsl(var(--border));
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: 
        0 4px 6px -1px rgb(0 0 0 / 0.1),
        0 20px 25px -5px rgb(0 0 0 / 0.1),
        0 0 0 1px hsl(var(--primary) / 0.05);
    animation: auth-card-enter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    text-align: center;
}

@keyframes auth-card-enter {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-card__logo {
    display: flex;
    justify-content: center;
    animation: logo-float 3s ease-in-out infinite;
}

@keyframes logo-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.auth-card__content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.auth-card__title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, 
        hsl(var(--foreground)), 
        hsl(var(--foreground) / 0.7)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-card__subtitle {
    font-size: 1.0625rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
}

.auth-card__actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.auth-card__hint {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.5;
}

.btn-primary--glow {
    box-shadow: 
        0 0 0 1px hsl(var(--primary)),
        0 4px 12px -2px hsl(var(--primary) / 0.4),
        0 10px 20px -4px hsl(var(--primary) / 0.3);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary--glow:hover {
    box-shadow: 
        0 0 0 1px hsl(var(--primary)),
        0 6px 16px -2px hsl(var(--primary) / 0.5),
        0 14px 28px -4px hsl(var(--primary) / 0.4);
    transform: translateY(-2px);
}

.btn-primary--glow:active {
    transform: translateY(0);
}

@media (max-width: 640px) {
    .auth-card {
        padding: 2.5rem 1.75rem;
        border-radius: 20px;
    }
    
    .auth-card__title {
        font-size: 1.75rem;
    }
}

.scene {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(2rem, 5vw, 4rem) 1.5rem;
    overflow: hidden;
}

.scene__glow {
    position: absolute;
    inset: 0;
    background: var(--gradient-glow);
    opacity: 0.4;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

.scene__glow--celebration {
    background: var(--gradient-completion);
    opacity: 0.75;
}

.scene--error .scene__glow {
    background: radial-gradient(circle at 50% 0%, hsl(0 65% 50% / 0.2) 0%, transparent 70%);
    opacity: 0.3;
}

.scene--loading .scene__glow {
    background: radial-gradient(circle at 50% 0%, hsl(var(--primary) / 0.2) 0%, transparent 70%);
    opacity: 0.4;
}

.error-glow {
    background: radial-gradient(circle at 50% 0%, hsl(0 65% 50% / 0.2) 0%, transparent 70%) !important;
}

.scene__content {
    position: relative;
    z-index: 50;
    width: min(720px, 100%);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    align-items: center;
}

.scene__icon {
    width: 6rem;
    height: 6rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 2.5rem;
    background: hsl(var(--primary) / 0.1);
    box-shadow: var(--shadow-glow);
}

.error-icon {
    width: 6rem;
    height: 6rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 2.5rem;
    background: hsl(0 65% 50% / 0.1);
    box-shadow: 0 0 48px -12px hsl(0 65% 50% / 0.4);
}

.error-hint {
    font-size: 0.95rem;
    color: hsl(var(--muted-foreground));
    font-style: italic;
    margin-top: 0.5rem;
}

/* ==========================================
   SKELETON LOADING
   ========================================== */
.card--skeleton {
    pointer-events: none;
    animation: fade-in 0.3s ease;
}

.skeleton {
    background: linear-gradient(
        90deg,
        hsl(var(--muted) / 0.3) 0%,
        hsl(var(--muted) / 0.5) 50%,
        hsl(var(--muted) / 0.3) 100%
    );
    background-size: 200% 100%;
    border-radius: 0.5rem;
    animation: shimmer 1.5s infinite;
}

.skeleton--title {
    height: 2rem;
    width: 70%;
    border-radius: 0.75rem;
}

.skeleton--text {
    height: 1rem;
    width: 100%;
    border-radius: 0.5rem;
}

.skeleton--button {
    height: 3rem;
    width: 100%;
    border-radius: 1.25rem;
    margin-bottom: 1rem;
}

.skeleton--button-sm {
    height: 2.5rem;
    flex: 1;
    border-radius: 1rem;
}

.skeleton-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.scene__copy {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 600px;
}

.scene__copy h1 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    background: var(--gradient-hero);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.scene__copy .subtitle {
    font-size: 1.3rem;
    color: hsl(var(--muted-foreground));
    font-weight: 600;
}

.scene__copy .description {
    color: hsl(var(--foreground) / 0.85);
    max-width: 480px;
}

.scene__actions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.progress-dots {
    display: flex;
    gap: 0.5rem;
}

.progress-dots__dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: hsl(var(--primary) / 0.3);
    border: none;
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.progress-dots__dot.is-active {
    width: 2rem;
    background: hsl(var(--primary));
}

.card {
    width: 100%;
    background: hsl(var(--card));
    border-radius: 2.25rem;
    padding: clamp(2rem, 5vw, 3.5rem);
    box-shadow: var(--shadow-card);
    border: 1px solid hsl(var(--border) / 0.5);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.card__header {
    display: grid;
    gap: 0.5rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

.eyebrow-bar {
    width: 6rem;
    height: 0.25rem;
    margin: 0 auto;
    border-radius: 999px;
    background: var(--gradient-hero);
}

.card__body {
    display: grid;
    gap: 1.5rem;
}

.task-title {
    font-size: clamp(2.2rem, 4vw, 3rem);
}

.task-description {
    font-size: 1.1rem;
    color: hsl(var(--muted-foreground));
}

.task-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

.due-date {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 999px;
    border: 1px solid hsl(var(--border) / 0.5);
    background: hsl(var(--muted) / 0.3);
    padding: 0.35rem 0.9rem;
    font-size: 0.85rem;
    color: hsl(var(--muted-foreground));
}

.card__footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.secondary-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.btn {
    border-radius: 1.25rem;
    padding: 0.9rem 1.6rem;
    font-weight: 600;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease, opacity 0.25s ease;
}

.btn__icon {
    font-size: 1.1rem;
}

.btn-primary {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: scale(1.02);
}

.btn-primary--wide {
    width: 100%;
    height: 4rem;
    font-size: 1.1rem;
}

.btn-secondary {
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
}

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

.btn-secondary--compact {
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
}

.btn-outline {
    background: transparent;
    color: hsl(var(--foreground));
    border: 1px solid hsl(var(--border));
}

.btn-outline:hover {
    border-color: hsl(var(--primary));
}

.btn-round {
    width: 4.25rem;
    height: 4.25rem;
    border-radius: 999px;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.caption {
    font-size: 0.9rem;
    color: hsl(var(--muted-foreground));
}

.empty-icon {
    font-size: 3rem;
}

.timer-header {
    text-align: center;
    margin-bottom: 2rem;
}

.timer-header h2 {
    font-size: clamp(1.75rem, 3vw, 2.2rem);
    margin: 0.5rem 0;
}

.timer-info {
    color: hsl(var(--muted-foreground));
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.timer-circle {
    position: relative;
    width: min(20rem, 70vw);
    aspect-ratio: 1;
}

.timer-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.timer-circle__track {
    fill: none;
    stroke: hsl(var(--muted) / 0.35);
    stroke-width: 8;
}

.timer-circle__progress {
    fill: none;
    stroke: url(#timerGradient);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease;
}

.timer-circle__display {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 0.5rem;
}

.time-value {
    font-size: clamp(3rem, 8vw, 4.5rem);
    font-variant-numeric: tabular-nums;
}

.timer-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
}

.celebration-icon {
    width: 8rem;
    height: 8rem;
    border-radius: 999px;
    font-size: 3rem;
    display: grid;
    place-items: center;
    background: hsl(var(--focus) / 0.2);
}

.celebration-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-slide-up {
    animation: slide-up 0.6s ease both;
}

.animate-breathe {
    animation: breathe 6s ease-in-out infinite;
}

.animate-glow {
    animation: glow 2.4s ease-in-out infinite;
}

.animate-celebrate {
    animation: celebrate 0.9s ease both;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes slide-up {
    from { transform: translateY(24px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.01); }
}

@keyframes glow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes celebrate {
    0% { transform: scale(0.95); opacity: 0; }
    60% { transform: scale(1.02); opacity: 1; }
    100% { transform: scale(1); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .scene__content {
        gap: 1.5rem;
        padding-bottom: 1rem;
    }

    .card {
        padding: 2rem 1.5rem;
    }

    .secondary-actions {
        grid-template-columns: 1fr;
    }

    .timer-controls {
        flex-direction: column;
        gap: 1.25rem;
        align-items: stretch;
    }

    .btn-round {
        margin: 0 auto;
    }

    .timer-controls .btn-outline {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .scene__content {
        gap: 1.25rem;
        /* Prevent card from overlapping with FAB/Toggle - add safe zone */
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
        padding-bottom: 5.5rem; /* Space for FAB at bottom */
    }

    .card {
        padding: 1.5rem 1.25rem;
        gap: 1.5rem;
    }

    .card__body {
        gap: 1.25rem;
    }

    .task-title {
        font-size: clamp(1.75rem, 5vw, 2.2rem);
    }

    .task-description {
        font-size: 1rem;
    }

    .btn-primary--wide {
        height: 3.5rem;
        font-size: 1rem;
    }

    .secondary-actions {
        gap: 0.65rem;
    }

    .btn-secondary {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Global input styling for forms */
input.form-input,
textarea.form-input,
input[type="text"].form-input,
input[type="date"].form-input,
textarea.form-input {
    width: 100%;
    padding: 0.85rem 1rem !important;
    border-radius: 1rem !important;
    border: 1px solid hsl(var(--border)) !important;
    background: hsl(var(--card)) !important;
    color: hsl(var(--foreground)) !important;
    font-size: 1rem !important;
    font-family: inherit !important;
    transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    resize: none !important;
}

input.form-input::placeholder,
textarea.form-input::placeholder {
    color: hsl(var(--muted-foreground)) !important;
    opacity: 0.7 !important;
}

input.form-input:focus,
textarea.form-input:focus {
    border-color: hsl(var(--primary)) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.15) !important;
    background: hsl(var(--card)) !important;
}

input[type="date"].form-input {
    cursor: pointer !important;
}

input[type="date"].form-input::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s ease;
    filter: invert(0.5);
}

.dark input[type="date"].form-input::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

input[type="date"].form-input::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

#blazor-error-ui {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: rgba(255, 215, 0, 0.95);
    color: #1f2937;
    display: none;
    z-index: 1100;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.25);
}

#blazor-error-ui .dismiss {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    cursor: pointer;
    font-weight: 700;
}

/* ========================================
   SNACKBAR STYLES
   Professional Toast/Snackbar Component
   ======================================== */

.snackbar-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
    z-index: 2000;
    max-width: min(500px, calc(100vw - 3rem));
}

/* Base Snackbar Styles */
.snackbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border) / 0.5);
    box-shadow: 0 10px 40px -10px hsl(240 15% 20% / 0.2);
    pointer-events: auto;
    position: relative;
    overflow: hidden;
    animation: snackbar-slide-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(8px);
}

.dark .snackbar {
    box-shadow: 0 10px 40px -10px hsl(0 0% 0% / 0.4);
}

/* Snackbar Content */
.snackbar__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.snackbar__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.snackbar__icon {
    flex-shrink: 0;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
}

.snackbar__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    line-height: 1.3;
}

.snackbar__description {
    margin: 0;
    font-size: 0.85rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.4;
    margin-left: 2.25rem;
}

/* Close Button */
.snackbar__close {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    border: none;
    background: hsl(var(--muted) / 0.5);
    color: hsl(var(--muted-foreground));
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.snackbar__close:hover {
    background: hsl(var(--muted));
    color: hsl(var(--foreground));
    transform: scale(1.1);
}

.snackbar__close:active {
    transform: scale(0.95);
}

/* Progress Bar */
.snackbar__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-hero);
    animation: snackbar-progress linear forwards;
}

@keyframes snackbar-progress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* Success Snackbar */
.snackbar--success {
    background: linear-gradient(135deg, hsl(var(--focus) / 0.1) 0%, hsl(var(--focus) / 0.05) 100%);
    border-color: hsl(var(--focus) / 0.3);
}

.snackbar--success .snackbar__icon {
    background: hsl(var(--focus) / 0.2);
    color: hsl(var(--focus));
}

.snackbar--success .snackbar__progress {
    background: hsl(var(--focus));
}

/* Error Snackbar */
.snackbar--error {
    background: linear-gradient(135deg, hsl(var(--destructive) / 0.1) 0%, hsl(var(--destructive) / 0.05) 100%);
    border-color: hsl(var(--destructive) / 0.3);
}

.snackbar--error .snackbar__icon {
    background: hsl(var(--destructive) / 0.2);
    color: hsl(var(--destructive));
}

.snackbar--error .snackbar__progress {
    background: hsl(var(--destructive));
}

/* Warning Snackbar */
.snackbar--warning {
    background: linear-gradient(135deg, hsl(var(--pause) / 0.1) 0%, hsl(var(--pause) / 0.05) 100%);
    border-color: hsl(var(--pause) / 0.3);
}

.snackbar--warning .snackbar__icon {
    background: hsl(var(--pause) / 0.2);
    color: hsl(var(--pause));
}

.snackbar--warning .snackbar__progress {
    background: hsl(var(--pause));
}

/* Info Snackbar */
.snackbar--info {
    background: linear-gradient(135deg, hsl(var(--calm) / 0.1) 0%, hsl(var(--calm) / 0.05) 100%);
    border-color: hsl(var(--calm) / 0.3);
}

.snackbar--info .snackbar__icon {
    background: hsl(var(--calm) / 0.2);
    color: hsl(var(--calm));
}

.snackbar--info .snackbar__progress {
    background: hsl(var(--calm));
}

/* Animations */
@keyframes snackbar-slide-in {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.animate-slide-in {
    animation: snackbar-slide-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
    .snackbar-container {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }

    .snackbar {
        padding: 0.9rem 1rem;
        gap: 0.75rem;
    }

    .snackbar__title {
        font-size: 0.9rem;
    }

    .snackbar__description {
        font-size: 0.8rem;
        margin-left: 2rem;
    }

    .snackbar__close {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.8rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .snackbar {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .snackbar__progress {
        animation: none;
    }

    .snackbar__close {
        transition: none;
    }
}