/* ============================================================
   Marketing Engine — Dark Ocean Glass Theme
   ============================================================ */

/* ── Global background ─────────────────────────────────────── */
body,
.fi-body {
    background: radial-gradient(ellipse at 20% 20%, #012a2a 0%, #041a2e 35%, #020d1a 70%, #000608 100%) !important;
    background-attachment: fixed !important;
    min-height: 100vh;
}

/* Animated floating orbs — main panel */
.fi-layout::before,
.fi-layout::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    animation: float 12s ease-in-out infinite;
}
.fi-layout::before {
    width: 500px;
    height: 500px;
    top: -120px;
    left: -100px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.3) 0%, transparent 70%);
}
.fi-layout::after {
    width: 600px;
    height: 600px;
    bottom: -150px;
    right: -150px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.22) 0%, rgba(16, 185, 129, 0.12) 40%, transparent 70%);
    animation-delay: -6s;
    animation-duration: 16s;
}

/* Animated floating orbs — login page */
.fi-simple-layout::before,
.fi-simple-layout::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
    animation: float 14s ease-in-out infinite;
}
.fi-simple-layout::before {
    width: 600px;
    height: 600px;
    top: -200px;
    left: -150px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.28) 0%, transparent 70%);
}
.fi-simple-layout::after {
    width: 700px;
    height: 700px;
    bottom: -250px;
    right: -200px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.22) 0%, rgba(16, 185, 129, 0.1) 50%, transparent 70%);
    animation-delay: -7s;
    animation-duration: 18s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    33%       { transform: translateY(-30px) scale(1.05); }
    66%       { transform: translateY(20px) scale(0.97); }
}

/* ── Sidebar ────────────────────────────────────────────────── */
.fi-sidebar {
    background: rgba(2, 15, 30, 0.55) !important;
    backdrop-filter: blur(28px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
    border-right: 1px solid rgba(6, 182, 212, 0.18) !important;
    box-shadow: 4px 0 32px rgba(0, 0, 0, 0.4), inset -1px 0 0 rgba(6, 182, 212, 0.07) !important;
}

.fi-sidebar-header {
    background: rgba(6, 182, 212, 0.08) !important;
    border-bottom: 1px solid rgba(6, 182, 212, 0.14) !important;
    backdrop-filter: blur(20px) !important;
}

.fi-sidebar-nav {
    padding-top: 0.5rem;
}

/* Nav items */
.fi-sidebar-item-button {
    transition: all 0.2s ease !important;
    border-radius: 0.6rem !important;
    margin: 0.1rem 0.5rem !important;
}
.fi-sidebar-item-button:hover {
    background: rgba(6, 182, 212, 0.15) !important;
    box-shadow: 0 2px 12px rgba(6, 182, 212, 0.18) !important;
}
.fi-sidebar-item-button.fi-active,
.fi-sidebar-item-button[aria-current] {
    background: rgba(6, 182, 212, 0.22) !important;
    box-shadow: 0 2px 16px rgba(6, 182, 212, 0.3), inset 0 1px 0 rgba(255,255,255,0.07) !important;
    border: 1px solid rgba(34, 211, 238, 0.22) !important;
}

/* ── Topbar ─────────────────────────────────────────────────── */
.fi-topbar {
    background: rgba(2, 10, 22, 0.6) !important;
    backdrop-filter: blur(24px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(160%) !important;
    border-bottom: 1px solid rgba(6, 182, 212, 0.12) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35) !important;
}

/* ── Main content wrapper ───────────────────────────────────── */
.fi-main,
.fi-main-ctn {
    position: relative;
    z-index: 1;
}

/* ── Glass cards ────────────────────────────────────────────── */
.fi-section,
.fi-wi,
.fi-card,
.fi-ta-ctn {
    background: rgba(4, 20, 40, 0.45) !important;
    backdrop-filter: blur(20px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(150%) !important;
    border: 1px solid rgba(6, 182, 212, 0.18) !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.35),
        0 1px 0 rgba(255, 255, 255, 0.04) inset,
        0 -1px 0 rgba(0, 0, 0, 0.2) inset !important;
    border-radius: 1rem !important;
    transition: box-shadow 0.25s ease !important;
}
.fi-section:hover,
.fi-wi:hover {
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(34, 211, 238, 0.18),
        0 1px 0 rgba(255, 255, 255, 0.05) inset !important;
}

.fi-section-header,
.fi-section-header-ctn {
    border-bottom: 1px solid rgba(6, 182, 212, 0.1) !important;
}

/* ── Tables ─────────────────────────────────────────────────── */
.fi-ta-header-cell,
.fi-ta-cell {
    background: transparent !important;
}
.fi-ta-row:hover td {
    background: rgba(6, 182, 212, 0.08) !important;
}
.fi-ta-header {
    background: rgba(6, 182, 212, 0.07) !important;
    border-bottom: 1px solid rgba(6, 182, 212, 0.12) !important;
}

/* ── Inputs & forms ─────────────────────────────────────────── */
.fi-input,
.fi-fo-field-wrp input,
.fi-fo-field-wrp textarea,
.fi-fo-field-wrp select,
.fi-select-input {
    background: rgba(2, 15, 35, 0.6) !important;
    border-color: rgba(6, 182, 212, 0.28) !important;
    color: rgba(224, 242, 254, 0.95) !important;
    backdrop-filter: blur(8px) !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}
.fi-input:focus,
.fi-fo-field-wrp input:focus,
.fi-fo-field-wrp textarea:focus {
    border-color: rgba(34, 211, 238, 0.55) !important;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15), 0 2px 12px rgba(6, 182, 212, 0.12) !important;
    outline: none !important;
}

