/* =========================================================
   RYDEX ADMIN PORTAL & CUSTOM DASHBOARD THEME
   ========================================================= */

/* Dark Sidebar */
aside.fi-sidebar {
    background-color: #111827 !important; /* Deep slate gray-900 */
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
}
aside.fi-sidebar * {
    color: #e2e8f0 !important;
}
aside.fi-sidebar .fi-sidebar-item-active > a,
aside.fi-sidebar .fi-sidebar-item-active > button,
aside.fi-sidebar .fi-active > a,
aside.fi-sidebar .fi-active > button,
aside.fi-sidebar li.fi-active > a,
aside.fi-sidebar li[class*="active"] > a {
    background: linear-gradient(90deg, #0d9488 0%, #14b8a6 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3) !important;
    border-radius: 10px !important;
}
aside.fi-sidebar .fi-sidebar-item-active > a *,
aside.fi-sidebar .fi-sidebar-item-active > button *,
aside.fi-sidebar .fi-active > a *,
aside.fi-sidebar .fi-active > button *,
aside.fi-sidebar li.fi-active > a *,
aside.fi-sidebar li[class*="active"] > a * {
    color: #ffffff !important;
}

/* Gradient Cards for Overview Dashboard */
.stat-card-1 {
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%) !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 25px -5px rgba(20, 184, 166, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}
.stat-card-2 {
    background: linear-gradient(135deg, #6b21a8 0%, #a855f7 100%) !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 25px -5px rgba(168, 85, 247, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}
.stat-card-3 {
    background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%) !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}
.stat-card-4 {
    background: linear-gradient(135deg, #047857 0%, #10b981 100%) !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.stat-card-1 *, .stat-card-2 *, .stat-card-3 *, .stat-card-4 * {
    color: white !important;
}

.fi-wi-stats-overview-stat-icon {
    color: white !important;
}


/* =========================================================
   SUPER PREMIUM MODERN LOGIN PAGE STYLING (GLASSMORPHISM)
   Safe, Responsive, No Clipping, High Contrast
   ========================================================= */

body:has(.fi-simple-layout),
html:has(.fi-simple-layout),
.fi-simple-layout {
    background-color: #080c14 !important;
    background-image: 
        radial-gradient(at 15% 15%, rgba(20, 184, 166, 0.22) 0px, transparent 45%),
        radial-gradient(at 85% 85%, rgba(14, 165, 233, 0.18) 0px, transparent 45%),
        radial-gradient(at 50% 50%, rgba(30, 41, 59, 0.35) 0px, transparent 65%) !important;
    background-attachment: fixed !important;
    min-height: 100vh !important;
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
}

/* Auth container formatting */
.fi-simple-main {
    max-width: 460px !important;
    margin: 0 auto !important;
    padding: 3rem 1.25rem !important;
    width: 100% !important;
}

/* Glassmorphism Card Effect */
.fi-simple-main .fi-card,
.fi-simple-page .fi-card {
    background: rgba(17, 24, 39, 0.88) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 24px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85), 0 0 45px rgba(20, 184, 166, 0.18) !important;
    padding: 2.5rem 2.2rem !important;
    color: #f8fafc !important;
}

/* Typography & Header - Safe and Crisp without webkit text clip bug */
.fi-simple-main .fi-logo,
.fi-simple-main h1 {
    color: #ffffff !important;
    font-size: 2rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px !important;
    text-align: center !important;
    margin-bottom: 0.3rem !important;
    text-shadow: 0 4px 12px rgba(0,0,0,0.5) !important;
}

.fi-simple-main p, 
.fi-simple-main label,
.fi-simple-main span {
    color: #cbd5e1 !important;
    font-size: 0.95rem !important;
}

/* Modern Input Boxes */
.fi-simple-main input[type="email"],
.fi-simple-main input[type="password"],
.fi-simple-main input[type="text"],
.fi-simple-main .fi-input-wrp {
    background: rgba(15, 23, 42, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    font-size: 1rem !important;
    transition: all 0.25s ease !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.fi-simple-main .fi-input-wrp:focus-within {
    border-color: #14b8a6 !important;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.fi-simple-main input::placeholder {
    color: #64748b !important;
}

/* Checkbox */
.fi-simple-main input[type="checkbox"],
.fi-checkbox-input {
    border-radius: 6px !important;
    background-color: rgba(15, 23, 42, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #14b8a6 !important;
}

/* Sign In Button - Vibrant Teal Gradient */
.fi-simple-main button[type="submit"],
.fi-simple-main .fi-btn-primary {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 50%, #047857 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 1.05rem !important;
    padding: 0.9rem 1.5rem !important;
    box-shadow: 0 10px 20px -5px rgba(20, 184, 166, 0.45) !important;
    transition: all 0.25s ease !important;
    width: 100% !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-top: 0.5rem !important;
}

.fi-simple-main button[type="submit"]:hover,
.fi-simple-main .fi-btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 15px 28px -5px rgba(20, 184, 166, 0.65) !important;
    background: linear-gradient(135deg, #2dd4bf 0%, #14b8a6 50%, #0d9488 100%) !important;
}

.fi-simple-main button[type="submit"]:active,
.fi-simple-main .fi-btn-primary:active {
    transform: translateY(0) !important;
}
