/* ============================================
   E-FUEL SYSTEM - MODERN THEME
   Lake Energies Branding
   ============================================ */

:root {
    /* ============================================
       LAKE ENERGIES BRAND COLORS
       ============================================ */
    --primary-blue: #1B96D4;
    --primary-blue-dark: #1577AA;
    --primary-blue-light: #3DA6DC;
    --primary-blue-lighter: #5BB4E0;
    --accent-yellow: #FFD500;
    --accent-yellow-dark: #E6C000;
    --accent-yellow-light: #FFE34D;

    /* ============================================
       GRADIENTS USING BRAND COLORS
       ============================================ */
    --gradient-primary: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-yellow) 0%, var(--accent-yellow-light) 100%);
    --gradient-brand: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-yellow) 100%);

    /* ============================================
       ENHANCED GRAY SCALE
       ============================================ */
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;

    /* ============================================
       UI COLORS
       ============================================ */
    --sidebar-bg: #0F172A;
    --sidebar-hover: #1E293B;
    --text-primary: var(--gray-700);
    --text-secondary: var(--gray-500);
    --text-light: var(--gray-400);

    /* ============================================
       BACKGROUND COLORS
       ============================================ */
    --bg-main: var(--gray-50);
    --bg-white: #FFFFFF;
    --bg-light: var(--gray-100);

    /* ============================================
       STATUS COLORS
       ============================================ */
    --success: #10B981;
    --success-light: #D1FAE5;
    --success-hover: #059669;
    --warning: #F59E0B;
    --warning-light: #FEF3C7;
    --warning-hover: #D97706;
    --danger: #EF4444;
    --danger-light: #FEE2E2;
    --danger-hover: #DC2626;
    --info: #3B82F6;
    --info-light: #DBEAFE;
    --info-hover: #2563EB;

    /* ============================================
       BORDERS
       ============================================ */
    --border-light: var(--gray-100);
    --border-default: var(--gray-200);
    --border-medium: var(--gray-300);

    /* ============================================
       ENHANCED SHADOWS WITH BRAND COLOR TINTS
       ============================================ */
    --shadow-xs: 0 1px 2px 0 rgba(27, 150, 212, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(27, 150, 212, 0.08), 0 1px 2px 0 rgba(27, 150, 212, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(27, 150, 212, 0.12), 0 2px 4px -1px rgba(27, 150, 212, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(27, 150, 212, 0.14), 0 4px 6px -2px rgba(27, 150, 212, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(27, 150, 212, 0.18), 0 10px 10px -5px rgba(27, 150, 212, 0.08);
    --shadow-2xl: 0 25px 50px -12px rgba(27, 150, 212, 0.25);
    --shadow-primary: 0 4px 12px rgba(27, 150, 212, 0.15);
    --shadow-success: 0 4px 12px rgba(16, 185, 129, 0.15);

    /* ============================================
       TYPOGRAPHY SYSTEM
       ============================================ */
    /* Font Families */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-display: 'Poppins', 'Inter', sans-serif;
    --font-mono: 'Courier New', monospace;

    /* Font Sizes */
    --text-xs: 0.75rem;      /* 12px */
    --text-sm: 0.8125rem;    /* 13px */
    --text-base: 0.875rem;   /* 14px */
    --text-lg: 1rem;         /* 16px */
    --text-xl: 1.125rem;     /* 18px */
    --text-2xl: 1.5rem;      /* 24px */
    --text-3xl: 1.875rem;    /* 30px */
    --text-4xl: 2.25rem;     /* 36px */

    /* Font Weights */
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;

    /* Line Heights */
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;

    /* Letter Spacing */
    --tracking-tight: -0.025em;
    --tracking-normal: 0;
    --tracking-wide: 0.025em;
    --tracking-wider: 0.05em;
    --tracking-widest: 0.1em;

    /* ============================================
       SPACING SYSTEM
       ============================================ */
    --space-1: 0.25rem;   /* 4px */
    --space-2: 0.5rem;    /* 8px */
    --space-3: 0.75rem;   /* 12px */
    --space-4: 1rem;      /* 16px */
    --space-5: 1.25rem;   /* 20px */
    --space-6: 1.5rem;    /* 24px */
    --space-8: 2rem;      /* 32px */
    --space-10: 2.5rem;   /* 40px */
    --space-12: 3rem;     /* 48px */

    /* ============================================
       BORDER RADIUS
       ============================================ */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    --radius-full: 9999px;

    /* ============================================
       TRANSITIONS
       ============================================ */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);

    /* ============================================
       LAYOUT
       ============================================ */
    --sidebar-width: 280px;
}

/* ============================================
   GLOBAL STYLES
   ============================================ */
body {
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    color: var(--gray-600);
    background: var(--bg-main);
    line-height: var(--leading-normal);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
/* Page Titles */
h1, .h1 {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--gray-800);
    letter-spacing: var(--tracking-tight);
    line-height: var(--leading-tight);
}

/* Section Headings */
h2, .h2 {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--gray-700);
    letter-spacing: var(--tracking-tight);
}

/* Card Titles */
h3, .h3 {
    font-family: var(--font-primary);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--gray-700);
}