/* ── Buttons ────────────────────────────────────────────────── */
.fi-btn {
    backdrop-filter: blur(12px) !important;
    transition: all 0.2s ease !important;
}
.fi-btn-color-primary {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.85) 0%, rgba(20, 184, 166, 0.85) 100%) !important;
    border: 1px solid rgba(34, 211, 238, 0.4) !important;
    box-shadow: 0 4px 16px rgba(6, 182, 212, 0.35), inset 0 1px 0 rgba(255,255,255,0.12) !important;
}
.fi-btn-color-primary:hover {
    box-shadow: 0 6px 24px rgba(6, 182, 212, 0.5), inset 0 1px 0 rgba(255,255,255,0.15) !important;
    transform: translateY(-1px) !important;
}
.fi-btn-color-gray {
    background: rgba(2, 15, 35, 0.5) !important;
    border: 1px solid rgba(6, 182, 212, 0.18) !important;
    backdrop-filter: blur(12px) !important;
}

/* ── Dropdowns & modals ─────────────────────────────────────── */
.fi-dropdown-panel,
.fi-modal-window {
    background: rgba(2, 12, 28, 0.78) !important;
    backdrop-filter: blur(32px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(32px) saturate(180%) !important;
    border: 1px solid rgba(6, 182, 212, 0.2) !important;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(34, 211, 238, 0.06) !important;
    border-radius: 1rem !important;
}

/* ── Notifications ──────────────────────────────────────────── */
.fi-no-notification {
    background: rgba(4, 20, 40, 0.88) !important;
    backdrop-filter: blur(24px) !important;
    border: 1px solid rgba(6, 182, 212, 0.22) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
}

/* ── Text color adjustments ─────────────────────────────────── */
.fi-sidebar-item-label,
.fi-sidebar-group-label {
    color: rgba(165, 243, 252, 0.88) !important;
}
.fi-section-header-heading,
.fi-wi-stats-overview-stat-label {
    color: rgba(186, 230, 253, 0.85) !important;
}

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(6, 182, 212, 0.38);
    border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(34, 211, 238, 0.58);
}

