/* ==========================================================================
   3A LIMOUSINE - LUXURY & SIMPLE FILAMENT ADMIN THEME (PURE CSS)
   Website: https://limousine3a.com
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. FONTS IMPORT & GLOBAL TYPOGRAPHY
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@300;400;500;600;700&family=Cairo:wght@400;500;600;700&display=swap');

:root {
    --font-family-primary: 'Alexandria', 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* 3A Limousine Luxury Gold / Amber Palette */
    --c-gold-50: #fcf9f2;
    --c-gold-100: #f8f1e0;
    --c-gold-200: #f0e1c0;
    --c-gold-300: #e5cc95;
    --c-gold-400: #d7b267;
    --c-gold-500: #c5a059;
    --c-gold-600: #ab7f3b;
    --c-gold-700: #8c612b;
    --c-gold-800: #744d27;
    --c-gold-900: #623f24;
    --c-gold-950: #392010;

    /* Theme Tokens - Light Mode */
    --theme-bg-body: #f8f9fa;
    --theme-bg-card: #ffffff;
    --theme-bg-card-subtle: #fcfcfc;
    --theme-border: rgba(0, 0, 0, 0.07);
    --theme-border-subtle: rgba(0, 0, 0, 0.04);
    --theme-text-main: #1e293b;
    --theme-text-muted: #64748b;
    --theme-gold-accent: #c5a059;
    --theme-gold-glow: rgba(197, 160, 89, 0.2);
    --theme-shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px -1px rgba(0, 0, 0, 0.04);
    --theme-shadow-hover: 0 10px 25px -5px rgba(0, 0, 0, 0.06), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --theme-radius-card: 0.75rem;
    --theme-radius-input: 0.5rem;
}

.dark {
    /* Theme Tokens - Dark Luxury Mode (Obsidian & Onyx) */
    --theme-bg-body: #0a0c10;
    --theme-bg-card: #12151c;
    --theme-bg-card-subtle: #171b24;
    --theme-border: rgba(255, 255, 255, 0.07);
    --theme-border-subtle: rgba(255, 255, 255, 0.04);
    --theme-text-main: #f8fafc;
    --theme-text-muted: #94a3b8;
    --theme-gold-accent: #dfba6b;
    --theme-gold-glow: rgba(223, 186, 107, 0.22);
    --theme-shadow-card: 0 4px 12px 0 rgba(0, 0, 0, 0.35);
    --theme-shadow-hover: 0 12px 28px -4px rgba(0, 0, 0, 0.5);
}