h4, .h4 {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--gray-700);
}

h5, .h5 {
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--gray-700);
}

h6, .h6 {
    font-family: var(--font-primary);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
}

/* Order Numbers / Codes */
.order-number,
.code {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
}

/* ============================================
   SIDEBAR STYLING
   ============================================ */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background: #047ecb;
    color: white;
    padding: 0;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
}

.sidebar-brand {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
   /* background: linear-gradient(135deg, rgba(27, 150, 212, 0.95) 0%, rgba(27, 150, 212, 0.85) 100%);*/
    position: relative;
	border-radius: 10px;
}

.sidebar-brand::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 3px;
    background: var(--gradient-brand);
    border-radius: 2px 2px 0 0;
}

.sidebar-brand img {
    max-width: 140px;
    height: auto;
   /* filter: brightness(0) invert(1);*/
    transition: transform var(--transition-base);
}

.sidebar-brand:hover img {
    transform: scale(1.05);
}

.sidebar-brand h4 {
    color: white;
    margin: 12px 0 4px;
    font-size: 17px;
    font-weight: var(--font-bold);
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

.sidebar-brand small {
    color: rgba(255, 255, 255, 0.75);
    font-size: 11px;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    font-weight: var(--font-medium);
}

.sidebar-nav {
    list-style: none;
    padding: 16px 12px;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 4px;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 14px;
    font-weight: var(--font-medium);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

/* Hover state with subtle gradient */
.sidebar-nav li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(27, 150, 212, 0.15) 0%, rgba(255, 213, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
    border-radius: var(--radius-md);
}

.sidebar-nav li a:hover::before {
    opacity: 1;
}

.sidebar-nav li a:hover {
    color: white;
    transform: translateX(4px);
    background: var(--sidebar-hover);
}

.sidebar-nav li a i {
    margin-right: 14px;
    font-size: 18px;
    width: 20px;
    text-align: center;
    transition: transform var(--transition-base);
}

.sidebar-nav li a:hover i {
    transform: scale(1.1);
}

/* Active state with gradient background */
.sidebar-nav li a.active {
    background: var(--gradient-primary);
    color: white;
    font-weight: var(--font-semibold);
    box-shadow: 0 4px 12px rgba(27, 150, 212, 0.3);
}

.sidebar-nav li a.active::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--accent-yellow);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 213, 0, 0.5);
}

/* Sidebar section header */
.sidebar-section-header {
    padding: 24px 16px 8px;
    margin-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-section-header span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    font-weight: var(--font-bold);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
}

/* Sidebar Submenu - Collapsible */
.sidebar-submenu-parent {
    position: relative;
}

