:root {
    /* Light Mode CSS Variables */
    --background: #f4f5f8;
    --surface: #ffffff;
    --surface-dim: #eaecef;
    --surface-bright: #ffffff;
    --surface-container-lowest: #ffffff;
    --surface-container-low: #f9fafc;
    --surface-container: #eff1f5;
    --surface-container-high: #e3e5eb;
    --surface-container-highest: #d8dbe2;
    --on-surface: #1e1f24;
    --on-surface-variant: #5c5e69;
    --inverse-surface: #1e1f24;
    --inverse-on-surface: #ffffff;
    --outline: #787a85;
    --outline-variant: #c0c2cd;
    --primary: #3b5ba9;
    --on-primary: #ffffff;
    --primary-container: #d9e2ff;
    --on-primary-container: #001a43;
    --secondary: #ba1a1a;
    --on-secondary: #ffffff;
    --secondary-container: #ffdad6;
    --on-secondary-container: #410002;
    --tertiary: #1b6c38;
    --on-tertiary: #ffffff;
    --tertiary-container: #a4f5b2;
    --on-tertiary-container: #002107;
    --error: #ba1a1a;
    --on-error: #ffffff;
    --error-container: #ffdad6;
    --on-error-container: #410002;
    --surface-tint: #3b5ba9;
    --inverse-primary: #b5c7ff;

    --on-primary-fixed-variant: #002b73;
    --secondary-fixed-dim: #ffb3af;
    --tertiary-fixed-dim: #4de082;
    --on-tertiary-fixed-variant: #005227;
    --on-tertiary-fixed: #00210c;
    --on-primary-fixed: #001848;
    --on-secondary-fixed: #410005;
    --primary-fixed: #dae2ff;
    --primary-fixed-dim: #b2c5ff;
    --secondary-fixed: #ffdad7;
    --on-secondary-fixed-variant: #91081a;
    --surface-variant: #e1e2ec;
}

.dark {
    /* Dark Mode CSS Variables */
    --background: #11131b;
    --surface: #11131b;
    --surface-dim: #11131b;
    --surface-bright: #373942;
    --surface-container-lowest: #0c0e16;
    --surface-container-low: #191b23;
    --surface-container: #1d1f28;
    --surface-container-high: #282a32;
    --surface-container-highest: #33343d;
    --on-surface: #e1e1ed;
    --on-surface-variant: #c4c6d3;
    --inverse-surface: #e1e1ed;
    --inverse-on-surface: #2e3039;
    --outline: #8e909c;
    --outline-variant: #444651;
    --primary: #b5c7ff;
    --on-primary: #002b73;
    --primary-container: #8cabff;
    --on-primary-container: #163d8a;
    --secondary: #ffb3af;
    --on-secondary: #68000e;
    --secondary-container: #91081a;
    --on-secondary-container: #ff9994;
    --tertiary: #50e384;
    --on-tertiary: #003919;
    --tertiary-container: #29c66b;
    --on-tertiary-container: #004c23;
    --error: #ffb4ab;
    --on-error: #690005;
    --error-container: #93000a;
    --on-error-container: #ffdad6;
    --surface-tint: #b2c5ff;
    --inverse-primary: #3a5ba9;

    --on-primary-fixed-variant: #1e4390;
    --secondary-fixed-dim: #ffb3af;
    --tertiary-fixed-dim: #4de082;
    --on-tertiary-fixed-variant: #005227;
    --on-tertiary-fixed: #00210c;
    --on-primary-fixed: #001848;
    --on-secondary-fixed: #410005;
    --primary-fixed: #dae2ff;
    --primary-fixed-dim: #b2c5ff;
    --secondary-fixed: #ffdad7;
    --on-secondary-fixed-variant: #91081a;
    --surface-variant: #33343d;
}

body {
    background-color: var(--background);
    color: var(--on-surface);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: var(--background);
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--outline-variant);
    border-radius: 10px;
}

.glass-card {
    background: rgba(26, 29, 38, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(45, 51, 67, 0.5);
}

.light .glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(120, 122, 133, 0.3);
}

.pomodoro-ring {
    transition: stroke-dashoffset 0.5s ease;
}

.timer-glow {
    animation: timer-pulse 2s ease-in-out infinite;
}
@keyframes timer-pulse {
    0%, 100% { box-shadow: 0 0 12px rgba(186, 26, 26, 0.3), 0 0 24px rgba(186, 26, 26, 0.1); }
    50% { box-shadow: 0 0 20px rgba(186, 26, 26, 0.5), 0 0 40px rgba(186, 26, 26, 0.2); }
}

/* Custom keyframes for lock screen shaking */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

.shake-animation {
    animation: shake 0.3s ease-in-out 2;
}

