/*
 * AttroTechAAA — Custom Theme v2
 * Style: High-Tech NOC / ISP Operations
 * Modes: Light (clean white-glass) + Dark (deep navy glassmorphism)
 * Built for Filament 3 on Laravel 12
 *
 * Structure:
 *   1.  Design Tokens
 *   2.  Global Typography & Font
 *   3.  Backgrounds & Layout
 *   4.  Sidebar
 *   5.  Top Bar
 *   6.  Sections / Cards
 *   7.  Buttons
 *   8.  Form Inputs
 *   9.  Tables
 *   10. Stats Overview Widget
 *   11. Chart Widget
 *   12. Page / Main Entrance Animation
 *   13. Modals
 *   14. Dropdowns
 *   15. Notifications (Toasts)
 *   16. Login Page
 *   17. Badges
 *   18. Pagination
 *   18b. Impersonation banner
 *   19. Scrollbar
 *   20. Focus / Accessibility
 *   21. Live Indicator Dot
 *   22. Reduced Motion
 */

/* ═══════════════════════════════════════════════════════════════
   1. DESIGN TOKENS
═══════════════════════════════════════════════════════════════ */
:root {
    /* Accent */
    --attro-cyan:           #06b6d4;
    --attro-cyan-mid:       #0891b2;
    --attro-cyan-light:     #22d3ee;

    /* Dark-mode surfaces */
    --dk-bg:                #07111f;
    --dk-surface:           rgba(10, 20, 38, 0.88);
    --dk-surface-hover:     rgba(14, 26, 48, 0.95);
    --dk-border:            rgba(51, 65, 85, 0.45);
    --dk-border-accent:     rgba(6, 182, 212, 0.22);
    --dk-text:              #e2e8f0;
    --dk-muted:             #64748b;

    /* Light-mode surfaces */
    --lt-bg:                #f0f4f8;
    --lt-surface:           rgba(255, 255, 255, 0.82);
    --lt-surface-hover:     rgba(255, 255, 255, 0.97);
    --lt-border:            rgba(203, 213, 225, 0.7);
    --lt-border-accent:     rgba(6, 182, 212, 0.35);
    --lt-text:              #0f172a;
    --lt-muted:             #64748b;

    /* Glows */
    --glow-cyan:            rgba(6, 182, 212, 0.28);
    --glow-cyan-sm:         rgba(6, 182, 212, 0.14);
    --glow-success:         rgba(16, 185, 129, 0.28);
    --glow-danger:          rgba(244, 63, 94, 0.28);

    /* Motion */
    --dur-fast:    150ms;
    --dur-mid:     240ms;
    --dur-slow:    360ms;
    --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ═══════════════════════════════════════════════════════════════
   2. GLOBAL TYPOGRAPHY & FONT
═══════════════════════════════════════════════════════════════ */
*, *::before, *::after {
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
}

/* Mono override — applied by Filament FontFamily::Mono */
.font-mono, code, pre,
[style*="font-family: monospace"],
.fi-table-cell .font-mono {
    font-family: 'JetBrains Mono', 'Fira Code', monospace !important;
}

/* ═══════════════════════════════════════════════════════════════
   3. BACKGROUNDS & LAYOUT
═══════════════════════════════════════════════════════════════ */

/* ── Dark ── */
html.dark body,
html.dark .fi-layout,
html.dark .fi-simple-layout {
    background-color: var(--dk-bg) !important;
    background-image:
        radial-gradient(ellipse 80% 50% at 10% -10%,
            rgba(6, 182, 212, 0.07) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 90% 100%,
            rgba(99, 102, 241, 0.05) 0%, transparent 60%),
        linear-gradient(rgba(148, 163, 184, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.028) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
}

/* ── Light ── */
html:not(.dark) body,
html:not(.dark) .fi-layout,
html:not(.dark) .fi-simple-layout {
    background-color: var(--lt-bg) !important;
    background-image:
        radial-gradient(ellipse 70% 40% at 5% -5%,
            rgba(6, 182, 212, 0.08) 0%, transparent 55%),
        radial-gradient(ellipse 50% 35% at 95% 105%,
            rgba(99, 102, 241, 0.05) 0%, transparent 55%);
    background-size: 100% 100%, 100% 100%;
}

/* ═══════════════════════════════════════════════════════════════
   4. SIDEBAR
═══════════════════════════════════════════════════════════════ */
.fi-sidebar {
    transition: width var(--dur-mid) var(--ease-out) !important;
    border-right-width: 1px !important;
}

/* Tighten sidebar footprint on desktop */
@media (min-width: 1024px) {
    .fi-sidebar {
        width: 14.2rem !important;
        min-width: 14.2rem !important;
    }
}

/* ── Dark sidebar ── */
html.dark .fi-sidebar {
    background: rgba(7, 17, 31, 0.96) !important;
    backdrop-filter: blur(24px) saturate(1.5);
    -webkit-backdrop-filter: blur(24px) saturate(1.5);
    border-right-color: var(--dk-border-accent) !important;
    box-shadow: 4px 0 40px rgba(0, 0, 0, 0.45);
}

/* ── Light sidebar ── */
html:not(.dark) .fi-sidebar {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    border-right-color: var(--lt-border) !important;
    box-shadow: 4px 0 24px rgba(148, 163, 184, 0.15);
}

/* Sidebar header / brand area */
html.dark .fi-sidebar-header {
    border-bottom: 1px solid var(--dk-border-accent);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, transparent 65%);
    padding-inline: 0.55rem !important;
}
html:not(.dark) .fi-sidebar-header {
    border-bottom: 1px solid var(--lt-border);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.06) 0%, transparent 65%);
    padding-inline: 0.55rem !important;
}