.sidebar-submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.sidebar-submenu-toggle .submenu-arrow {
    margin-left: auto;
    font-size: 12px;
    transition: transform var(--transition-base);
}

.sidebar-submenu-toggle:not(.collapsed) .submenu-arrow {
    transform: rotate(180deg);
}

.sidebar-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.sidebar-submenu li {
    margin-bottom: 0;
}

.sidebar-submenu li a {
    padding: 10px 16px 10px 48px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    background: rgba(0, 0, 0, 0.15);
}

.sidebar-submenu li a:hover {
    color: white;
    background: rgba(27, 150, 212, 0.2);
    transform: translateX(2px);
}

.sidebar-submenu li a.active {
    background: rgba(27, 150, 212, 0.3);
    color: white;
    font-weight: var(--font-semibold);
    box-shadow: none;
    border-left: 3px solid var(--accent-yellow);
    padding-left: 45px;
}

.sidebar-submenu li a i {
    font-size: 16px;
    margin-right: 12px;
}

/* Enhanced scrollbar for sidebar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    background: var(--bg-main);
}

/* ============================================
   TOP BAR / HEADER
   ============================================ */
.top-bar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 16px 28px;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 990;
}

.top-bar h5 {
    margin: 0;
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--gray-900);
}

/* Breadcrumb */
.breadcrumb {
    margin: 4px 0 0;
    padding: 0;
    background: none;
    font-size: var(--text-xs);
    color: var(--gray-500);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '\F0142';
    font-family: 'bootstrap-icons';
    font-size: 10px;
    color: var(--gray-400);
}

/* User Menu */
.top-bar .user-menu {
    display: flex;
    align-items: center;
    gap: 16px;
}

.top-bar .dropdown-toggle {
    background: var(--bg-white);
    border: 1.5px solid var(--border-default);
    color: var(--gray-700);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-weight: var(--font-semibold);
    font-size: var(--text-sm);
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar .dropdown-toggle:hover {
    background: var(--gray-50);
    border-color: var(--border-medium);
}

.top-bar .dropdown-toggle i {
    color: var(--primary-blue);
    font-size: 18px;
}

/* User Avatar */
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-bold);
    font-size: var(--text-sm);
    color: white;
}

/* ============================================
   CONTENT AREA
   ============================================ */
.content-area {
    padding: 20px;
}

/* ============================================
   CARDS / STAT CARDS
   ============================================ */
.stat-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 24px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-slow);
    /*position: relative;*/
    overflow: hidden;
    margin-bottom: 20px;
}

/* Subtle gradient overlay */
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle at top right, rgba(27, 150, 212, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-medium);
}

.stat-card h3 {
    font-family: var(--font-display);
   /* font-size: var(--text-3xl);*/
    font-weight: var(--font-extrabold);
    color: var(--gray-900);
    margin: 0;
    line-height: 1;
}

.stat-card h6 {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    color: var(--gray-500);
    margin-bottom: 8px;
}

.stat-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    position: relative;
    transition: all var(--transition-slow);
    margin-right: 16px;
}

/* Icon glow effect */
.stat-card-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 16px;
    background: inherit;
    filter: blur(12px);
    opacity: 0.3;
    z-index: -1;
}

.stat-card:hover .stat-card-icon {
    transform: scale(1.05) rotate(5deg);
}

/* Icon color variants */
.stat-card-icon.bg-primary {
    background: linear-gradient(135deg, rgba(27, 150, 212, 0.15) 0%, rgba(61, 166, 220, 0.12) 100%) !important;
    color: var(--primary-blue) !important;
}

.stat-card-icon.bg-success {
    background: rgba(16, 185, 129, 0.12) !important;
    color: var(--success) !important;
}

.stat-card-icon.bg-warning {
    background: rgba(245, 158, 11, 0.12) !important;
    color: var(--warning) !important;
}

.stat-card-icon.bg-info {
    background: rgba(59, 130, 246, 0.12) !important;
    color: var(--info) !important;
}

