/* =============================================
   FinTrack — animations.css v4.0
   Enhanced Animations & UI Polish
   ============================================= */

/* ══════════════════════════════════════════════
   1. PAGE LOAD — Cinematic entrance
   ══════════════════════════════════════════════ */

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

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-24px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(24px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes blurIn {
    from { opacity: 0; filter: blur(8px); transform: translateY(12px); }
    to   { opacity: 1; filter: blur(0); transform: translateY(0); }
}

/* ══════════════════════════════════════════════
   2. PARTICLE / FLOATING DOTS BACKGROUND
   ══════════════════════════════════════════════ */

.particles-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0%   { opacity: 0; transform: translateY(100vh) scale(0); }
    10%  { opacity: 0.4; }
    90%  { opacity: 0.2; }
    100% { opacity: 0; transform: translateY(-100px) scale(1); }
}

/* ══════════════════════════════════════════════
   3. STAT CARD — Holographic shimmer
   ══════════════════════════════════════════════ */

.stat-card {
    position: relative;
}

.stat-card .holo-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.04) 50%,
        transparent 60%
    );
    background-size: 200% 100%;
    animation: holoShimmer 4s ease-in-out infinite;
    border-radius: inherit;
    pointer-events: none;
}

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

/* ══════════════════════════════════════════════
   4. ANIMATED COUNTER — Number roll-up
   ══════════════════════════════════════════════ */

.count-animate {
    display: inline-block;
    transition: transform 0.3s, opacity 0.3s;
}

/* ══════════════════════════════════════════════
   5. PULSE RING — Active indicator
   ══════════════════════════════════════════════ */

@keyframes pulseRing {
    0%   { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(2.2); opacity: 0; }
}

.pulse-ring {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pulse-ring::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    animation: pulseRing 1.8s ease-out infinite;
}

/* ══════════════════════════════════════════════
   6. CARD HOVER — 3D tilt effect
   ══════════════════════════════════════════════ */

.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s;
    will-change: transform;
}

/* ══════════════════════════════════════════════
   7. ANIMATED GRADIENT TEXT
   ══════════════════════════════════════════════ */

@keyframes gradientFlow {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.gradient-text-animate {
    background: linear-gradient(
        270deg,
        var(--accent),
        #a855f7,
        #00d4ff,
        #7c3aed
    );
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 5s ease infinite;
}

/* ══════════════════════════════════════════════
   8. SIDEBAR — Enhanced nav items
   ══════════════════════════════════════════════ */

.nav-item {
    position: relative;
    overflow: hidden;
}

.nav-item .nav-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.15);
    transform: scale(0);
    animation: navRipple 0.5s linear;
    pointer-events: none;
}

@keyframes navRipple {
    to { transform: scale(4); opacity: 0; }
}

/* ══════════════════════════════════════════════
   9. SKELETON LOADING — Shimmer effect
   ══════════════════════════════════════════════ */

.skeleton {
    background: linear-gradient(
        90deg,
        var(--surface2) 0%,
        var(--surface3) 40%,
        var(--surface2) 80%
    );
    background-size: 200% 100%;
    animation: skeletonWave 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

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

/* ══════════════════════════════════════════════
   10. PROGRESS BAR — Enhanced with glow
   ══════════════════════════════════════════════ */

.progress-fill-glow {
    box-shadow: 0 0 8px var(--accent), 0 0 16px rgba(0,212,255,0.3);
}

/* ══════════════════════════════════════════════
   11. TRANSACTION ITEM — Swipe entrance
   ══════════════════════════════════════════════ */

.tx-item {
    animation: txSlideIn 0.35s cubic-bezier(0.4,0,0.2,1) both;
}

@keyframes txSlideIn {
    from { opacity: 0; transform: translateX(-12px); }
    to   { opacity: 1; transform: translateX(0); }
}

.tx-item:nth-child(1)  { animation-delay: 0.05s; }
.tx-item:nth-child(2)  { animation-delay: 0.10s; }
.tx-item:nth-child(3)  { animation-delay: 0.15s; }
.tx-item:nth-child(4)  { animation-delay: 0.20s; }
.tx-item:nth-child(5)  { animation-delay: 0.25s; }
.tx-item:nth-child(6)  { animation-delay: 0.30s; }
.tx-item:nth-child(7)  { animation-delay: 0.35s; }
.tx-item:nth-child(8)  { animation-delay: 0.40s; }

/* ══════════════════════════════════════════════
   12. BUTTON — Magnetic hover & shine sweep
   ══════════════════════════════════════════════ */

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 70%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    skew: -15deg;
    transition: left 0.5s;
    pointer-events: none;
}