/* Brand name */
html.dark .fi-logo,
html.dark [class*="fi-brand"] {
    background: linear-gradient(90deg, #67e8f9, #06b6d4, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700 !important;
    letter-spacing: 0.04em;
}
html:not(.dark) .fi-logo,
html:not(.dark) [class*="fi-brand"] {
    background: linear-gradient(90deg, #0891b2, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700 !important;
    letter-spacing: 0.04em;
}

/* Brand lockup: logo + product name (text remains selectable/readable) */
.fi-logo {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    white-space: nowrap;
    position: relative;
    padding-left: 1.55rem;
}

.fi-logo::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.1rem;
    height: 1.1rem;
    background: url('/images/attrotech-logo.png') no-repeat center / contain;
}

/* Group labels */
.fi-sidebar-group-label {
    font-size: 0.625rem !important;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    margin-inline: 0.55rem !important;
}
html.dark .fi-sidebar-group-label  { color: #06b6d4 !important; opacity: 0.65; }
html:not(.dark) .fi-sidebar-group-label { color: #0891b2 !important; opacity: 0.75; }

/* Nav item transitions (both modes) */
.fi-sidebar-item-button {
    border-radius: 8px !important;
    margin: 1px 4px;
    padding-inline: 0.55rem !important;
    padding-block: 0.42rem !important;
    position: relative;
    overflow: hidden;
    transition:
        color        var(--dur-fast) var(--ease-out),
        background   var(--dur-fast) var(--ease-out),
        box-shadow   var(--dur-fast) var(--ease-out),
        transform    var(--dur-fast) var(--ease-out) !important;
}

/* Left accent bar */
.fi-sidebar-item-button::before {
    content: '';
    position: absolute;
    left: 0; top: 15%; height: 70%;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--attro-cyan);
    transform: scaleY(0);
    transition: transform var(--dur-fast) var(--ease-spring);
    pointer-events: none;
}

/* Hover — dark */
html.dark .fi-sidebar-item-button:hover {
    background: rgba(6, 182, 212, 0.1) !important;
    box-shadow: inset 0 0 0 1px var(--dk-border-accent) !important;
    transform: translateX(2px);
    color: #e2e8f0 !important;
}
html.dark .fi-sidebar-item-button:hover::before { transform: scaleY(0.5); }

/* Hover — light */
html:not(.dark) .fi-sidebar-item-button:hover {
    background: rgba(6, 182, 212, 0.08) !important;
    box-shadow: inset 0 0 0 1px rgba(6, 182, 212, 0.2) !important;
    transform: translateX(2px);
    color: #0f172a !important;
}
html:not(.dark) .fi-sidebar-item-button:hover::before { transform: scaleY(0.5); }

/* Active — dark */
html.dark .fi-sidebar-item.fi-active .fi-sidebar-item-button,
html.dark .fi-sidebar-item-button[aria-current="page"] {
    color: var(--attro-cyan) !important;
    background: rgba(6, 182, 212, 0.12) !important;
    box-shadow:
        inset 0 0 0 1px var(--dk-border-accent),
        0 0 12px var(--glow-cyan-sm) !important;
}
html.dark .fi-sidebar-item.fi-active .fi-sidebar-item-button::before,
html.dark .fi-sidebar-item-button[aria-current="page"]::before {
    transform: scaleY(1);
    box-shadow: 0 0 6px var(--attro-cyan);
}
html.dark .fi-sidebar-item.fi-active .fi-sidebar-item-icon {
    color: var(--attro-cyan) !important;
    filter: drop-shadow(0 0 4px var(--glow-cyan));
}

/* Active — light */
html:not(.dark) .fi-sidebar-item.fi-active .fi-sidebar-item-button,
html:not(.dark) .fi-sidebar-item-button[aria-current="page"] {
    color: var(--attro-cyan-mid) !important;
    background: rgba(6, 182, 212, 0.1) !important;
    box-shadow:
        inset 0 0 0 1px rgba(6, 182, 212, 0.25),
        0 2px 8px rgba(6, 182, 212, 0.12) !important;
}
html:not(.dark) .fi-sidebar-item.fi-active .fi-sidebar-item-button::before,
html:not(.dark) .fi-sidebar-item-button[aria-current="page"]::before {
    transform: scaleY(1);
}
html:not(.dark) .fi-sidebar-item.fi-active .fi-sidebar-item-icon {
    color: var(--attro-cyan-mid) !important;
}

/* Nav badges (live counts) */
html.dark .fi-sidebar-item .fi-badge {
    background: rgba(6, 182, 212, 0.15) !important;
    border: 1px solid rgba(6, 182, 212, 0.3) !important;
    color: var(--attro-cyan) !important;
    font-weight: 700;
    border-radius: 99px;
    animation: attro-badge-pulse 2.4s ease-in-out infinite;
}
html:not(.dark) .fi-sidebar-item .fi-badge {
    background: rgba(6, 182, 212, 0.12) !important;
    border: 1px solid rgba(6, 182, 212, 0.3) !important;
    color: var(--attro-cyan-mid) !important;
    font-weight: 700;
    border-radius: 99px;
    animation: attro-badge-pulse 2.4s ease-in-out infinite;
}
@keyframes attro-badge-pulse {
    0%,100% { box-shadow: 0 0 0 0 var(--glow-cyan); }
    50%      { box-shadow: 0 0 0 3px transparent; }
}

/* ═══════════════════════════════════════════════════════════════
   5. TOP BAR
═══════════════════════════════════════════════════════════════ */
html.dark .fi-topbar {
    background: rgba(7, 17, 31, 0.94) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--dk-border-accent) !important;
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
html:not(.dark) .fi-topbar {
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--lt-border) !important;
    box-shadow: 0 2px 16px rgba(148, 163, 184, 0.18);
}

/* Global search */
html.dark .fi-global-search-field input {
    background: rgba(15, 28, 52, 0.72) !important;
    border-color: var(--dk-border) !important;
    border-radius: 10px !important;
    color: var(--dk-text) !important;
    transition: border-color var(--dur-fast) var(--ease-out),
                box-shadow   var(--dur-fast) var(--ease-out);
}
html.dark .fi-global-search-field input:focus {
    border-color: var(--attro-cyan) !important;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15),
                0 0 12px var(--glow-cyan-sm) !important;
    outline: none;
}
html:not(.dark) .fi-global-search-field input {
    background: rgba(248, 250, 252, 0.9) !important;
    border-color: var(--lt-border) !important;
    border-radius: 10px !important;
    color: var(--lt-text) !important;
    transition: border-color var(--dur-fast) var(--ease-out),
                box-shadow   var(--dur-fast) var(--ease-out);
}
html:not(.dark) .fi-global-search-field input:focus {
    border-color: var(--attro-cyan) !important;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.12) !important;
    outline: none;
}