/* ── Login page ─────────────────────────────────────────────── */
.fi-simple-layout {
    background: radial-gradient(ellipse at 25% 25%, #011f1f 0%, #031628 40%, #010b14 100%) !important;
    background-attachment: fixed !important;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

/* Kill the default white card wrapper Filament applies */
.fi-simple-main {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
    padding: 1.5rem !important;
}

/* Login card — clean, wiki-inspired: solid dark, strong top accent */
.fi-simple-page {
    background: #0b1929 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(6, 182, 212, 0.18) !important;
    border-top: 3px solid #06b6d4 !important;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.3),
        0 24px 48px rgba(0, 0, 0, 0.45) !important;
    border-radius: 0.5rem !important;
    position: relative;
    z-index: 1;
    padding: 2.5rem !important;
}

/* Brand header area — keep the logo horizontally centered */
.fi-simple-page .fi-logo {
    display: block !important;
    margin: 0 auto 1.5rem !important;
    height: 2.4rem !important;
    width: auto !important;
}

/* Login heading */
.fi-simple-page .fi-header-heading {
    color: #e0f2fe !important;
    font-size: 1.375rem !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em !important;
    margin-bottom: 0.25rem !important;
}

.fi-simple-page .fi-header-subheading {
    color: rgba(148, 163, 184, 0.8) !important;
    font-size: 0.875rem !important;
}

/* Field labels */
.fi-simple-page .fi-fo-field-wrp label {
    color: rgba(186, 230, 253, 0.85) !important;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.01em !important;
}

/* Login input fields */
.fi-simple-page .fi-fo-field-wrp input {
    background: #071220 !important;
    border: 1px solid rgba(6, 182, 212, 0.22) !important;
    border-radius: 0.375rem !important;
    color: #e0f2fe !important;
    font-size: 0.9375rem !important;
    transition: border-color 0.15s, box-shadow 0.15s !important;
}
.fi-simple-page .fi-fo-field-wrp input:focus {
    border-color: #06b6d4 !important;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.12) !important;
    outline: none !important;
}
.fi-simple-page .fi-fo-field-wrp input::placeholder {
    color: rgba(100, 130, 160, 0.6) !important;
}

/* Show password toggle button */
.fi-simple-page .fi-input-suffix-item button,
.fi-simple-page button[aria-label="Show password"],
.fi-simple-page .fi-input-wrp > button {
    background: #071220 !important;
    border: none !important;
    color: rgba(6, 182, 212, 0.7) !important;
    box-shadow: none !important;
}
.fi-simple-page .fi-input-wrp {
    background: #071220 !important;
    border-color: rgba(6, 182, 212, 0.22) !important;
}

/* Remember me checkbox
   NOTE: use `background-color`, NOT the `background` shorthand — the shorthand
   resets `background-image`, which wipes the Tailwind checkmark on :checked,
   making the box look permanently unchecked. */
.fi-simple-page .fi-checkbox-input {
    border-color: rgba(6, 182, 212, 0.3) !important;
    background-color: #071220 !important;
    cursor: pointer;
}
.fi-simple-page .fi-checkbox-input:checked {
    background-color: #06b6d4 !important;
    border-color: #06b6d4 !important;
}
.fi-simple-page .fi-fo-field-wrp label span {
    color: rgba(148, 163, 184, 0.85) !important;
    font-size: 0.875rem !important;
}

/* Login button — full-width solid teal */
.fi-simple-page .fi-btn-color-primary {
    background: #0e7490 !important;
    border: 1px solid #0891b2 !important;
    box-shadow: none !important;
    border-radius: 0.375rem !important;
    font-weight: 600 !important;
    font-size: 0.9375rem !important;
    color: #f0f9ff !important;
    transition: background 0.15s !important;
    transform: none !important;
}
.fi-simple-page .fi-btn-color-primary:hover {
    background: #0891b2 !important;
    box-shadow: none !important;
    transform: none !important;
}