/* ===== ROUTINES PAGE ===== */
.routine-card-glow {
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease, background-color 0.3s ease;
}
.routine-card-glow:hover {
    border-color: var(--primary) !important;
    box-shadow: 0 0 20px rgba(178, 197, 255, 0.12), 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-1px);
}

/* Timeline connector */
.timeline-connector {
    position: absolute;
    left: 11px;
    top: 16px;
    bottom: 16px;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary), var(--tertiary), var(--outline-variant), var(--secondary), var(--primary-container));
    border-radius: 2px;
}

/* Timeline dot pulse */
.timeline-dot {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.timeline-dot:hover {
    transform: scale(1.3);
}
.timeline-dot-pulse {
    animation: dot-pulse 2s ease-in-out infinite;
}
@keyframes dot-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(178, 197, 255, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(178, 197, 255, 0); }
}

/* Timeline card slide-in */
.timeline-item {
    opacity: 0;
    transform: translateX(-12px);
    animation: slide-in 0.4s ease-out forwards;
}
.timeline-item:nth-child(1) { animation-delay: 0.05s; }
.timeline-item:nth-child(2) { animation-delay: 0.1s; }
.timeline-item:nth-child(3) { animation-delay: 0.15s; }
.timeline-item:nth-child(4) { animation-delay: 0.2s; }
.timeline-item:nth-child(5) { animation-delay: 0.25s; }
.timeline-item:nth-child(6) { animation-delay: 0.3s; }
@keyframes slide-in {
    to { opacity: 1; transform: translateX(0); }
}

/* Toggle switch animation */
.toggle-switch {
    transition: background-color 0.25s ease;
}
.toggle-switch .toggle-knob {
    transition: transform 0.25s ease, background-color 0.25s ease;
}
.toggle-switch.active .toggle-knob {
    transform: translateX(20px);
}
.toggle-switch:not(.active) .toggle-knob {
    transform: translateX(0);
}

/* Template card enhanced */
.template-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.template-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.template-card:hover::after {
    opacity: 0.04;
}
.template-card:hover {
    transform: translateY(-2px);
}

/* Atmospheric decoration overlay text */
.atmo-decoration {
    position: relative;
}
.atmo-decoration .atmo-overlay {
    background: linear-gradient(to top, var(--background) 0%, transparent 50%);
}

/* Routine empty state illustration */
.routine-empty-icon {
    animation: float-icon 3s ease-in-out infinite;
}
@keyframes float-icon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* Duration bar visualization */
.duration-bar {
    height: 4px;
    border-radius: 2px;
    background: var(--outline-variant);
    overflow: hidden;
}
.duration-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.6s ease;
}

/* ===== CALENDAR PAGE ===== */

/* Today indicator */
.calendar-cell-today .calendar-day-num {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 9999px;
    background: var(--primary);
    color: var(--on-primary);
    font-weight: 700;
}

/* Calendar cell hover */
.calendar-cell {
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    position: relative;
}
.calendar-cell:hover {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 1px var(--primary);
    z-index: 2;
}

/* Quick-add button on cell hover */
.calendar-quick-add {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    border-radius: 9999px;
    background: var(--primary);
    color: var(--on-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.15s ease, transform 0.15s ease;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    z-index: 5;
}
.calendar-cell:hover .calendar-quick-add {
    opacity: 1;
    transform: scale(1);
}
.calendar-quick-add:hover {
    transform: scale(1.15) !important;
    box-shadow: 0 0 8px rgba(178, 197, 255, 0.4);
}

/* Task count badge on cell */
.calendar-task-badge {
    font-size: 9px;
    line-height: 1;
    padding: 1px 5px;
    border-radius: 9999px;
    background: var(--primary-container);
    color: var(--on-primary-container);
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

/* Calendar legend dots */
.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 8px 4px;
}
.calendar-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 500;
    color: var(--on-surface-variant);
}
.calendar-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    flex-shrink: 0;
}

/* Monthly grid animation */
.calendar-grid-enter {
    animation: calendar-fade-in 0.3s ease-out;
}
@keyframes calendar-fade-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth accordion for completed section */
.completed-accordion {
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease;
    max-height: 0;
    opacity: 0;
}
.completed-accordion.open {
    max-height: 600px;
    opacity: 1;
}

/* Task cards with priority borders */
.task-card {
    transition: all 0.2s ease;
    position: relative;
}
.task-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 4px 0 0 4px;
}
.task-card-priority-alta::before {
    background: var(--secondary);
}
.task-card-priority-media::before {
    background: var(--primary);
}
.task-card-priority-baixa::before {
    background: var(--tertiary);
}
.task-card:hover {
    transform: translateX(2px);
    border-color: var(--primary) !important;
}