/* ═══════════════════════════════════════════════════════════════
   6. SECTIONS / CARDS
═══════════════════════════════════════════════════════════════ */
.fi-section {
    border-radius: 14px !important;
    position: relative;
    transition:
        border-color var(--dur-mid) var(--ease-out),
        box-shadow   var(--dur-mid) var(--ease-out),
        transform    var(--dur-mid) var(--ease-out);
    overflow: hidden;
}
.fi-section:hover { transform: translateY(-1px); }

/* Corner indicators */
.fi-section::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background:
        linear-gradient(var(--attro-cyan), var(--attro-cyan)) top left / 8px 1px no-repeat,
        linear-gradient(var(--attro-cyan), var(--attro-cyan)) top left / 1px 8px no-repeat,
        linear-gradient(var(--attro-cyan), var(--attro-cyan)) bottom right / 8px 1px no-repeat,
        linear-gradient(var(--attro-cyan), var(--attro-cyan)) bottom right / 1px 8px no-repeat;
    opacity: 0.14;
    pointer-events: none;
    transition: opacity var(--dur-mid) var(--ease-out);
    z-index: 0;
}
.fi-section:hover::before { opacity: 0.3; }

/* Cyan top shimmer line on hover */
.fi-section::after {
    content: '';
    position: absolute;
    top: 0; left: 12%; right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--attro-cyan), transparent);
    opacity: 0.25;
    transition: opacity var(--dur-mid) var(--ease-out);
    border-radius: 99px;
    pointer-events: none;
}
.fi-section:hover::after { opacity: 0.9; }

/* ── Dark ── */
html.dark .fi-section {
    background: var(--dk-surface) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-color: var(--dk-border) !important;
    box-shadow:
        0 1px 0 rgba(255,255,255,0.04) inset,
        0 4px 24px rgba(0,0,0,0.28);
}
html.dark .fi-section:hover {
    border-color: var(--dk-border-accent) !important;
    box-shadow:
        0 1px 0 rgba(255,255,255,0.04) inset,
        0 0 0 1px var(--dk-border-accent),
        0 8px 32px rgba(0,0,0,0.32),
        0 0 20px var(--glow-cyan-sm);
}
html.dark .fi-section-header {
    border-bottom: 1px solid rgba(51,65,85,0.38);
}
html.dark .fi-section-header-heading {
    font-weight: 600 !important;
    color: var(--dk-text) !important;
    letter-spacing: 0.01em;
}

/* ── Light ── */
html:not(.dark) .fi-section {
    background: var(--lt-surface) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: var(--lt-border) !important;
    box-shadow:
        0 1px 0 rgba(255,255,255,0.8) inset,
        0 4px 20px rgba(148,163,184,0.14);
}
html:not(.dark) .fi-section:hover {
    border-color: var(--lt-border-accent) !important;
    box-shadow:
        0 1px 0 rgba(255,255,255,0.8) inset,
        0 0 0 1px rgba(6,182,212,0.18),
        0 8px 28px rgba(148,163,184,0.22),
        0 0 16px rgba(6,182,212,0.07);
}
html:not(.dark) .fi-section-header {
    border-bottom: 1px solid rgba(203,213,225,0.55);
}
html:not(.dark) .fi-section-header-heading {
    font-weight: 600 !important;
    color: var(--lt-text) !important;
    letter-spacing: 0.01em;
}