.btn-primary:hover::before {
    left: 150%;
}

/* ══════════════════════════════════════════════
   13. NOTIFICATION BADGE — Bounce
   ══════════════════════════════════════════════ */

@keyframes badgeBounce {
    0%, 100% { transform: scale(1); }
    25%       { transform: scale(1.3); }
    50%       { transform: scale(0.9); }
    75%       { transform: scale(1.15); }
}

.badge-bounce {
    animation: badgeBounce 0.6s ease forwards;
}

/* ══════════════════════════════════════════════
   14. QUICK ACTIONS — Stagger bounce on load
   ══════════════════════════════════════════════ */

.quick-btn {
    animation: quickBtnIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes quickBtnIn {
    from { opacity: 0; transform: scale(0.7) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.quick-btn:nth-child(1) { animation-delay: 0.2s; }
.quick-btn:nth-child(2) { animation-delay: 0.27s; }
.quick-btn:nth-child(3) { animation-delay: 0.34s; }
.quick-btn:nth-child(4) { animation-delay: 0.41s; }

/* ══════════════════════════════════════════════
   15. MORPHING BLOB — Hero background accent
   ══════════════════════════════════════════════ */

@keyframes morphBlob {
    0%   { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    25%  { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    50%  { border-radius: 50% 60% 30% 60% / 30% 60% 70% 40%; }
    75%  { border-radius: 70% 30% 50% 50% / 40% 70% 30% 60%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

.blob-accent {
    position: fixed;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(0,212,255,0.05) 0%, transparent 70%);
    animation: morphBlob 20s ease-in-out infinite, orbFloat 25s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
    filter: blur(30px);
}

.blob-accent-2 {
    position: fixed;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(124,58,237,0.05) 0%, transparent 70%);
    animation: morphBlob 25s ease-in-out infinite reverse, orbFloat 30s ease-in-out infinite reverse;
    pointer-events: none;
    z-index: 0;
    filter: blur(40px);
    bottom: 0; right: 0;
}

/* ══════════════════════════════════════════════
   16. TOPBAR — Glassmorphism enhanced
   ══════════════════════════════════════════════ */

.topbar {
    background: rgba(8, 12, 20, 0.8) !important;
    backdrop-filter: blur(24px) saturate(1.5) !important;
    -webkit-backdrop-filter: blur(24px) saturate(1.5) !important;
    border-bottom: 1px solid rgba(0, 212, 255, 0.08) !important;
}

[data-theme="light"] .topbar {
    background: rgba(255, 255, 255, 0.85) !important;
    border-bottom: 1px solid rgba(0, 153, 204, 0.1) !important;
}

/* ══════════════════════════════════════════════
   17. SCROLL REVEAL — Triggered by JS
   ══════════════════════════════════════════════ */

.reveal-hidden {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s cubic-bezier(0.4,0,0.2,1),
                transform 0.55s cubic-bezier(0.4,0,0.2,1);
}

.reveal-hidden.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ══════════════════════════════════════════════
   18. LIVE INDICATOR — Pulse dot
   ══════════════════════════════════════════════ */

.live-dot {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--success);
    position: relative;
}

.live-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid var(--success);
    animation: livePulse 1.5s ease-out infinite;
}

@keyframes livePulse {
    0%   { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2.5); opacity: 0; }
}

/* ══════════════════════════════════════════════
   19. SIDEBAR LOGO — Enhanced glow
   ══════════════════════════════════════════════ */

.sidebar-logo-icon {
    animation: logoPulseEnhanced 3s ease-in-out infinite !important;
}

@keyframes logoPulseEnhanced {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0,212,255,0.3),
                    0 0 0 0 rgba(0,212,255,0.2);
    }
    50% {
        box-shadow: 0 0 35px rgba(0,212,255,0.5),
                    0 0 60px rgba(0,212,255,0.15);
    }
}