/* Animated empty state icon */
@keyframes empty-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.empty-state-float {
    animation: empty-float 3s ease-in-out infinite;
}
@keyframes fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
    animation: fade-in 0.4s ease-out both;
}

/* Empty state for selected day */
.calendar-empty-state {
    border: 2px dashed var(--outline-variant);
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    transition: all 0.2s ease;
}
.calendar-empty-state:hover {
    border-color: var(--primary);
    background: var(--surface-container-low);
}

/* Pulse card dynamic */
.pulse-value {
    transition: all 0.5s ease;
}

/* Month navigation button active state */
.month-nav-btn:active {
    transform: scale(0.92);
}

/* Week View */
.calendar-week-scroll {
    display: flex;
    overflow-x: auto;
    gap: 6px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 4px;
}
.calendar-week-scroll::-webkit-scrollbar {
    height: 4px;
}
.calendar-week-scroll::-webkit-scrollbar-thumb {
    background: var(--outline-variant);
    border-radius: 4px;
}
.calendar-week-day {
    flex: 1 0 calc(100% / 7 - 6px);
    min-width: 0;
    scroll-snap-align: start;
    background: var(--surface-container-low);
    border: 1px solid var(--outline-variant);
    border-radius: 12px;
    padding: 8px;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
}
.calendar-week-day:hover {
    border-color: var(--primary);
    background: var(--surface-container);
}
.calendar-week-day-today {
    background: var(--primary-container);
    border-color: var(--primary);
}
.calendar-week-day-selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary);
}
.calendar-week-day-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--outline-variant);
}
.calendar-week-day-name {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--on-surface-variant);
    font-weight: 600;
}
.calendar-week-day-num {
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    color: var(--on-surface);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
}
.calendar-week-day-num-today {
    background: var(--primary);
    color: var(--on-primary);
}
.calendar-week-day-tasks {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    min-height: 0;
}
.calendar-week-task-item {
    font-size: 11px;
    padding: 3px 6px;
    border-radius: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: all 0.15s;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}
.calendar-week-task-item:hover {
    transform: translateX(2px);
}
.calendar-week-task-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}
.calendar-week-empty {
    font-size: 10px;
    color: var(--on-surface-variant);
    opacity: 0.5;
    text-align: center;
    padding: 12px 0;
    font-weight: 500;
}

/* Timeline / Compromissos View */
.calendar-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}
.calendar-timeline-slot {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid var(--outline-variant);
    opacity: 0.6;
    transition: all 0.2s;
}
.calendar-timeline-slot:last-child {
    border-bottom: none;
}
.calendar-timeline-slot.has-task {
    opacity: 1;
}
.calendar-timeline-time {
    font-size: 11px;
    font-weight: 600;
    color: var(--on-surface-variant);
    min-width: 48px;
    flex-shrink: 0;
    padding-top: 2px;
    text-align: right;
    font-family: 'JetBrains Mono', monospace;
}
.calendar-timeline-dot-line {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 16px;
}
.calendar-timeline-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--outline-variant);
    margin-top: 4px;
}
.calendar-timeline-slot.has-task .calendar-timeline-dot {
    background: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-container);
}
.calendar-timeline-line {
    width: 1px;
    flex: 1;
    background: var(--outline-variant);
    min-height: 16px;
}
.calendar-timeline-content {
    flex: 1;
    min-width: 0;
}
.calendar-timeline-task {
    background: var(--surface-container-low);
    border: 1px solid var(--outline-variant);
    border-radius: 8px;
    padding: 6px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    transition: all 0.15s;
    cursor: pointer;
}
.calendar-timeline-task:hover {
    border-color: var(--primary);
    transform: translateX(2px);
}
.calendar-timeline-task-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--on-surface);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.calendar-timeline-task-priority {
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
    flex-shrink: 0;
}