/* ═══════════════════════════════════════════════════════════════
   7. BUTTONS
═══════════════════════════════════════════════════════════════ */
.fi-btn {
    border-radius: 8px !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em;
    overflow: hidden;
    position: relative;
    transition:
        background   var(--dur-fast) var(--ease-out),
        box-shadow   var(--dur-fast) var(--ease-out),
        transform    var(--dur-fast) var(--ease-out),
        border-color var(--dur-fast) var(--ease-out) !important;
}
.fi-btn:active:not(:disabled) { transform: scale(0.97) !important; }
.fi-btn:disabled, .fi-btn[disabled] {
    opacity: 0.42 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* Primary — dark */
html.dark .fi-btn.fi-color-primary {
    background: linear-gradient(135deg, #0891b2, #06b6d4) !important;
    border: none !important;
    box-shadow: 0 2px 10px rgba(6,182,212,0.32);
    color: #fff !important;
}
html.dark .fi-btn.fi-color-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #06b6d4, #22d3ee) !important;
    box-shadow: 0 4px 20px rgba(6,182,212,0.50);
    transform: translateY(-1px) scale(1.01);
}

/* Primary — light */
html:not(.dark) .fi-btn.fi-color-primary {
    background: linear-gradient(135deg, #0891b2, #06b6d4) !important;
    border: none !important;
    box-shadow: 0 2px 10px rgba(6,182,212,0.24);
    color: #fff !important;
}
html:not(.dark) .fi-btn.fi-color-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #06b6d4, #22d3ee) !important;
    box-shadow: 0 4px 16px rgba(6,182,212,0.38);
    transform: translateY(-1px) scale(1.01);
}

/* Gray — dark */
html.dark .fi-btn.fi-color-gray {
    background: rgba(30,41,59,0.82) !important;
    border: 1px solid var(--dk-border) !important;
    color: #94a3b8 !important;
}
html.dark .fi-btn.fi-color-gray:hover:not(:disabled) {
    background: rgba(51,65,85,0.9) !important;
    border-color: rgba(100,116,139,0.5) !important;
    color: var(--dk-text) !important;
    transform: translateY(-1px);
}

/* Gray — light */
html:not(.dark) .fi-btn.fi-color-gray {
    background: rgba(241,245,249,0.9) !important;
    border: 1px solid var(--lt-border) !important;
    color: #475569 !important;
}
html:not(.dark) .fi-btn.fi-color-gray:hover:not(:disabled) {
    background: rgba(226,232,240,0.9) !important;
    border-color: rgba(148,163,184,0.6) !important;
    color: #0f172a !important;
    transform: translateY(-1px);
}

/* Danger */
html.dark .fi-btn.fi-color-danger,
html:not(.dark) .fi-btn.fi-color-danger {
    background: linear-gradient(135deg, #be123c, #f43f5e) !important;
    border: none !important;
    box-shadow: 0 2px 10px rgba(244,63,94,0.26);
    color: #fff !important;
}
html.dark .fi-btn.fi-color-danger:hover:not(:disabled),
html:not(.dark) .fi-btn.fi-color-danger:hover:not(:disabled) {
    box-shadow: 0 4px 18px rgba(244,63,94,0.44);
    transform: translateY(-1px) scale(1.01);
}

/* ═══════════════════════════════════════════════════════════════
   8. FORM INPUTS
═══════════════════════════════════════════════════════════════ */
.fi-input,
.fi-select-input,
.fi-textarea {
    border-radius: 8px !important;
    transition:
        border-color var(--dur-fast) var(--ease-out),
        box-shadow   var(--dur-fast) var(--ease-out) !important;
}

html.dark .fi-input,
html.dark .fi-select-input,
html.dark .fi-textarea,
html.dark input[type="text"],
html.dark input[type="email"],
html.dark input[type="password"],
html.dark input[type="number"],
html.dark select,
html.dark textarea {
    background: rgba(10,20,38,0.78) !important;
    border-color: var(--dk-border) !important;
    color: var(--dk-text) !important;
}
html.dark input:focus,
html.dark select:focus,
html.dark textarea:focus {
    border-color: var(--attro-cyan) !important;
    box-shadow: 0 0 0 3px rgba(6,182,212,0.14) !important;
    outline: none;
}

html:not(.dark) .fi-input,
html:not(.dark) .fi-select-input,
html:not(.dark) .fi-textarea,
html:not(.dark) input[type="text"],
html:not(.dark) input[type="email"],
html:not(.dark) input[type="password"],
html:not(.dark) input[type="number"],
html:not(.dark) select,
html:not(.dark) textarea {
    background: rgba(248,250,252,0.9) !important;
    border-color: var(--lt-border) !important;
    color: var(--lt-text) !important;
}
html:not(.dark) input:focus,
html:not(.dark) select:focus,
html:not(.dark) textarea:focus {
    border-color: var(--attro-cyan) !important;
    box-shadow: 0 0 0 3px rgba(6,182,212,0.1) !important;
    outline: none;
}

/* ═══════════════════════════════════════════════════════════════
   9. TABLES
═══════════════════════════════════════════════════════════════ */
.fi-table-header-cell {
    font-size: 0.67rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}
html.dark .fi-table-header-cell {
    background: rgba(8,18,35,0.55) !important;
    color: var(--dk-muted) !important;
    border-bottom: 1px solid var(--dk-border) !important;
}
html:not(.dark) .fi-table-header-cell {
    background: rgba(241,245,249,0.65) !important;
    color: #64748b !important;
    border-bottom: 1px solid var(--lt-border) !important;
}

/* Table rows — staggered entrance */
.fi-ta-record {
    transition:
        background var(--dur-fast) var(--ease-out),
        box-shadow var(--dur-fast) var(--ease-out) !important;
    animation: attro-row-in var(--dur-slow) var(--ease-out) both;
}
.fi-ta-record:nth-child(1)    { animation-delay:  20ms; }
.fi-ta-record:nth-child(2)    { animation-delay:  42ms; }
.fi-ta-record:nth-child(3)    { animation-delay:  62ms; }
.fi-ta-record:nth-child(4)    { animation-delay:  80ms; }
.fi-ta-record:nth-child(5)    { animation-delay:  96ms; }
.fi-ta-record:nth-child(6)    { animation-delay: 111ms; }
.fi-ta-record:nth-child(7)    { animation-delay: 124ms; }
.fi-ta-record:nth-child(8)    { animation-delay: 136ms; }
.fi-ta-record:nth-child(9)    { animation-delay: 146ms; }
.fi-ta-record:nth-child(10)   { animation-delay: 155ms; }
.fi-ta-record:nth-child(n+11) { animation-delay: 162ms; }

@keyframes attro-row-in {
    from { opacity: 0; transform: translateY(5px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Row hover — dark */
html.dark .fi-ta-record:hover {
    background: rgba(6,182,212,0.05) !important;
    box-shadow: inset 3px 0 0 var(--attro-cyan);
}
html.dark .fi-ta-record {
    border-bottom: 1px solid rgba(51,65,85,0.28) !important;
}
html.dark .fi-table-cell {
    color: var(--dk-text) !important;
    font-size: 0.84rem;
}

/* Row hover — light */
html:not(.dark) .fi-ta-record:hover {
    background: rgba(6,182,212,0.04) !important;
    box-shadow: inset 3px 0 0 rgba(6,182,212,0.5);
}
html:not(.dark) .fi-ta-record {
    border-bottom: 1px solid rgba(203,213,225,0.45) !important;
}
html:not(.dark) .fi-table-cell {
    color: #1e293b !important;
    font-size: 0.84rem;
}

/* Mono cells */
html.dark .fi-table-cell .font-mono,
html.dark .fi-table-cell code {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 0.78rem;
    background: rgba(15,28,52,0.65);
    padding: 1px 5px;
    border-radius: 4px;
    border: 1px solid rgba(51,65,85,0.4);
}
html:not(.dark) .fi-table-cell .font-mono,
html:not(.dark) .fi-table-cell code {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 0.78rem;
    background: rgba(241,245,249,0.9);
    padding: 1px 5px;
    border-radius: 4px;
    border: 1px solid rgba(203,213,225,0.6);
}

/* Empty state */
html.dark  .fi-ta-empty-state { color: var(--dk-muted) !important; padding: 3rem 1rem; }
html:not(.dark) .fi-ta-empty-state { color: #94a3b8 !important; padding: 3rem 1rem; }

/* ═══════════════════════════════════════════════════════════════
   10. STATS OVERVIEW WIDGET
═══════════════════════════════════════════════════════════════ */
.fi-wi-stats-overview-stat {
    border-radius: 14px !important;
    overflow: hidden;
    position: relative;
    transition:
        transform    var(--dur-mid) var(--ease-out),
        box-shadow   var(--dur-mid) var(--ease-out),
        border-color var(--dur-mid) var(--ease-out) !important;
    animation: attro-stat-in var(--dur-slow) var(--ease-out) both;
}
.fi-wi-stats-overview-stat:nth-child(1) { animation-delay:  40ms; }
.fi-wi-stats-overview-stat:nth-child(2) { animation-delay:  90ms; }
.fi-wi-stats-overview-stat:nth-child(3) { animation-delay: 140ms; }
.fi-wi-stats-overview-stat:nth-child(4) { animation-delay: 190ms; }

@keyframes attro-stat-in {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)   scale(1); }
}

.fi-wi-stats-overview-stat:hover { transform: translateY(-3px); }

/* Cyan shimmer line on hover */
.fi-wi-stats-overview-stat::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--attro-cyan), transparent);
    opacity: 0;
    transition: opacity var(--dur-mid) var(--ease-out);
    pointer-events: none;
}
.fi-wi-stats-overview-stat:hover::before { opacity: 1; }

/* ── Dark stat card ── */
html.dark .fi-wi-stats-overview-stat {
    background: var(--dk-surface) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-color: var(--dk-border) !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.28);
}
html.dark .fi-wi-stats-overview-stat:hover {
    border-color: var(--dk-border-accent) !important;
    box-shadow:
        0 0 0 1px var(--dk-border-accent),
        0 10px 32px rgba(0,0,0,0.32),
        0 0 22px var(--glow-cyan-sm);
}
html.dark .fi-wi-stats-overview-stat-label {
    color: var(--dk-muted) !important;
    font-size: 0.68rem !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
html.dark .fi-wi-stats-overview-stat-value {
    font-size: 1.9rem !important;
    font-weight: 700 !important;
    color: var(--dk-text) !important;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
html.dark .fi-wi-stats-overview-stat-description {
    color: var(--dk-muted) !important;
    font-size: 0.71rem !important;
}

/* ── Light stat card ── */
html:not(.dark) .fi-wi-stats-overview-stat {
    background: var(--lt-surface) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: var(--lt-border) !important;
    box-shadow:
        0 1px 0 rgba(255,255,255,0.85) inset,
        0 4px 20px rgba(148,163,184,0.13);
}
html:not(.dark) .fi-wi-stats-overview-stat:hover {
    border-color: rgba(6,182,212,0.3) !important;
    box-shadow:
        0 1px 0 rgba(255,255,255,0.85) inset,
        0 0 0 1px rgba(6,182,212,0.18),
        0 8px 28px rgba(148,163,184,0.2),
        0 0 16px rgba(6,182,212,0.08);
}
html:not(.dark) .fi-wi-stats-overview-stat-label {
    color: #64748b !important;
    font-size: 0.68rem !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
html:not(.dark) .fi-wi-stats-overview-stat-value {
    font-size: 1.9rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
html:not(.dark) .fi-wi-stats-overview-stat-description {
    color: #64748b !important;
    font-size: 0.71rem !important;
}

/* ═══════════════════════════════════════════════════════════════
   11. CHART WIDGET
═══════════════════════════════════════════════════════════════ */
.fi-wi-chart {
    border-radius: 14px !important;
    animation: attro-fade-in var(--dur-slow) var(--ease-out) both;
    animation-delay: 80ms;
    transition:
        box-shadow   var(--dur-mid) var(--ease-out),
        border-color var(--dur-mid) var(--ease-out);
}
html.dark .fi-wi-chart {
    background: var(--dk-surface) !important;
    border-color: var(--dk-border) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 4px 24px rgba(0,0,0,0.28);
}
html.dark .fi-wi-chart:hover {
    border-color: var(--dk-border-accent) !important;
    box-shadow: 0 0 0 1px var(--dk-border-accent), 0 8px 28px rgba(0,0,0,0.3);
}
html:not(.dark) .fi-wi-chart {
    background: var(--lt-surface) !important;
    border-color: var(--lt-border) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        0 1px 0 rgba(255,255,255,0.85) inset,
        0 4px 20px rgba(148,163,184,0.12);
}
html:not(.dark) .fi-wi-chart:hover {
    border-color: rgba(6,182,212,0.28) !important;
    box-shadow:
        0 1px 0 rgba(255,255,255,0.85) inset,
        0 0 0 1px rgba(6,182,212,0.15),
        0 8px 24px rgba(148,163,184,0.18);
}

/* ═══════════════════════════════════════════════════════════════
   12. PAGE / MAIN ENTRANCE ANIMATION
═══════════════════════════════════════════════════════════════ */
.fi-main, .fi-page {
    animation: attro-page-in var(--dur-slow) var(--ease-out) both;
}
@keyframes attro-page-in {
    from { opacity: 0; transform: translateY(7px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes attro-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Page header */
html.dark .fi-header-heading {
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em;
    color: var(--dk-text) !important;
}
html:not(.dark) .fi-header-heading {
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em;
    color: var(--lt-text) !important;
}

/* ═══════════════════════════════════════════════════════════════
   13. MODALS
═══════════════════════════════════════════════════════════════ */
.fi-modal-window {
    border-radius: 16px !important;
    animation: attro-modal-in var(--dur-mid) var(--ease-spring) both;
}
@keyframes attro-modal-in {
    from { opacity: 0; transform: scale(0.94) translateY(10px); }
    to   { opacity: 1; transform: scale(1)    translateY(0); }
}

html.dark .fi-modal-window {
    background: rgba(7,17,31,0.97) !important;
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid var(--dk-border-accent) !important;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.04) inset,
        0 24px 64px rgba(0,0,0,0.60),
        0 0 40px var(--glow-cyan-sm);
}
html:not(.dark) .fi-modal-window {
    background: rgba(255,255,255,0.97) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--lt-border) !important;
    box-shadow:
        0 1px 0 rgba(255,255,255,0.8) inset,
        0 24px 60px rgba(148,163,184,0.25),
        0 0 24px rgba(6,182,212,0.06);
}

/* Scrim */
html.dark .fi-modal-overlay {
    background: rgba(0,0,0,0.65) !important;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    animation: attro-fade-in var(--dur-fast) linear;
}
html:not(.dark) .fi-modal-overlay {
    background: rgba(15,23,42,0.45) !important;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    animation: attro-fade-in var(--dur-fast) linear;
}

/* ═══════════════════════════════════════════════════════════════
   14. DROPDOWNS
═══════════════════════════════════════════════════════════════ */
.fi-dropdown-panel {
    border-radius: 12px !important;
    animation: attro-dropdown-in var(--dur-fast) var(--ease-out) both;
}
@keyframes attro-dropdown-in {
    from { opacity: 0; transform: translateY(-6px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

html.dark .fi-dropdown-panel {
    background: rgba(8,18,36,0.98) !important;
    border: 1px solid var(--dk-border) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.52);
}
html:not(.dark) .fi-dropdown-panel {
    background: rgba(255,255,255,0.98) !important;
    border: 1px solid var(--lt-border) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 12px 40px rgba(148,163,184,0.22);
}

.fi-dropdown-list-item-label,
.fi-dropdown-item {
    border-radius: 6px !important;
    transition: background var(--dur-fast) var(--ease-out) !important;
}
html.dark .fi-dropdown-list-item:hover .fi-dropdown-list-item-label,
html.dark .fi-dropdown-item:hover {
    background: rgba(6,182,212,0.1) !important;
    color: var(--attro-cyan) !important;
}
html:not(.dark) .fi-dropdown-list-item:hover .fi-dropdown-list-item-label,
html:not(.dark) .fi-dropdown-item:hover {
    background: rgba(6,182,212,0.07) !important;
    color: var(--attro-cyan-mid) !important;
}

/* ═══════════════════════════════════════════════════════════════
   15. NOTIFICATIONS (TOASTS)
═══════════════════════════════════════════════════════════════ */
.fi-no-notification {
    border-radius: 12px !important;
    animation: attro-toast-in var(--dur-mid) var(--ease-spring) both !important;
}
@keyframes attro-toast-in {
    from { opacity: 0; transform: translateY(-12px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
html.dark .fi-no-notification {
    background: rgba(10,20,38,0.97) !important;
    border: 1px solid var(--dk-border) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.42);
}
html:not(.dark) .fi-no-notification {
    background: rgba(255,255,255,0.97) !important;
    border: 1px solid var(--lt-border) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 28px rgba(148,163,184,0.2);
}

/* ═══════════════════════════════════════════════════════════════
   16. LOGIN PAGE
═══════════════════════════════════════════════════════════════ */
html.dark .fi-simple-main {
    background: rgba(10,20,38,0.92) !important;
    border: 1px solid var(--dk-border-accent) !important;
    border-radius: 18px !important;
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.04) inset,
        0 32px 80px rgba(0,0,0,0.52),
        0 0 44px var(--glow-cyan-sm);
    animation: attro-modal-in var(--dur-slow) var(--ease-spring) both;
    position: relative;
}

/* Corner indicators on login card */
html.dark .fi-simple-main::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background:
        linear-gradient(var(--attro-cyan), var(--attro-cyan)) top left / 12px 1px no-repeat,
        linear-gradient(var(--attro-cyan), var(--attro-cyan)) top left / 1px 12px no-repeat,
        linear-gradient(var(--attro-cyan), var(--attro-cyan)) top right / 12px 1px no-repeat,
        linear-gradient(var(--attro-cyan), var(--attro-cyan)) top right / 1px 12px no-repeat,
        linear-gradient(var(--attro-cyan), var(--attro-cyan)) bottom left / 12px 1px no-repeat,
        linear-gradient(var(--attro-cyan), var(--attro-cyan)) bottom left / 1px 12px no-repeat,
        linear-gradient(var(--attro-cyan), var(--attro-cyan)) bottom right / 12px 1px no-repeat,
        linear-gradient(var(--attro-cyan), var(--attro-cyan)) bottom right / 1px 12px no-repeat;
    opacity: 0.22;
    pointer-events: none;
    z-index: 1;
}

/* Top shimmer line on login card */
html.dark .fi-simple-main::after {
    content: '';
    position: absolute;
    top: 0; left: 15%; right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--attro-cyan), transparent);
    opacity: 0.7;
    border-radius: 99px;
    pointer-events: none;
    z-index: 1;
}
html:not(.dark) .fi-simple-main {
    background: rgba(255,255,255,0.90) !important;
    border: 1px solid var(--lt-border) !important;
    border-radius: 18px !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow:
        0 1px 0 rgba(255,255,255,0.9) inset,
        0 28px 72px rgba(148,163,184,0.3),
        0 0 30px rgba(6,182,212,0.08);
    animation: attro-modal-in var(--dur-slow) var(--ease-spring) both;
}

/* ═══════════════════════════════════════════════════════════════
   17. BADGES
═══════════════════════════════════════════════════════════════ */
.fi-badge {
    border-radius: 6px !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em;
    transition: box-shadow var(--dur-fast) var(--ease-out);
}

/* ═══════════════════════════════════════════════════════════════
   18. PAGINATION
═══════════════════════════════════════════════════════════════ */
html.dark .fi-pagination .fi-btn {
    background: rgba(15,28,52,0.62) !important;
    border: 1px solid var(--dk-border) !important;
    border-radius: 6px !important;
    color: #94a3b8 !important;
}
html.dark .fi-pagination .fi-btn:hover:not(:disabled) {
    background: rgba(6,182,212,0.12) !important;
    border-color: var(--dk-border-accent) !important;
    color: var(--attro-cyan) !important;
}
html:not(.dark) .fi-pagination .fi-btn {
    background: rgba(241,245,249,0.85) !important;
    border: 1px solid var(--lt-border) !important;
    border-radius: 6px !important;
    color: #64748b !important;
}
html:not(.dark) .fi-pagination .fi-btn:hover:not(:disabled) {
    background: rgba(6,182,212,0.08) !important;
    border-color: rgba(6,182,212,0.3) !important;
    color: var(--attro-cyan-mid) !important;
}

/* ═══════════════════════════════════════════════════════════════
   18b. IMPERSONATION BANNER — styles live in resources/views/filament/
   impersonation-banner.blade.php (<style> inline) so the strip always renders
   correctly even when /css/attro-theme.css is cached; <form> defaults to block.
═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   19. SCROLLBAR
═══════════════════════════════════════════════════════════════ */
*::-webkit-scrollbar            { width: 5px; height: 5px; }
*::-webkit-scrollbar-track      { background: transparent; }
html.dark  *::-webkit-scrollbar-thumb { background: rgba(51,65,85,0.55); border-radius: 99px; }
html:not(.dark) *::-webkit-scrollbar-thumb { background: rgba(148,163,184,0.45); border-radius: 99px; }
*::-webkit-scrollbar-thumb:hover { background: rgba(100,116,139,0.75); }

/* ═══════════════════════════════════════════════════════════════
   20. FOCUS / ACCESSIBILITY
═══════════════════════════════════════════════════════════════ */
*:focus-visible {
    outline: 2px solid var(--attro-cyan) !important;
    outline-offset: 2px !important;
    border-radius: 4px;
}

/* ═══════════════════════════════════════════════════════════════
   21. LIVE INDICATOR DOT (injected by attro-theme.js)
═══════════════════════════════════════════════════════════════ */
.attro-live-dot {
    display: inline-block;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px rgba(16,185,129,0.55);
    animation: attro-live-pulse 1.8s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes attro-live-pulse {
    0%,100% { transform: scale(1);   opacity: 1;   }
    50%     { transform: scale(1.45); opacity: 0.6; }
}

/* ═══════════════════════════════════════════════════════════════
   22. ENHANCED MICRO-INTERACTIONS & ANIMATIONS
═══════════════════════════════════════════════════════════════ */

/* Card Hover Effects */
.fi-section, .fi-widget, .fi-stats-card {
    transition: all var(--dur-mid) var(--ease-spring) !important;
}

html.dark .fi-section:hover, html.dark .fi-widget:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 32px rgba(6, 182, 212, 0.15),
        0 0 0 1px var(--dk-border-accent);
}

html:not(.dark) .fi-section:hover, html:not(.dark) .fi-widget:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 32px rgba(6, 182, 212, 0.12),
        0 0 0 1px var(--lt-border-accent);
}

/* Button Press Animation */
.fi-btn {
    transition: all var(--dur-fast) var(--ease-spring) !important;
}

.fi-btn:active {
    transform: scale(0.97);
}

/* Stat Card Animations */
.fi-stats-overview-stat {
    position: relative;
    overflow: hidden;
}

.fi-stats-overview-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(6, 182, 212, 0.1),
        transparent
    );
    transition: left 0.6s ease;
}

.fi-stats-overview-stat:hover::before {
    left: 100%;
}

/* Table Row Hover Glow */
html.dark .fi-ta-row:hover {
    box-shadow: 0 0 0 1px var(--dk-border-accent), 0 4px 12px rgba(6, 182, 212, 0.1);
}

html:not(.dark) .fi-ta-row:hover {
    box-shadow: 0 0 0 1px var(--lt-border-accent), 0 4px 12px rgba(6, 182, 212, 0.08);
}

/* Loading Skeleton Animation */
@keyframes attro-skeleton {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.attro-skeleton {
    background: linear-gradient(
        90deg,
        rgba(148, 163, 184, 0.1) 25%,
        rgba(148, 163, 184, 0.2) 50%,
        rgba(148, 163, 184, 0.1) 75%
    );
    background-size: 200% 100%;
    animation: attro-skeleton 1.5s ease-in-out infinite;
    border-radius: 4px;
}

html.dark .attro-skeleton {
    background: linear-gradient(
        90deg,
        rgba(51, 65, 85, 0.3) 25%,
        rgba(51, 65, 85, 0.5) 50%,
        rgba(51, 65, 85, 0.3) 75%
    );
    background-size: 200% 100%;
}

/* Page Transition */
.fi-layout {
    animation: attro-page-fade-in 0.3s ease-out;
}

@keyframes attro-page-fade-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sidebar Item Hover */
html.dark .fi-sidebar-item a:hover {
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.1), transparent);
    border-left: 3px solid var(--attro-cyan);
}

html:not(.dark) .fi-sidebar-item a:hover {
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.08), transparent);
    border-left: 3px solid var(--attro-cyan-mid);
}