/* ══════════════════════════════════════════════
   20. CARD — Mouse-tracking spotlight
   ══════════════════════════════════════════════ */

.card {
    --mouse-x: 50%;
    --mouse-y: 50%;
}

.card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        circle at var(--mouse-x) var(--mouse-y),
        rgba(0,212,255,0.05) 0%,
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.card:hover::after { opacity: 1; }

/* ══════════════════════════════════════════════
   21. BOTTOM NAV — Enhanced mobile
   ══════════════════════════════════════════════ */

@media (max-width: 768px) {
    .bottom-nav {
        background: rgba(8, 12, 20, 0.92) !important;
        backdrop-filter: blur(24px) saturate(1.5) !important;
        -webkit-backdrop-filter: blur(24px) saturate(1.5) !important;
        border-top: 1px solid rgba(0,212,255,0.1) !important;
    }

    .bnav-item {
        transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s;
    }

    .bnav-item:active {
        transform: scale(0.85);
    }

    .bnav-item.active {
        color: var(--accent) !important;
    }

    .bnav-item.active i {
        filter: drop-shadow(0 0 6px var(--accent));
    }

    .bnav-add {
        animation: addBtnFloat 3s ease-in-out infinite;
    }

    @keyframes addBtnFloat {
        0%, 100% { box-shadow: 0 4px 20px rgba(0,212,255,0.4); }
        50%       { box-shadow: 0 8px 32px rgba(0,212,255,0.6), 0 0 0 6px rgba(0,212,255,0.08); }
    }
}

/* ══════════════════════════════════════════════
   22. FORM FOCUS — Glow animation
   ══════════════════════════════════════════════ */

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    animation: focusGlow 0.3s ease forwards;
}

@keyframes focusGlow {
    from { box-shadow: none; }
    to   { box-shadow: 0 0 0 3px rgba(0,212,255,0.15), 0 0 20px rgba(0,212,255,0.08); }
}

/* ══════════════════════════════════════════════
   23. PAGE HEADER — Title entrance
   ══════════════════════════════════════════════ */

.topbar-title {
    animation: blurIn 0.5s ease both;
}

/* ══════════════════════════════════════════════
   24. STAT CARD VALUES — Animated number entrance
   ══════════════════════════════════════════════ */

.stat-value {
    display: inline-block;
    animation: statValueIn 0.6s cubic-bezier(0.4,0,0.2,1) both;
}

@keyframes statValueIn {
    from { opacity: 0; transform: translateY(10px) scale(0.9); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ══════════════════════════════════════════════
   25. SIDEBAR MOBILE — Slide with spring
   ══════════════════════════════════════════════ */

@media (max-width: 768px) {
    .sidebar {
        transition: left 0.35s cubic-bezier(0.34, 1.1, 0.64, 1) !important;
    }
}

/* ══════════════════════════════════════════════
   26. ALERT — Slide in from top with bounce
   ══════════════════════════════════════════════ */

.alert {
    animation: alertBounceIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

@keyframes alertBounceIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ══════════════════════════════════════════════
   27. EMPTY STATE — Floating icon
   ══════════════════════════════════════════════ */

.empty-state i {
    animation: emptyFloat 3s ease-in-out infinite;
    display: block;
}

@keyframes emptyFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.2; }
    50%       { transform: translateY(-8px) rotate(5deg); opacity: 0.35; }
}

/* ══════════════════════════════════════════════
   28. IMPROVED SCROLLBAR
   ══════════════════════════════════════════════ */

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent), #0077ff);
    border-radius: 10px;
    opacity: 0.5;
}
::-webkit-scrollbar-thumb:hover {
    opacity: 1;
}

/* ══════════════════════════════════════════════
   29. SELECTION HIGHLIGHT
   ══════════════════════════════════════════════ */

::selection {
    background: rgba(0, 212, 255, 0.25);
    color: var(--text);
}

/* ══════════════════════════════════════════════
   30. SIDEBAR ACTIVE ITEM — Glow indicator
   ══════════════════════════════════════════════ */