/* View toggle buttons */
.view-btn-active {
    background: var(--primary) !important;
    color: var(--on-primary) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.view-btn-inactive {
    background: transparent;
    color: var(--on-surface-variant);
}
.view-btn-inactive:hover {
    color: var(--on-surface);
    background: var(--surface-container-highest);
}

/* Note Cards */
.note-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}
.note-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.note-card-accent {
    height: 4px;
    flex-shrink: 0;
    border-radius: 12px 12px 0 0;
}
.note-card-content {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--surface-container-low);
    border: 1px solid var(--outline-variant);
    border-top: none;
    border-radius: 0 0 12px 12px;
    transition: background 0.2s ease;
}
.note-card:hover .note-card-content {
    background: var(--surface-container);
    border-color: var(--primary);
}
.note-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--on-surface);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}
.note-card-content-text {
    font-size: 13px;
    color: var(--on-surface-variant);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    flex: 1;
}
.note-card-tags {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.note-card-tag {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 8px;
    border-radius: 4px;
    line-height: 1.4;
}
.note-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    margin-top: auto;
    border-top: 1px solid var(--outline-variant);
    font-size: 10px;
    color: var(--on-surface-variant);
    opacity: 0.6;
    font-weight: 500;
}
.note-card-delete {
    opacity: 0.5;
    transition: opacity 0.2s ease, color 0.2s ease, background 0.2s ease;
    color: var(--on-surface-variant);
    cursor: pointer;
    border: none;
    background: none;
    padding: 4px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.note-card:hover .note-card-delete {
    opacity: 1;
}
.note-card-delete:hover {
    color: var(--error);
    background: var(--error-container);
    opacity: 1;
}
.note-card-enter {
    animation: noteCardIn 0.35s ease-out both;
}
@keyframes noteCardIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.note-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
    gap: 12px;
    grid-column: 1 / -1;
}
.note-empty-state-icon {
    font-size: 56px;
    color: var(--outline-variant);
    opacity: 0.5;
}
.note-empty-state-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--on-surface);
}
.note-empty-state-desc {
    font-size: 13px;
    color: var(--on-surface-variant);
    max-width: 280px;
}

/* Stats */
.stat-value-enter {
    animation: statCountUp 0.6s ease-out both;
}
@keyframes statCountUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.stat-bar-animate {
    transition: height 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.stat-donut-segment {
    transition: stroke-dashoffset 1s ease-out;
}
.stat-row-enter {
    animation: statRowFade 0.3s ease-out both;
}
@keyframes statRowFade {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Loading Skeleton */
@keyframes skeleton-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.skeleton {
    background: linear-gradient(90deg, var(--surface-container) 25%, var(--surface-container-high) 50%, var(--surface-container) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 6px;
}

/* Streak badge animation */
@keyframes streak-glow {
    0%, 100% { box-shadow: 0 0 4px rgba(80, 227, 132, 0.3); }
    50% { box-shadow: 0 0 10px rgba(80, 227, 132, 0.6); }
}
.streak-badge {
    animation: streak-glow 2s ease-in-out infinite;
}

/* Habit progress bar animation */
@keyframes progress-fill {
    from { width: 0%; }
}
.progress-bar-fill {
    animation: progress-fill 0.8s ease-out forwards;
}

/* Settings Cards */
.settings-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.settings-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.settings-toggle {
    transition: background 0.2s ease;
}

/* Theme button active state */
.theme-btn-active {
    background: var(--primary) !important;
    color: var(--on-primary) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.theme-btn-active .material-symbols-outlined {
    color: var(--on-primary) !important;
}
.theme-btn-inactive {
    background: transparent;
    color: var(--on-surface-variant);
    border-color: var(--outline-variant);
}
.theme-btn-inactive:hover {
    border-color: var(--primary);
    color: var(--on-surface);
    background: var(--surface-container-highest);
}

/* Task complete burst animation */
@keyframes task-complete-pop {
    0% { transform: scale(0.3); opacity: 0; }
    30% { transform: scale(1.4); opacity: 1; }
    60% { transform: scale(0.9); opacity: 1; }
    100% { transform: scale(1.1); opacity: 0; }
}
.task-complete-burst {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    font-size: 48px;
    animation: task-complete-pop 0.7s ease-out forwards;
}

@keyframes task-complete-particle {
    0% { transform: translate(0, 0) scale(1); opacity: 1; }
    100% { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; }
}
.task-complete-particle {
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: task-complete-particle 0.6s ease-out forwards;
}

@keyframes task-complete-flash {
    0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.5); }
    50% { box-shadow: 0 0 0 12px rgba(76, 175, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}
.task-complete-flash {
    animation: task-complete-flash 0.5s ease-out !important;
}

/* Pomodoro Focus Mode Overlay */
#pomodoro-focus-overlay {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
#pomodoro-focus-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

body.pomodoro-focus .group\/timer {
    position: relative !important;
    z-index: 80 !important;
    transform: scale(1.03);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* Recurring task animation */
.recurrence-enter {
    animation: recurrencePop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes recurrencePop {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.recurrence-enter-done {
    animation: none;
}

/* AI Assistant Scroll container */
.ai-assistant-scroll-container {
    max-height: 320px;
    overflow-y: auto;
}

/* Interactive focus distribution bar styling */
.chart-bar {
    transition: height 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease, transform 0.2s ease !important;
}
.chart-bar:hover {
    opacity: 1 !important;
    transform: scaleX(1.08) translateY(-2px);
    filter: brightness(1.15);
}

/* Habit check success pop animation */
.habit-checked-pop {
    animation: habitCheckPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes habitCheckPop {
    0% {
        transform: scale(0.8);
    }
    50% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
    }
}