/* Notification Badge Pulse */
.fi-notification-badge {
    animation: attro-badge-pulse 2s ease-in-out infinite;
}

@keyframes attro-badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Form Input Focus Animation */
.fi-input-wrp:focus-within {
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
    transition: box-shadow var(--dur-mid) var(--ease-out);
}

/* Progress Bar Animation */
.fi-progress-bar {
    position: relative;
    overflow: hidden;
}

.fi-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: attro-progress-shine 2s ease-in-out infinite;
}

@keyframes attro-progress-shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Icon Spin on Hover */
.fi-icon-btn:hover svg {
    animation: attro-icon-spin 0.6s ease-in-out;
}

@keyframes attro-icon-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal Backdrop Blur Intensify */
.fi-modal-backdrop {
    backdrop-filter: blur(8px);
    transition: backdrop-filter var(--dur-mid) var(--ease-out);
}

.fi-modal-open .fi-modal-backdrop {
    backdrop-filter: blur(12px);
}

/* Dropdown Menu Animation */
.fi-dropdown-panel {
    animation: attro-dropdown-in var(--dur-mid) var(--ease-spring);
}

@keyframes attro-dropdown-in {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Chart Container Hover */
canvas {
    transition: transform var(--dur-mid) var(--ease-spring);
}

canvas:hover {
    transform: scale(1.01);
}

/* Tab Active Indicator Slide */
.fi-tabs-tab-active {
    position: relative;
}

.fi-tabs-tab-active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--attro-cyan);
    animation: attro-tab-indicator var(--dur-mid) var(--ease-spring);
}

