/* ==========================================================================
   FlareExpress — Flarevix Radiant Dark Design System Theme
   Portal standard: https://flarevix.com
   ========================================================================== */

:root {
    --fx-bg: #05050A;
    --fx-bg-alt: #0A0A14;
    --fx-surface: #101018;
    --fx-surface-alt: #171722;
    --fx-border: #26263A;
    --fx-border-strong: #3A3A55;
    --fx-fg: #F4F4F8;
    --fx-muted: #9CA3AF;
    --fx-faint: #62627A;
    --fx-flare1: #FF7A18;
    --fx-flare2: #FF2E63;
    --fx-flare3: #8B5CF6;
    --fx-cyan: #22D3EE;
    --fx-green: #22C55E;
    --fx-yellow: #FFD23F;
    --admin-panel-color: #FF7A18 !important;
}

/* -------------------------------------------------------------
   1. TOPBAR & BRAND HEADER
   ------------------------------------------------------------- */
.topbar {
    background: #0A0A14 !important;
    border-bottom: 1px solid #26263A !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45) !important;
}

.topbar .top-navbar .navbar-header {
    background: #0A0A14 !important;
    border-right: 1px solid #26263A !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    padding: 6px 14px !important;
    display: flex !important;
    align-items: center !important;
}

.navbar-brand #logo_web {
    max-height: 42px !important;
    width: auto !important;
    object-fit: contain !important;
}

.navbar-brand .light-logo {
    max-height: 38px !important;
    width: auto !important;
    object-fit: contain !important;
}

/* Topbar user / icons */
.topbar .navbar-nav > li > a {
    color: #9CA3AF !important;
    transition: color 0.2s ease;
}

.topbar .navbar-nav > li > a:hover {
    color: #FF7A18 !important;
}

/* -------------------------------------------------------------
   2. SIDEBAR NAVIGATION
   ------------------------------------------------------------- */
.left-sidebar {
    background: #07070D !important;
    border-right: 1px solid #26263A !important;
}

.sidebar-search {
    padding: 12px 14px !important;
    background: #07070D !important;
    border-bottom: 1px solid #1A1A28 !important;
}

.sidebar-search input {
    background: #101018 !important;
    border: 1px solid #26263A !important;
    color: #F4F4F8 !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    transition: all 0.2s ease !important;
}

.sidebar-search input:focus {
    border-color: #FF7A18 !important;
    box-shadow: 0 0 12px rgba(255, 122, 24, 0.25) !important;
    outline: none !important;
}

.sidebar-nav {
    background: transparent !important;
}

.sidebar-nav ul li a {
    color: #9CA3AF !important;
    font-size: 13.5px !important;
    transition: all 0.18s ease !important;
    border-radius: 6px !important;
    margin: 2px 8px !important;
    padding: 8px 12px !important;
}

.sidebar-nav ul li a i {
    color: #71718A !important;
    transition: all 0.18s ease !important;
}

.sidebar-nav ul li a:hover {
    color: #FF7A18 !important;
    background: rgba(255, 122, 24, 0.08) !important;
}

.sidebar-nav ul li a:hover i {
    color: #FF7A18 !important;
}

.sidebar-nav > ul > li.active > a,
.sidebar-nav ul li a.active {
    color: #FF7A18 !important;
    background: rgba(255, 122, 24, 0.12) !important;
    border-left: 3px solid #FF7A18 !important;
    font-weight: 600 !important;
}

.sidebar-nav > ul > li.active > a i,
.sidebar-nav ul li a.active i {
    color: #FF7A18 !important;
}

.nav-subtitle-span {
    color: #62627A !important;
    font-size: 10.5px !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    padding: 14px 16px 4px 16px !important;
    display: block !important;
}

/* -------------------------------------------------------------
   3. BUTTONS & ACTIONS
   ------------------------------------------------------------- */
.btn-primary,
.btn-primary.disabled,
.btn-primary:focus {
    background: linear-gradient(135deg, #FF7A18 0%, #FF2E63 100%) !important;
    border: none !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(255, 122, 24, 0.35) !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
}

.btn-primary:hover,
.btn-primary.disabled:hover {
    background: linear-gradient(135deg, #FF8C36 0%, #FF4477 100%) !important;
    border: none !important;
    color: #FFFFFF !important;
    box-shadow: 0 6px 20px rgba(255, 122, 24, 0.5) !important;
    transform: translateY(-1px) !important;
}

.btn-primary:active {
    transform: translateY(0) !important;
}

/* -------------------------------------------------------------
   4. TABS, BADGES & HIGHLIGHTS
   ------------------------------------------------------------- */
.badge-primary,
.nav-tabs.card-header-tabs .nav-link.active,
.menu-tab ul li.active a {
    background: linear-gradient(135deg, #FF7A18 0%, #FF2E63 100%) !important;
    border-color: #FF7A18 !important;
    color: #FFFFFF !important;
}

.order-status span.count,
.order-status .data i {
    color: #FF7A18 !important;
}

a {
    color: #FF7A18;
}

a:hover {
    color: #FF2E63;
}

/* -------------------------------------------------------------
   5. LOGIN PAGE SPECIFIC STYLES
   ------------------------------------------------------------- */
.auth-wrapper-left {
    background: url(../images/e-mart-log-in-bg.png) no-repeat center center / cover !important;
    border-right: 1px solid #26263A !important;
}

.auth-wrapper-right {
    background: #FFFFFF !important;
}

.admin-logo img {
    max-width: 210px !important;
    height: auto !important;
}

.auth-wrapper-right .form-control:focus {
    border-color: #FF7A18 !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 122, 24, 0.22) !important;
}

.form-check-input:checked {
    background-color: #FF7A18 !important;
    border-color: #FF7A18 !important;
}

/* -------------------------------------------------------------
   6. LANGUAGE SWITCHER & RTL SUPPORT
   ------------------------------------------------------------- */
#language_dropdown_box {
    display: inline-flex !important;
    align-items: center;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid #26263A !important;
    border-radius: 8px !important;
    padding: 3px 8px !important;
    margin-right: 12px !important;
}

#language_dropdown_box .language-select i {
    color: #FF7A18 !important;
    margin-right: 6px !important;
    font-size: 15px !important;
}

#language_dropdown {
    background: transparent !important;
    border: none !important;
    color: #F4F4F8 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 2px 6px !important;
    height: auto !important;
    cursor: pointer !important;
}

#language_dropdown option {
    background: #101018 !important;
    color: #F4F4F8 !important;
}

[dir="rtl"] #language_dropdown_box {
    margin-right: 0 !important;
    margin-left: 12px !important;
}

[dir="rtl"] #language_dropdown_box .language-select i {
    margin-right: 0 !important;
    margin-left: 6px !important;
}

[dir="rtl"] .topbar .top-navbar .navbar-header {
    border-left: 1px solid #26263A !important;
    border-right: none !important;
}

[dir="rtl"] .left-sidebar {
    border-left: 1px solid #26263A !important;
    border-right: none !important;
}

[dir="rtl"] .sidebar-nav > ul > li.active > a,
[dir="rtl"] .sidebar-nav ul li a.active {
    border-right: 3px solid #FF7A18 !important;
    border-left: none !important;
}