.stat-card-icon.bg-danger {
    background: rgba(239, 68, 68, 0.12) !important;
    color: var(--danger) !important;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    line-height: 1.5;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.btn:hover::before {
    opacity: 1;
}

.btn:active {
    transform: scale(0.98);
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(27, 150, 212, 0.25);
}

.btn i {
    font-size: 14px;
}

/* Primary Button */
.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue) 100%);
    box-shadow: 0 6px 16px rgba(27, 150, 212, 0.25);
    transform: translateY(-1px);
}

/* Success Button */
.btn-success {
    background: var(--success);
    color: white;
    box-shadow: var(--shadow-success);
}

.btn-success:hover {
    background: var(--success-hover);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.25);
    transform: translateY(-1px);
}

/* Warning Button */
.btn-warning {
    background: var(--warning);
    color: white;
}

.btn-warning:hover {
    background: var(--warning-hover);
    transform: translateY(-1px);
}

/* Danger Button */
.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: var(--danger-hover);
    transform: translateY(-1px);
}

/* Secondary Button */
.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--border-default);
}

.btn-secondary:hover {
    background: var(--gray-200);
    border-color: var(--border-medium);
    transform: translateY(-1px);
}

/* Outline Primary Button */
.btn-outline-primary {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-outline-primary:hover {
    background: var(--primary-blue);
    color: white;
}

/* Button Sizes */
.btn-sm {
    padding: 6px 14px;
    font-size: var(--text-xs);
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 14px 28px;
    font-size: var(--text-base);
    border-radius: var(--radius-lg);
}

/* Icon Buttons */
.btn-icon {
    padding: 10px;
    width: 40px;
    height: 40px;
}

.btn-icon.btn-sm {
    width: 32px;
    height: 32px;
    padding: 6px;
}

/* ============================================
   FORMS
   ============================================ */
.form-label {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--gray-700);
    margin-bottom: 8px;
    display: block;
}

.form-label .text-danger {
    color: var(--danger);
    margin-left: 2px;
}

.form-control,
.form-select {
    width: 100%;
    padding: 10px 14px;
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    color: var(--gray-700);
    background: var(--bg-white);
    border: 1.5px solid var(--border-default);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.form-control:hover,
.form-select:hover {
    border-color: var(--border-medium);
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(27, 150, 212, 0.1);
    background: white;
}

.form-control::placeholder {
    color: var(--gray-400);
}

/* Validation States */
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: var(--danger);
}

.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.invalid-feedback {
    display: block;
    margin-top: 6px;
    font-size: var(--text-xs);
    color: var(--danger);
    font-weight: var(--font-medium);
}

.form-control.is-valid,
.form-select.is-valid {
    border-color: var(--success);
}

/* Searchable Select (Choices.js) - visually matches .form-select so
   search-enabled dropdowns look consistent with the rest of the app */
.choices {
    margin-bottom: 0;
    font-size: var(--text-sm);
    /* Choices.js's own default stylesheet sets overflow:hidden on this wrapper
       (sized to the closed control's height) - since the dropdown panel is an
       absolutely-positioned child of this element, that default clips the
       panel to roughly one row tall the moment it opens. There is no reason to
       keep it clipped here: the panel is display:none while closed anyway, so
       overriding this to visible only affects it while actually open. */
    overflow: visible;
}

.choices__inner {
    width: 100%;
    padding: 8px 14px 6px;
    min-height: unset;
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    color: var(--gray-700);
    background: var(--bg-white);
    border: 1.5px solid var(--border-default);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.choices:hover .choices__inner {
    border-color: var(--border-medium);
}

.choices.is-focused .choices__inner,
.choices.is-open .choices__inner {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(27, 150, 212, 0.1);
    background: white;
}

.choices__list--single {
    padding: 2px 16px 2px 2px;
}

.choices__list--dropdown,
.choices__list[aria-expanded] {
    border-color: var(--border-default);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    /* High enough to paint above every card/table/modal on the page - see the
       ANTI-CLIPPING FIX script in main.php for the other half of this (making
       sure a card/table's own overflow:hidden doesn't clip the panel before
       z-index even comes into play) */
    z-index: 9999;
}

.choices__list--dropdown .choices__input {
    border-bottom: 1px solid var(--border-default);
    font-size: var(--text-sm);
    margin-bottom: 4px;
}

.choices__list--dropdown .choices__item--selectable.is-highlighted,
.choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
    background-color: rgba(27, 150, 212, 0.1);
}

