/* Active Targets — Filament admin dark theme (matches storefront + logo) */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@600;700&family=Sora:wght@400;500;600;700&display=swap');

:root {
    --at-orange: #FF5A00;
    --at-orange-bright: #FF7A33;
    --at-orange-dark: #CC4800;
    --at-grid: rgba(255, 255, 255, 0.035);
}

html {
    font-family: 'Sora', ui-sans-serif, system-ui, sans-serif !important;
    color-scheme: dark;
}

/* Dark page atmosphere */
.fi-body,
.fi-simple-layout,
.fi-main {
    background:
        radial-gradient(ellipse 70% 45% at 100% 0%, rgba(255, 90, 0, 0.14), transparent 55%),
        radial-gradient(ellipse 50% 40% at 0% 100%, rgba(255, 90, 0, 0.08), transparent 50%),
        linear-gradient(180deg, #000000 0%, #0a0a0a 100%) !important;
}

.fi-main::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.45;
    background-image:
        linear-gradient(var(--at-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--at-grid) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(180deg, #000, transparent 90%);
}

.fi-main > * {
    position: relative;
    z-index: 1;
}

/* Topbar / sidebar */
.fi-topbar {
    border-bottom: 1px solid #222 !important;
    box-shadow: 0 1px 0 rgba(255, 90, 0, 0.12);
    background: rgba(0, 0, 0, 0.85) !important;
}

.fi-topbar::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--at-orange), transparent);
    pointer-events: none;
}

.fi-sidebar,
.fi-sidebar-header {
    border-color: #222 !important;
}

.fi-sidebar-header {
    border-bottom: 1px solid #222 !important;
}

.fi-sidebar-nav-item-button,
.fi-sidebar-item-button {
    border-radius: 0.65rem !important;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease !important;
}

.fi-sidebar-item-active .fi-sidebar-item-button,
.fi-sidebar-item-button[aria-current="page"] {
    background: rgba(255, 90, 0, 0.14) !important;
    box-shadow: inset 3px 0 0 var(--at-orange);
}

/* Cards / widgets */
.fi-wi-stats-overview-stat,
.fi-section,
.fi-ta-ctn,
.fi-fo-component-ctn,
.fi-simple-main {
    border-radius: 0.9rem !important;
}

.fi-wi-stats-overview-stat {
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
    border: 1px solid #2a2a2a !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.fi-wi-stats-overview-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--at-orange), var(--at-orange-bright));
}

.fi-wi-stats-overview-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(255, 90, 0, 0.18) !important;
}

/* Primary buttons */
.fi-btn-color-primary {
    box-shadow: 0 8px 18px rgba(255, 90, 0, 0.28) !important;
}

.fi-btn-color-primary:hover {
    box-shadow: 0 10px 24px rgba(255, 90, 0, 0.38) !important;
}

/* Login page */
.fi-simple-layout {
    position: relative;
    min-height: 100vh;
}

.fi-simple-layout::before {
    content: '';
    position: absolute;
    width: min(420px, 70vw);
    height: min(420px, 70vw);
    border: 1px solid rgba(255, 90, 0, 0.28);
    border-radius: 50%;
    top: 12%;
    right: 8%;
    pointer-events: none;
    animation: at-pulse 6s ease-in-out infinite;
}

.fi-simple-layout::after {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    bottom: 12%;
    left: 10%;
    pointer-events: none;
    opacity: 0.45;
    background:
        linear-gradient(135deg, transparent 48%, rgba(255, 90, 0, 0.45) 49%, rgba(255, 90, 0, 0.45) 51%, transparent 52%),
        linear-gradient(45deg, transparent 48%, rgba(255, 255, 255, 0.08) 49%, rgba(255, 255, 255, 0.08) 51%, transparent 52%);
}

.fi-simple-main {
    position: relative;
    z-index: 1;
    border: 1px solid #2a2a2a !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45) !important;
    backdrop-filter: blur(8px);
    background: rgba(12, 12, 12, 0.92) !important;
}

.fi-logo {
    filter: none !important;
    max-height: 2.75rem !important;
    width: auto !important;
    object-fit: contain;
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

.fi-simple-main .fi-logo {
    max-height: 3.5rem !important;
}

.fi-header-heading {
    font-family: 'Orbitron', sans-serif !important;
    letter-spacing: 0.04em;
}

@keyframes at-pulse {
    0%, 100% { transform: scale(1); opacity: 0.55; }
    50% { transform: scale(1.04); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .fi-simple-layout::before,
    .fi-wi-stats-overview-stat {
        animation: none !important;
        transition: none !important;
    }
}