/* Base Body Styles */
body, html {
    font-family: var(--font-family-primary) !important;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --------------------------------------------------------------------------
   2. BRAND LOGO & HEADER STYLING
   -------------------------------------------------------------------------- */
.fi-logo {
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.fi-logo-dark {
    display: none !important;
}

.dark .fi-logo-dark {
    display: inline-flex !important;
}

.dark .fi-logo-light {
    display: none !important;
}

.fi-logo img,
img.fi-logo {
    height: 2.75rem !important;
    max-height: 2.75rem !important;
    width: auto !important;
    object-fit: contain !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

.fi-logo:hover {
    transform: scale(1.02);
}

/* --------------------------------------------------------------------------
   3. SIDEBAR NAVIGATION
   -------------------------------------------------------------------------- */
aside.fi-sidebar {
    background-color: var(--theme-bg-card) !important;
    border-inline-end: 1px solid var(--theme-border) !important;
    box-shadow: none !important;
    transition: all 0.25s ease;
}

.dark aside.fi-sidebar {
    background-color: #0d1017 !important;
    border-inline-end: 1px solid rgba(255, 255, 255, 0.06) !important;
}

/* Sidebar header area */
.fi-sidebar-header {
    border-bottom: 1px solid var(--theme-border-subtle) !important;
    padding-top: 1.25rem !important;
    padding-bottom: 1.25rem !important;
}

/* Navigation items */
.fi-sidebar-item-btn {
    border-radius: var(--theme-radius-input) !important;
    font-weight: 500 !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    margin-block: 0.15rem !important;
}

/* Active navigation item */
.fi-sidebar-item-btn.fi-active,
.fi-sidebar-item-active .fi-sidebar-item-btn,
.fi-sidebar-item[aria-current="page"] .fi-sidebar-item-btn {
    background: linear-gradient(90deg, rgba(197, 160, 89, 0.12) 0%, rgba(197, 160, 89, 0.04) 100%) !important;
    color: var(--c-gold-600) !important;
    font-weight: 600 !important;
    border-inline-start: 3px solid var(--theme-gold-accent) !important;
}

.dark .fi-sidebar-item-btn.fi-active,
.dark .fi-sidebar-item-active .fi-sidebar-item-btn,
.dark .fi-sidebar-item[aria-current="page"] .fi-sidebar-item-btn {
    background: linear-gradient(90deg, rgba(223, 186, 107, 0.15) 0%, rgba(223, 186, 107, 0.03) 100%) !important;
    color: var(--theme-gold-accent) !important;
    border-inline-start: 3px solid var(--theme-gold-accent) !important;
}

/* Sidebar Item Hover */
.fi-sidebar-item-btn:hover:not(.fi-active) {
    background-color: rgba(197, 160, 89, 0.06) !important;
    color: var(--c-gold-600) !important;
    transform: translateX(2px);
}

.dark .fi-sidebar-item-btn:hover:not(.fi-active) {
    background-color: rgba(223, 186, 107, 0.08) !important;
    color: var(--theme-gold-accent) !important;
}

/* Sidebar Group Label */
.fi-sidebar-group-label {
    text-transform: uppercase !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.075em !important;
    font-weight: 700 !important;
    color: var(--theme-text-muted) !important;
    opacity: 0.85;
    margin-top: 0.75rem !important;
}

/* --------------------------------------------------------------------------
   4. TOPBAR / HEADER
   -------------------------------------------------------------------------- */
header.fi-topbar {
    background-color: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid var(--theme-border) !important;
}

.dark header.fi-topbar {
    background-color: rgba(13, 16, 23, 0.85) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

/* Breadcrumbs */
.fi-breadcrumbs {
    font-weight: 500 !important;
}

.fi-breadcrumbs-item-label {
    transition: color 0.2s ease;
}

.fi-breadcrumbs-item-label:hover {
    color: var(--theme-gold-accent) !important;
}

/* --------------------------------------------------------------------------
   5. CARDS, SECTIONS & WIDGETS
   -------------------------------------------------------------------------- */
.fi-section,
.fi-wi,
.fi-card,
.fi-ta-ctn {
    border-radius: var(--theme-radius-card) !important;
    border: 1px solid var(--theme-border) !important;
    background-color: var(--theme-bg-card) !important;
    box-shadow: var(--theme-shadow-card) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.fi-section:hover,
.fi-wi:hover {
    box-shadow: var(--theme-shadow-hover) !important;
}

/* Stat Widget Cards */
.fi-wi-stats-overview-stat {
    border-radius: var(--theme-radius-card) !important;
    border: 1px solid var(--theme-border) !important;
    background-color: var(--theme-bg-card) !important;
    position: relative;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.fi-wi-stats-overview-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--c-gold-400), var(--c-gold-600));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.fi-wi-stats-overview-stat:hover {
    transform: translateY(-2px);
    box-shadow: var(--theme-shadow-hover) !important;
    border-color: rgba(197, 160, 89, 0.3) !important;
}

.fi-wi-stats-overview-stat:hover::before {
    opacity: 1;
}

.fi-wi-stats-overview-stat-value {
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
}

/* --------------------------------------------------------------------------
   6. TABLES & LISTS
   -------------------------------------------------------------------------- */
.fi-ta-header {
    border-bottom: 1px solid var(--theme-border) !important;
}

.fi-ta-header-cell {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: var(--theme-text-muted) !important;
    background-color: var(--theme-bg-card-subtle) !important;
}

.fi-ta-row {
    transition: background-color 0.15s ease;
}

.fi-ta-row:hover {
    background-color: rgba(197, 160, 89, 0.035) !important;
}

.dark .fi-ta-row:hover {
    background-color: rgba(223, 186, 107, 0.045) !important;
}

/* Table Pagination */
.fi-pagination-item-btn {
    border-radius: var(--theme-radius-input) !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}

.fi-pagination-item-btn.fi-active {
    background-color: var(--theme-gold-accent) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px var(--theme-gold-glow) !important;
}

/* --------------------------------------------------------------------------
   7. BUTTONS, ACTIONS & BADGES
   -------------------------------------------------------------------------- */
/* Primary Action Buttons */
.fi-btn-color-primary,
button.fi-btn-color-primary,
a.fi-btn-color-primary {
    background: linear-gradient(135deg, #c5a059 0%, #b3883a 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: var(--theme-radius-input) !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 6px rgba(197, 160, 89, 0.3) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.fi-btn-color-primary:hover,
button.fi-btn-color-primary:hover,
a.fi-btn-color-primary:hover {
    background: linear-gradient(135deg, #d2ad64 0%, #be9242 100%) !important;
    box-shadow: 0 4px 14px rgba(197, 160, 89, 0.45) !important;
    transform: translateY(-1px);
}

.fi-btn-color-primary:active,
button.fi-btn-color-primary:active,
a.fi-btn-color-primary:active {
    transform: translateY(0);
}

/* Secondary / Default Buttons */
.fi-btn-color-gray {
    border-radius: var(--theme-radius-input) !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}

/* Badges */
.fi-badge {
    border-radius: 9999px !important;
    font-weight: 600 !important;
    font-size: 0.725rem !important;
    padding-inline: 0.65rem !important;
    letter-spacing: 0.02em !important;
}

.fi-badge-color-primary {
    background-color: rgba(197, 160, 89, 0.15) !important;
    color: var(--c-gold-700) !important;
    border: 1px solid rgba(197, 160, 89, 0.3) !important;
}

.dark .fi-badge-color-primary {
    background-color: rgba(223, 186, 107, 0.18) !important;
    color: var(--c-gold-300) !important;
    border: 1px solid rgba(223, 186, 107, 0.3) !important;
}

/* --------------------------------------------------------------------------
   8. FORMS, INPUTS & MODALS
   -------------------------------------------------------------------------- */
/* Input controls */
.fi-input,
.fi-select-input,
.fi-ta-search-field input {
    border-radius: var(--theme-radius-input) !important;
    border-color: var(--theme-border) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.fi-input:focus,
.fi-select-input:focus,
.fi-ta-search-field input:focus {
    border-color: var(--theme-gold-accent) !important;
    box-shadow: 0 0 0 3px var(--theme-gold-glow) !important;
    outline: none !important;
}

/* Modals & Dialogs */
.fi-modal-window {
    border-radius: 1rem !important;
    border: 1px solid var(--theme-border) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

/* --------------------------------------------------------------------------
   9. AUTH / LOGIN PAGE SPECIAL STYLING
   -------------------------------------------------------------------------- */
.fi-simple-layout {
    background: radial-gradient(circle at 50% 0%, rgba(197, 160, 89, 0.08) 0%, transparent 60%),
                var(--theme-bg-body) !important;
    min-height: 100vh;
}

.dark .fi-simple-layout {
    background: radial-gradient(circle at 50% 10%, rgba(223, 186, 107, 0.08) 0%, transparent 55%),
                #080a0e !important;
}

.fi-simple-main-ctn .fi-simple-main {
    border-radius: 1rem !important;
    border: 1px solid var(--theme-border) !important;
    background-color: var(--theme-bg-card) !important;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: blur(16px);
    padding: 2rem !important;
    position: relative;
}

.dark .fi-simple-main-ctn .fi-simple-main {
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.fi-simple-main::after {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--theme-gold-accent), transparent);
}

/* --------------------------------------------------------------------------
   10. SCROLLBAR STYLING
   -------------------------------------------------------------------------- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(197, 160, 89, 0.2);
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(197, 160, 89, 0.4);
}