.choices.is-disabled .choices__inner {
    background-color: var(--gray-100);
    opacity: 0.75;
}

/* Mirrors .form-select.is-invalid - Choices hides the native <select>, so
   the browser's built-in :invalid styling can no longer reach it; this
   class is applied by the required-field check in main.php instead */
.choices.is-invalid-choices .choices__inner {
    border-color: var(--danger);
}

.choices.is-invalid-choices.is-focused .choices__inner,
.choices.is-invalid-choices.is-open .choices__inner {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Checkboxes & Radios */
.form-check-input {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-medium);
    border-radius: 6px;
    transition: all var(--transition-base);
}

.form-check-input:checked {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(27, 150, 212, 0.1);
}

.form-check-label {
    font-size: var(--text-sm);
    color: var(--gray-700);
    margin-left: 8px;
    cursor: pointer;
}

/* ============================================
   TABLES
   ============================================ */
.table-responsive {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

/* Table Header */
.table thead {
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--gray-100) 100%);
    border-bottom: 2px solid var(--border-default);
}

.table thead th {
    padding: 14px 16px;
    font-family: var(--font-primary);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    color: var(--gray-600);
    text-align: left;
    white-space: nowrap;
    border-bottom: none;
}

.table thead th:first-child {
    padding-left: 24px;
}

.table thead th:last-child {
    padding-right: 24px;
}

/* Table Body */
.table tbody tr {
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition-base);
}

.table tbody tr:last-child {
    border-bottom: none;
}

.table tbody tr:hover {
    background: var(--gray-50);
}

.table tbody td {
    padding: 16px;
    font-size: var(--text-sm);
    color: var(--gray-700);
    vertical-align: middle;
}

.table tbody td:first-child {
    padding-left: 24px;
    font-weight: var(--font-semibold);
    color: var(--gray-900);
}

.table tbody td:last-child {
    padding-right: 24px;
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    font-family: var(--font-primary);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    border-radius: 6px;
    line-height: 1;
}

.badge i {
    font-size: 12px;
}