.nav-item.active::after {
    content: '';
    position: absolute;
    right: 0; top: 50%;
    transform: translateY(-50%);
    width: 3px; height: 60%;
    background: var(--accent);
    border-radius: 3px 0 0 3px;
    box-shadow: 0 0 8px var(--accent);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ══════════════════════════════════════════════
   31. MODAL / OVERLAY — Fade blur
   ══════════════════════════════════════════════ */

.sidebar-overlay {
    animation: overlayIn 0.25s ease;
}

@keyframes overlayIn {
    from { opacity: 0; backdrop-filter: blur(0); }
    to   { opacity: 1; backdrop-filter: blur(4px); }
}

/* ══════════════════════════════════════════════
   32. TABLE ROW — Stagger entrance
   ══════════════════════════════════════════════ */

tbody tr {
    animation: tableRowIn 0.3s ease both;
}

tbody tr:nth-child(1)  { animation-delay: 0.05s; }
tbody tr:nth-child(2)  { animation-delay: 0.08s; }
tbody tr:nth-child(3)  { animation-delay: 0.11s; }
tbody tr:nth-child(4)  { animation-delay: 0.14s; }
tbody tr:nth-child(5)  { animation-delay: 0.17s; }
tbody tr:nth-child(6)  { animation-delay: 0.20s; }
tbody tr:nth-child(7)  { animation-delay: 0.23s; }
tbody tr:nth-child(8)  { animation-delay: 0.26s; }
tbody tr:nth-child(n+9){ animation-delay: 0.28s; }

@keyframes tableRowIn {
    from { opacity: 0; transform: translateX(-8px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ══════════════════════════════════════════════
   33. FLOATING ACTION BUTTON (mobile)
   ══════════════════════════════════════════════ */

.bnav-add {
    position: relative;
}

.bnav-add::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.2);
    animation: fabPulse 2s ease-in-out infinite;
}

@keyframes fabPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50%       { transform: scale(1.3); opacity: 0; }
}

/* ══════════════════════════════════════════════
   34. CONTENT AREA — Smooth appear
   ══════════════════════════════════════════════ */

.content > * {
    animation: fadeInUp 0.45s cubic-bezier(0.4,0,0.2,1) both;
}

.content > *:nth-child(1) { animation-delay: 0.05s; }
.content > *:nth-child(2) { animation-delay: 0.12s; }
.content > *:nth-child(3) { animation-delay: 0.19s; }
.content > *:nth-child(4) { animation-delay: 0.26s; }
.content > *:nth-child(5) { animation-delay: 0.33s; }

/* ══════════════════════════════════════════════
   35. THEME TOGGLE — Rotate animation
   ══════════════════════════════════════════════ */

.theme-toggle:active {
    animation: themeSpin 0.4s ease;
}

@keyframes themeSpin {
    0%   { transform: rotate(0deg) scale(1); }
    50%  { transform: rotate(180deg) scale(0.8); }
    100% { transform: rotate(360deg) scale(1); }
}

/* ══════════════════════════════════════════════
   36. UI IMPROVEMENT — Card polish
   ══════════════════════════════════════════════ */

.card {
    background: var(--surface) !important;
}

/* Gradient top border on card hover */
.card::before {
    background: linear-gradient(90deg, transparent, rgba(0,212,255,0.4), rgba(124,58,237,0.3), transparent) !important;
}

/* ══════════════════════════════════════════════
   37. GRID STAGGER — Chart cards
   ══════════════════════════════════════════════ */

.grid-3 > *:nth-child(1) { animation: fadeInLeft 0.5s 0.15s both; }
.grid-3 > *:nth-child(2) { animation: fadeInRight 0.5s 0.25s both; }
.grid-2 > *:nth-child(1) { animation: fadeInLeft 0.5s 0.1s both; }
.grid-2 > *:nth-child(2) { animation: fadeInRight 0.5s 0.2s both; }

/* ══════════════════════════════════════════════
   38. BADGE — Pop animation
   ══════════════════════════════════════════════ */

.badge {
    animation: badgePop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes badgePop {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

/* ══════════════════════════════════════════════
   39. SIDEBAR — Glassmorphism on mobile
   ══════════════════════════════════════════════ */

@media (max-width: 768px) {
    .sidebar {
        background: rgba(10, 15, 26, 0.97) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
    }

    [data-theme="light"] .sidebar {
        background: rgba(255, 255, 255, 0.97) !important;
    }
}

/* ══════════════════════════════════════════════
   40. REDUCED MOTION — Accessibility
   ══════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ══════════════════════════════════════════════
   LIGHT MODE SPECIFIC ANIMATIONS
   ══════════════════════════════════════════════ */

/* Warm paper texture overlay */
[data-theme="light"] body::after {
    display: none !important;
}

/* Sidebar shimmer — teal for light */
[data-theme="light"] .sidebar::before {
    display: none !important;
}

/* Card hover — warm lift */
[data-theme="light"] .card {
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s !important;
}

/* Stat card tilt stays but with warmer shadow */
[data-theme="light"] .stat-card .holo-shimmer {
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255,255,255,0.6) 50%,
        transparent 60%
    );
}

/* Nav items — teal glow on active */
[data-theme="light"] .nav-item.active::after {
    background: var(--accent) !important;
    box-shadow: 0 0 8px rgba(13,122,110,0.35) !important;
}

/* Button shimmer — teal */
[data-theme="light"] .btn-primary::before {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
}

/* Live dot — teal */
[data-theme="light"] .live-dot { background: var(--success); }
[data-theme="light"] .live-dot::after { border-color: var(--success); }

/* Progress fill glow — teal */
[data-theme="light"] .progress-fill {
    box-shadow: 0 0 6px rgba(13,122,110,0.3);
}

/* FAB pulse — teal */
[data-theme="light"] .bnav-add::before {
    background: rgba(13,122,110,0.18);
}

/* Particles — slightly larger, more visible */
[data-theme="light"] .particle {
    background: rgba(13,122,110,0.5);
}

/* Card spotlight — teal */
[data-theme="light"] .card::after {
    background: radial-gradient(
        circle at var(--mouse-x,50%) var(--mouse-y,50%),
        rgba(13,122,110,0.04) 0%, transparent 60%
    ) !important;
}

/* Theme toggle spin */
[data-theme="light"] .theme-toggle:active {
    animation: themeSpin 0.4s ease;
}

/* Quick btn hover scale */
[data-theme="light"] .quick-btn:hover {
    transform: translateY(-5px) scale(1.03) !important;
    box-shadow: 0 8px 24px rgba(60,50,40,0.12) !important;
}

/* Selection highlight — teal */
[data-theme="light"] ::selection {
    background: rgba(13,122,110,0.18);
    color: #1a1714;
}

/* Scrollbar — teal */
[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent), #0b5a52);
}