@keyframes attro-tab-indicator {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* Counter Animation for Stats */
@keyframes attro-counter-up {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.attro-animated-counter {
    animation: attro-counter-up 0.5s var(--ease-spring);
}

/* Tooltip Fade In */
.fi-tooltip {
    animation: attro-tooltip-in var(--dur-fast) var(--ease-out);
}

@keyframes attro-tooltip-in {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Breadcrumb Hover */
.fi-breadcrumb-item a:hover {
    color: var(--attro-cyan);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Search Highlight */
mark {
    background: rgba(6, 182, 212, 0.2);
    color: inherit;
    padding: 0 2px;
    border-radius: 2px;
}

html.dark mark {
    background: rgba(6, 182, 212, 0.3);
}

/* Empty State Illustration */
.attro-empty-state {
    animation: attro-empty-state-float 3s ease-in-out infinite;
}

@keyframes attro-empty-state-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Status Dot Pulse Variants */
.attro-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

.attro-status-dot.active {
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
    animation: attro-live-pulse 2s ease-in-out infinite;
}

.attro-status-dot.warning {
    background: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
    animation: attro-live-pulse 1.5s ease-in-out infinite;
}

.attro-status-dot.danger {
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
    animation: attro-live-pulse 1s ease-in-out infinite;
}

/* Data Refresh Spinner */
.attro-refreshing {
    animation: attro-spin 1s linear infinite;
}

@keyframes attro-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Trend Indicator Arrows */
.attro-trend-up {
    color: #10b981;
    font-weight: 600;
}

.attro-trend-down {
    color: #ef4444;
    font-weight: 600;
}

/* Glassmorphism Enhancement */
.attro-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

html.dark .attro-glass {
    background: rgba(10, 20, 38, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Gradient Text */
.attro-gradient-text {
    background: linear-gradient(135deg, var(--attro-cyan), #0891b2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Shimmer Effect for Loading States */
@keyframes attro-shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.attro-shimmer {
    animation: attro-shimmer 2s linear infinite;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 1000px 100%;
}

html.dark .attro-shimmer {
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 1000px 100%;
}

/* ═══════════════════════════════════════════════════════════════
   23. REDUCED MOTION
═══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration:        0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration:       0.01ms !important;
        scroll-behavior:           auto !important;
    }
    .attro-empty-state,
    .attro-status-dot,
    .attro-live-dot {
        animation: none !important;
    }
}