.badge.bg-success {
    background: var(--success-light) !important;
    color: var(--success) !important;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge.bg-warning {
    background: var(--warning-light) !important;
    color: var(--warning-hover) !important;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge.bg-danger {
    background: var(--danger-light) !important;
    color: var(--danger) !important;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge.bg-info {
    background: var(--info-light) !important;
    color: var(--info) !important;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge.bg-primary {
    background: rgba(27, 150, 212, 0.1) !important;
    color: var(--primary-blue) !important;
    border: 1px solid rgba(27, 150, 212, 0.2);
}

.badge.bg-secondary {
    background: var(--gray-100) !important;
    color: var(--gray-600) !important;
    border: 1px solid var(--border-default);
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    border: 1px solid;
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    position: relative;
    display: flex;
    align-items: start;
    gap: 12px;
}

.alert i {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.alert-success {
    background: var(--success-light);
    border-color: rgba(16, 185, 129, 0.2);
    color: #065F46;
}

.alert-success i {
    color: var(--success);
}

.alert-danger {
    background: var(--danger-light);
    border-color: rgba(239, 68, 68, 0.2);
    color: #991B1B;
}

.alert-danger i {
    color: var(--danger);
}

.alert-warning {
    background: var(--warning-light);
    border-color: rgba(245, 158, 11, 0.2);
    color: #92400E;
}

.alert-warning i {
    color: var(--warning);
}

.alert-info {
    background: var(--info-light);
    border-color: rgba(59, 130, 246, 0.2);
    color: #1E40AF;
}

.alert-info i {
    color: var(--info);
}

/* Dismissible Alerts */
.alert-dismissible {
    padding-right: 48px;
}

.alert .btn-close {
    position: absolute;
    right: 16px;
    /*top: 16px;*/
    opacity: 0.5;
    transition: opacity var(--transition-base);
}

.alert .btn-close:hover {
    opacity: 1;
}

/* ============================================
   DROPDOWNS
   ============================================ */
.dropdown-menu {
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 8px;
    margin-top: 8px;
    min-width: 200px;
    background: var(--bg-white);
}

.dropdown-item {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    color: var(--gray-700);
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: 12px;
}

.dropdown-item:hover {
    background: var(--gray-50);
    color: var(--gray-900);
}

.dropdown-item i {
    font-size: 16px;
    color: var(--gray-500);
    width: 20px;
    text-align: center;
}

.dropdown-item:hover i {
    color: var(--primary-blue);
}

.dropdown-item.text-danger:hover {
    background: var(--danger-light);
    color: var(--danger);
}

.dropdown-item.text-danger:hover i {
    color: var(--danger);
}

.dropdown-divider {
    border-top: 1px solid var(--border-light);
    margin: 8px 0;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-white);
    border-top: 1px solid var(--border-light);
    padding: 24px 28px;
    margin-top: 60px;
    text-align: center;
}

.footer p {
    margin: 0;
    color: var(--gray-500);
    font-size: var(--text-xs);
}

.footer strong {
    color: var(--gray-700);
    font-weight: var(--font-semibold);
}

.footer a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: var(--font-semibold);
    transition: color var(--transition-base);
}

.footer a:hover {
    color: var(--primary-blue-dark);
    text-decoration: underline;
}

/* ============================================
   PAGE HEADERS
   ============================================ */
.page-header {
    margin-bottom: 24px;
}

.page-header h2 {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--gray-900);
    margin: 0;
    letter-spacing: var(--tracking-tight);
}

.page-header p {
    color: var(--gray-500);
    margin: 6px 0 0 0;
    font-size: var(--text-sm);
}

/* ============================================
   EMPTY STATES
   ============================================ */
.empty-state {
    text-align: center;
    padding: 60px 30px;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(27, 150, 212, 0.08) 0%, rgba(61, 166, 220, 0.08) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state-icon i {
    font-size: 36px;
    color: var(--primary-blue);
}

.empty-state h5 {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--gray-900);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--gray-500);
    font-size: var(--text-sm);
    margin-bottom: 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   AUTH PAGES
   ============================================ */
.auth-container {
   /* background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 50%, var(--gray-800) 100%);*/
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

/* Animated background pattern */
.auth-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 213, 0, 0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-50px, 50px) rotate(180deg); }
}

.auth-card {
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    overflow: hidden;
    max-width: 480px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.auth-header {
    background: var(--gradient-primary);
    padding: 40px 36px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Pattern overlay */
.auth-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.auth-header img {
    max-width: 160px;
    margin-bottom: 20px;
   /* filter: brightness(0) invert(1);*/
    position: relative;
    z-index: 1;
	border-radius:10px;
}

.auth-header h2 {
    color: white;
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-weight: var(--font-bold);
    font-size: var(--text-2xl);
    position: relative;
    z-index: 1;
}

.auth-header p {
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    font-size: var(--text-sm);
    position: relative;
    z-index: 1;
}

.auth-body {
    padding: 36px;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-primary {
    color: var(--primary-blue) !important;
}

.text-success {
    color: var(--success) !important;
}

.text-warning {
    color: var(--warning) !important;
}

.text-danger {
    color: var(--danger) !important;
}

.bg-primary-light {
    background: rgba(27, 150, 212, 0.1) !important;
}

.border-primary {
    border-color: var(--primary-blue) !important;
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}