/* Nav ripple — teal */
[data-theme="light"] .nav-item .nav-ripple {
    background: rgba(13,122,110,0.12);
}

/* Table row entrance — same animation, no change needed */

/* Focus glow — teal */
[data-theme="light"] .form-input:focus,
[data-theme="light"] .form-select:focus,
[data-theme="light"] .form-textarea:focus {
    animation: focusGlowLight 0.3s ease forwards;
}

@keyframes focusGlowLight {
    from { box-shadow: none; }
    to   { box-shadow: 0 0 0 3px rgba(13,122,110,0.12), 0 0 12px rgba(13,122,110,0.06); }
}

/* ══════════════════════════════════════════════
   FITUR BARU v5.0
   ══════════════════════════════════════════════ */

/* ── KONFETTI ── */
#ft-confetti-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* ── MOTIVATIONAL QUOTE BANNER ── */
.daily-quote-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--accent)18, var(--accent)0a);
    border: 1px solid var(--accent)33;
    border-left: 3px solid var(--accent);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
    animation: fadeInUp 0.5s ease both;
    position: relative;
    overflow: hidden;
}

.daily-quote-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--accent)06, transparent 60%);
    pointer-events: none;
}

.daily-quote-icon {
    font-size: 22px;
    color: var(--accent);
    flex-shrink: 0;
    animation: quotePulse 3s ease-in-out infinite;
}

@keyframes quotePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(1.12); opacity: 0.8; }
}

.daily-quote-text {
    font-size: 13px;
    font-style: italic;
    color: var(--text-muted);
    line-height: 1.5;
    flex: 1;
}

.daily-quote-text strong {
    display: block;
    font-style: normal;
    font-size: 12px;
    color: var(--accent);
    margin-top: 3px;
    font-weight: 600;
}


