/* ============================================
   TRUE GLASSMORPHISM UI
   Vibrant gradient background, glass cards with blur
   ============================================ */

/* ============================================
   CSS VARIABLES - Glassmorphism Design System
   ============================================ */
:root {
    /* Vibrant Gradient Background */
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #6B8DD6 100%);
    --bg-gradient-alt: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    
    /* Glass Card Colors - Semi-transparent with blur */
    --glass-card: rgba(255, 255, 255, 0.15);
    --glass-card-hover: rgba(255, 255, 255, 0.2);
    --glass-card-dark: rgba(17, 25, 40, 0.75);
    --glass-card-dark-hover: rgba(17, 25, 40, 0.85);
    
    /* Header/Sidebar - Darker glass */
    --header-glass: rgba(17, 25, 40, 0.85);
    --sidebar-glass: rgba(17, 25, 40, 0.9);
    
    /* Accent Colors */
    --accent-primary: #667eea;
    --accent-secondary: #764ba2;
    --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --accent-success: #10b981;
    --accent-warning: #f59e0b;
    --accent-danger: #ef4444;
    --accent-info: #3b82f6;
    --accent-cyan: #00f2fe;
    
    /* Text Colors */
    --text-white: #ffffff;
    --text-light: rgba(255, 255, 255, 0.9);
    --text-muted: rgba(255, 255, 255, 0.6);
    --text-dark: #1a202c;
    
    /* Glassmorphism Properties */
    --glass-blur: 20px;
    --glass-border: 1px solid rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    
    /* Border Radius */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* ============================================
   VIBRANT GRADIENT BACKGROUND
   ============================================ */
html {
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #6B8DD6 100%) !important;
    background-attachment: fixed !important;
    min-height: 100vh;
    color: var(--text-white);
    overflow-x: hidden;
}

/* Animated background orbs */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(100, 200, 255, 0.15) 0%, transparent 40%);
    animation: floatOrbs 30s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes floatOrbs {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -50px) rotate(120deg); }
    66% { transform: translate(-20px, 30px) rotate(240deg); }
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.08) 0%, transparent 70%);
    z-index: -1;
    animation: floatBg 20s ease-in-out infinite;
}

body::after {
    content: '';
    position: fixed;
    bottom: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.06) 0%, transparent 70%);
    z-index: -1;
    animation: floatBg 25s ease-in-out infinite reverse;
}

@keyframes floatBg {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(5deg); }
    66% { transform: translate(-20px, 20px) rotate(-3deg); }
}

/* Typography */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Inter', 'Segoe UI', sans-serif !important;
    font-weight: 600;
    color: var(--text-dark);
}

a {
    color: rgba(255, 255, 255, 0.9);
    transition: color var(--transition-fast);
}

a:hover, a:focus {
    color: #ffffff;
    text-decoration: none;
}

/* ============================================
   MAIN HEADER - Dark Glass Effect (Matching Mobile)
   ============================================ */
.main-header,
.navbar.default-layout,
.navbar {
    background: linear-gradient(180deg, rgba(17, 25, 40, 0.95) 0%, rgba(20, 30, 48, 0.9) 100%) !important;
    backdrop-filter: blur(24px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4),
                0 2px 15px rgba(0, 212, 255, 0.08) !important;
}

.main-header .navbar {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.main-header .logo {
    background: transparent !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 15px !important;
    height: 60px !important;
}

.main-header .logo:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}

/* Brand Container Styling */
.brand-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo {
    height: 36px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4),
                0 0 20px rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5),
                 0 0 20px rgba(102, 126, 234, 0.3);
}

.brand-slogan {
    font-size: 0.55rem;
    font-weight: 600;
    color: #00d4ff;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
}

/* Mobile Header - Complete Redesign */
@media (max-width: 991px) {
    .main-header {
        min-height: auto !important;
        max-height: none !important;
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    /* Hide burger menu and settings icons on mobile */
    .main-header .sidebar-toggle,
    .main-header .navbar .navbar-nav > li > a.control-sidebar-toggle,
    .main-header .navbar .navbar-nav > li:last-child > a[data-toggle="control-sidebar"] {
        display: none !important;
    }
    
    .main-header .logo {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
        height: auto !important;
        padding: 25px 30px !important;
        order: 1;
        border-bottom: 1px solid rgba(0, 212, 255, 0.3) !important;
        box-shadow: 0 2px 15px rgba(0, 212, 255, 0.1) !important;
    }
    
    .main-header .navbar {
        min-height: auto !important;
        order: 2;
        display: flex !important;
        width: 100% !important;
        padding: 12px 20px !important;
        background: rgba(0, 0, 0, 0.2) !important;
    }
    
    .brand-container {
        justify-content: center;
        gap: 18px;
    }
    
    .brand-logo {
        height: 65px !important;
        width: auto;
        border-radius: 14px !important;
    }
    
    .brand-name {
        font-size: 1.5rem !important;
        font-weight: 700 !important;
        letter-spacing: 0.5px !important;
    }
    
    .brand-slogan {
        font-size: 0.75rem !important;
        letter-spacing: 2px !important;
        margin-top: 2px !important;
    }
    
    /* Navbar content - ID left, Profile right */
    .navbar-custom-menu {
        width: 100% !important;
        float: none !important;
        margin: 0 !important;
    }
    
    .navbar-custom-menu .navbar-nav {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-direction: row !important;
        margin: 0 !important;
    }
    
    .navbar-custom-menu .navbar-nav > li {
        float: none !important;
        display: flex !important;
        align-items: center !important;
    }
    
    /* Member ID - ensure visibility */
    .navbar-custom-menu .navbar-nav > li:first-child {
        order: 1;
    }
    
    .navbar-custom-menu .navbar-nav > li:first-child a span {
        font-size: 1rem !important;
        font-weight: 600 !important;
    }
    
    /* Profile dropdown - align right */
    .navbar-custom-menu .navbar-nav > li.user-menu {
        order: 2;
        margin-left: auto !important;
    }
}

@media (max-width: 480px) {
    .main-header .logo {
        padding: 12px 15px !important;
    }
    
    .brand-logo {
        height: 45px !important;
    }
    
    .brand-name {
        font-size: 1.1rem !important;
    }
    
    .brand-slogan {
        font-size: 0.55rem !important;
        letter-spacing: 1px !important;
    }
    
    .brand-container {
        gap: 10px;
    }
    
    .main-header .navbar {
        padding: 8px 15px !important;
    }
}

.navbar-brand-wrapper {
    background: transparent !important;
}

.main-header .sidebar-toggle {
    color: #ffffff !important;
    background: transparent !important;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.main-header .sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

/* Navbar Items - White text for dark header */
.navbar-nav > li > a {
    color: #ffffff !important;
    transition: all var(--transition-fast);
    border-radius: var(--radius-sm);
    margin: 0 2px;
}

.navbar-nav > li > a:hover,
.navbar-nav > li > a:focus {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}

/* Dropdown Menus in Navbar - Dark Glassmorphism */
.navbar-nav .dropdown-menu {
    background: rgba(17, 25, 40, 0.95) !important;
    backdrop-filter: blur(24px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
    border: 1px solid rgba(102, 126, 234, 0.3) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 
                0 0 30px rgba(102, 126, 234, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    padding: 8px !important;
    margin-top: 10px !important;
    min-width: 200px !important;
    overflow: hidden;
}

.navbar-nav .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 22px;
    width: 12px;
    height: 12px;
    background: rgba(17, 25, 40, 0.95);
    transform: rotate(45deg);
    border-left: 1px solid rgba(102, 126, 234, 0.3);
    border-top: 1px solid rgba(102, 126, 234, 0.3);
}

.dropdown-menu > li > a,
.dropdown-item {
    color: rgba(255, 255, 255, 0.85) !important;
    border-radius: 10px !important;
    padding: 10px 16px !important;
    transition: all 0.3s ease !important;
    font-size: 0.9rem !important;
}

.dropdown-menu > li > a:hover,
.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.25) 0%, rgba(118, 75, 162, 0.2) 100%) !important;
    color: #ffffff !important;
    transform: translateX(4px);
}

.dropdown-header {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    padding: 8px 16px !important;
}

.dropdown-divider {
    border-color: rgba(255, 255, 255, 0.1) !important;
    margin: 8px 0 !important;
}

/* ============================================
   USER PROFILE MENU - Dark Glassmorphism
   ============================================ */
.user-menu > .dropdown-menu {
    width: 280px !important;
    padding: 0 !important;
    border-radius: 20px !important;
}

.user-menu > .dropdown-menu > .user-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.4) 0%, rgba(118, 75, 162, 0.3) 100%) !important;
    padding: 25px 20px !important;
    text-align: center;
    border-radius: 20px 20px 0 0 !important;
    position: relative;
    overflow: hidden;
}

.user-menu > .dropdown-menu > .user-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.user-menu > .dropdown-menu > .user-header > img {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    border: 3px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3),
                0 0 20px rgba(102, 126, 234, 0.3) !important;
    object-fit: cover;
    background: rgba(17, 25, 40, 0.8);
}

.user-menu > .dropdown-menu > .user-header > p {
    color: #ffffff !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    margin: 12px 0 4px 0 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.user-menu > .dropdown-menu > .user-header > p > small {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.75rem !important;
    display: block;
    margin-top: 4px;
}

.user-menu > .dropdown-menu > .user-footer {
    background: rgba(0, 0, 0, 0.2) !important;
    padding: 12px 15px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0 0 20px 20px !important;
    display: flex;
    justify-content: space-between;
}

.user-menu > .dropdown-menu > .user-footer .btn {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 10px !important;
    padding: 8px 18px !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    text-transform: none !important;
}

.user-menu > .dropdown-menu > .user-footer .btn:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.4) 0%, rgba(118, 75, 162, 0.3) 100%) !important;
    border-color: rgba(102, 126, 234, 0.5) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
}

/* User Image in Navbar - Glowing Ring */
.navbar-nav > .user-menu > a > .user-image {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    border: 2px solid rgba(102, 126, 234, 0.5) !important;
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.3) !important;
    transition: all 0.3s ease !important;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
}

.navbar-nav > .user-menu:hover > a > .user-image {
    border-color: rgba(102, 126, 234, 0.8) !important;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5) !important;
    transform: scale(1.05);
}

/* Default Avatar Icon (when no image) */
.user-image[src=""],
.user-image[src*="placeholder"],
.user-image[src*="default"],
.user-image:not([src]),
.img-circle[src=""],
.img-circle[src*="placeholder"],
.img-circle[src*="default"],
.img-circle:not([src]) {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.6) 0%, rgba(118, 75, 162, 0.5) 100%) !important;
    position: relative;
}

/* Modern Default Avatar - Navbar (span element) */
span.user-image.default-avatar {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid rgba(102, 126, 234, 0.5) !important;
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.3) !important;
    transition: all 0.3s ease !important;
    vertical-align: middle;
    margin-right: 5px;
}

span.user-image.default-avatar i {
    font-size: 1.1rem !important;
    color: rgba(255, 255, 255, 0.95) !important;
    line-height: 1;
}

.navbar-nav > .user-menu:hover span.user-image.default-avatar {
    border-color: rgba(102, 126, 234, 0.8) !important;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5) !important;
    transform: scale(1.05);
}

/* Modern Default Avatar - Dropdown Large (in user-header) */
span.default-avatar-large {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 3px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3),
                0 0 20px rgba(102, 126, 234, 0.3) !important;
    margin: 0 auto;
}

span.default-avatar-large i {
    font-size: 2.5rem !important;
    color: rgba(255, 255, 255, 0.95) !important;
    line-height: 1;
}

/* Welcome Text */
.welcome-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700 !important;
}

/* ============================================
   SIDEBAR / LEFT MENU - Enhanced Glassmorphism
   ============================================ */
.main-sidebar,
.left-side {
    background: linear-gradient(180deg, rgba(17, 25, 40, 0.95) 0%, rgba(25, 35, 55, 0.92) 100%) !important;
    backdrop-filter: blur(24px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
    border-right: 1px solid rgba(102, 126, 234, 0.3) !important;
    box-shadow: 4px 0 40px rgba(102, 126, 234, 0.15), 
                inset -1px 0 0 rgba(255, 255, 255, 0.05) !important;
}

.sidebar {
    background: transparent !important;
    padding: 10px 0 !important;
}

.sidebar-offcanvas,
.sidebar.sidebar-offcanvas {
    background: linear-gradient(180deg, rgba(17, 25, 40, 0.98) 0%, rgba(25, 35, 55, 0.95) 100%) !important;
    backdrop-filter: blur(24px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
}

/* Sidebar Menu Items - Glass effect */
.sidebar-menu > li,
.sidebar .nav-item {
    margin: 4px 10px;
}

.sidebar-menu > li > a,
.sidebar .nav-link {
    background: rgba(255, 255, 255, 0.03) !important;
    color: rgba(255, 255, 255, 0.8) !important;
    border-radius: 10px !important;
    padding: 12px 14px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-weight: 500 !important;
    font-size: 0.85rem !important;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    backdrop-filter: blur(8px) !important;
}

/* Glow effect on hover/active */
.sidebar-menu > li:hover > a,
.sidebar-menu > li.active > a,
.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.15) 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(102, 126, 234, 0.4) !important;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    transform: translateX(4px);
}

/* Left accent bar - glowing */
.sidebar-menu > li > a::before,
.sidebar .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    height: 70%;
    width: 3px;
    background: linear-gradient(180deg, #4a9eff 0%, #667eea 50%, #764ba2 100%);
    transform: scaleY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 3px 3px 0;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.sidebar-menu > li:hover > a::before,
.sidebar-menu > li.active > a::before,
.sidebar .nav-link:hover::before,
.sidebar .nav-link.active::before {
    transform: scaleY(1);
}

/* Menu Icons - Glowing effect */
.sidebar-menu > li > a > .fa,
.sidebar-menu > li > a > .mdi,
.sidebar .nav-link .menu-icon,
.sidebar .nav-link i {
    margin-right: 12px !important;
    font-size: 1.1rem !important;
    width: 24px !important;
    text-align: center;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.6) !important;
}

.sidebar-menu > li:hover > a > .fa,
.sidebar-menu > li:hover > a > .mdi,
.sidebar .nav-link:hover .menu-icon,
.sidebar .nav-link:hover i {
    transform: scale(1.1);
    color: #4a9eff !important;
    text-shadow: 0 0 12px rgba(74, 158, 255, 0.5);
}

.sidebar-menu > li.active > a > .fa,
.sidebar-menu > li.active > a > .mdi {
    color: #4a9eff !important;
    text-shadow: 0 0 12px rgba(74, 158, 255, 0.5);
}

/* Menu Categories - Dark theme headers */
.sidebar-menu li.header,
.sidebar .nav-category {
    color: rgba(255, 255, 255, 0.5) !important;
    background: transparent !important;
    font-size: 0.65rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    padding: 15px 12px 6px !important;
    margin: 10px 8px 4px !important;
    border-radius: 0 !important;
}

/* Submenu / Treeview - Matching Sidebar Dark Glass */
.treeview-menu,
.sidebar .collapse .nav,
.sidebar .sub-menu {
    background: rgba(12, 18, 30, 0.95) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-radius: 12px !important;
    margin: 6px 8px !important;
    padding: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03),
                0 4px 16px rgba(0, 0, 0, 0.4) !important;
}

.treeview-menu > li > a,
.sidebar .sub-menu .nav-link {
    padding: 10px 14px 10px 16px !important;
    font-size: 0.85rem !important;
    border-radius: 8px !important;
    margin: 3px 0 !important;
    color: #ffffff !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-weight: 400 !important;
}

/* Vibrant gradient hover - Cyan to Magenta */
.treeview-menu > li > a:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(255, 0, 128, 0.15) 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(0, 212, 255, 0.4) !important;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    transform: translateX(6px);
}

/* Active state - Orange to Pink glow */
.treeview-menu > li.active > a {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.25) 0%, rgba(255, 0, 128, 0.2) 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 107, 53, 0.5) !important;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

.treeview-menu > li > a > .fa,
.treeview-menu > li > a > .mdi,
.treeview-menu > li > a > i {
    color: rgba(255, 255, 255, 0.6) !important;
    margin-right: 12px !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
}

/* Icon colors on hover - Cyan glow */
.treeview-menu > li > a:hover > .fa,
.treeview-menu > li > a:hover > .mdi,
.treeview-menu > li > a:hover > i {
    color: #00d4ff !important;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
    transform: scale(1.1);
}

/* Icon colors on active - Orange glow */
.treeview-menu > li.active > a > .fa,
.treeview-menu > li.active > a > .mdi,
.treeview-menu > li.active > a > i {
    color: #ff6b35 !important;
    text-shadow: 0 0 15px rgba(255, 107, 53, 0.6);
}

/* ============================================
   DASHBOARD STATISTIC CARDS - Glassmorphism
   ============================================ */
.dash-card {
    background: linear-gradient(135deg, rgba(30, 40, 60, 0.9) 0%, rgba(20, 30, 50, 0.85) 100%) !important;
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
    border: 1px solid rgba(0, 212, 255, 0.35) !important;
    border-radius: 16px !important;
    padding: 20px !important;
    margin-bottom: 20px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                0 0 20px rgba(0, 212, 255, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
    position: relative;
    overflow: hidden;
}

.dash-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00d4ff, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dash-card:hover {
    transform: translateY(-5px) !important;
    border-color: rgba(0, 212, 255, 0.4) !important;
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.15),
                0 8px 32px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

.dash-card:hover::before {
    opacity: 1;
}

.dash-card .card-body {
    padding: 0 !important;
    background: transparent !important;
}

.dash-card .card-title {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    margin-bottom: 15px !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dash-card .card-title i {
    color: #00d4ff !important;
    font-size: 1.2rem !important;
}

.dash-card .card-description {
    color: #ffffff !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
}

.dash-card .dollar-box {
    background: linear-gradient(135deg, #00d4ff 0%, #667eea 100%) !important;
    color: #ffffff !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.8rem !important;
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3) !important;
}

.dash-card .card-icon-large {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    opacity: 0.15 !important;
    font-size: 3.5rem !important;
    color: #00d4ff !important;
}

/* Fade in animation */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Link styling for cards */
a:has(.dash-card) {
    text-decoration: none !important;
}

/* ============================================
   CONTENT WRAPPER
   ============================================ */
.content-wrapper,
.right-side {
    background: transparent !important;
    min-height: calc(100vh - 60px);
}

/* Content Wrapper - Main area styling */
.content-wrapper,
.right-side {
    background: transparent !important;
    min-height: 100vh;
}

.content {
    padding: 20px !important;
}

/* ============================================
   PAGE HEADING - Modern Premium Style
   ============================================ */
.content-header {
    padding: 0 !important;
    margin: 10px 15px 20px !important;
    background: linear-gradient(135deg, rgba(17, 25, 40, 0.9) 0%, rgba(25, 35, 55, 0.85) 100%) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(0, 212, 255, 0.15) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                0 0 20px rgba(0, 212, 255, 0.05) !important;
    position: relative;
    overflow: hidden;
}

/* Decorative left accent bar */
.content-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #00d4ff 0%, #667eea 50%, #ff6b35 100%);
    border-radius: 16px 0 0 16px;
}

/* Inner container for content */
.content-header > h1 {
    padding: 20px 24px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.content-header > h1 {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #ffffff 0%, #00d4ff 50%, #667eea 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    letter-spacing: 0.5px !important;
    text-shadow: none !important;
}

.content-header > h1 > small {
    background: transparent !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.6) !important;
    font-weight: 400 !important;
    font-size: 0.85rem !important;
    margin-left: 8px !important;
}

/* Breadcrumb - Premium Glass Pills */
.content-header .breadcrumb {
    background: rgba(0, 0, 0, 0.25) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 0 0 16px 16px !important;
    padding: 12px 24px !important;
    margin: 0 !important;
    display: flex !important;
    gap: 8px;
}

.breadcrumb > li {
    display: inline-flex !important;
    align-items: center !important;
}

.breadcrumb > li > a {
    color: rgba(255, 255, 255, 0.7) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    padding: 5px 12px !important;
    border-radius: 20px !important;
    font-size: 0.8rem !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.breadcrumb > li > a:hover {
    background: rgba(0, 212, 255, 0.2) !important;
    color: #00d4ff !important;
    transform: translateY(-1px);
}

.breadcrumb > li.active {
    color: #00d4ff !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
}

.breadcrumb > li + li::before {
    content: '›' !important;
    color: rgba(255, 255, 255, 0.4) !important;
    padding: 0 8px !important;
    font-size: 1.1rem !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .content-header {
        margin: 0 10px 15px !important;
        border-radius: 12px !important;
    }
    
    .content-header > h1 {
        font-size: 1.15rem !important;
        padding: 15px 18px !important;
    }
    
    .content-header > h1 > small {
        display: none !important;
    }
    
    .breadcrumb {
        padding: 10px 18px !important;
        flex-wrap: wrap;
    }
    
    .breadcrumb > li > a {
        padding: 4px 10px !important;
        font-size: 0.75rem !important;
    }
}

.breadcrumb > .active {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* ============================================
   BOXES / CARDS - True Glass Effect
   ============================================ */
.box,
.card,
.info-box,
.callout {
    background: rgba(17, 25, 40, 0.75) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.125) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37) !important;
    margin-bottom: 1.5rem !important;
    overflow: hidden;
    transition: all 0.3s ease;
}

.box:hover,
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(31, 38, 135, 0.5) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Box Header */
.box-header,
.card-header {
    background: rgba(255, 255, 255, 0.05) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 16px 20px !important;
    color: #ffffff !important;
}

.box-title,
.card-title {
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    margin: 0 !important;
}

.box-title i,
.card-title i {
    margin-right: 10px;
    color: var(--accent-primary);
}

/* Box Body */
.box-body,
.card-body {
    padding: 20px !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Box Footer */
.box-footer,
.card-footer {
    background: rgba(0, 0, 0, 0.2) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 14px 20px !important;
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Box Variants - All use dark grey base */
.box-primary .box-header,
.box-info .box-header,
.box-success .box-header,
.box-warning .box-header,
.box-danger .box-header {
    background: rgba(255, 255, 255, 0.05) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.box-primary,
.box-info,
.box-success,
.box-warning,
.box-danger {
    border-top: 4px solid var(--accent-primary) !important;
}

.box-success { border-top-color: var(--accent-success) !important; }
.box-warning { border-top-color: var(--accent-warning) !important; }
.box-danger { border-top-color: var(--accent-danger) !important; }
.box-info { border-top-color: var(--accent-info) !important; }

/* ============================================
   SMALL BOXES / QUICK LINKS - Dark Grey
   ============================================ */
.small-box {
    background: var(--card-dark) !important;
    backdrop-filter: blur(var(--glass-blur)) !important;
    -webkit-backdrop-filter: blur(var(--glass-blur)) !important;
    border: var(--glass-border-dark) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--glass-shadow-dark) !important;
    margin-bottom: var(--spacing-md) !important;
    overflow: hidden;
    position: relative;
    transition: all var(--transition-normal);
}

.small-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
}

.small-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35) !important;
}

.small-box .inner {
    padding: 16px 20px !important;
}

.small-box .inner h3 {
    color: var(--text-light) !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    margin: 0 0 4px !important;
}

.small-box .inner p {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.9rem !important;
    margin: 0 !important;
}

.small-box .icon {
    position: absolute !important;
    right: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 4rem !important;
    color: rgba(255, 255, 255, 0.12) !important;
    transition: all var(--transition-normal);
}

.small-box:hover .icon {
    font-size: 4.5rem !important;
    color: rgba(255, 255, 255, 0.18) !important;
}

.small-box .icon > i {
    font-size: inherit !important;
}

.small-box-footer {
    background: rgba(0, 0, 0, 0.2) !important;
    color: var(--text-light) !important;
    padding: 10px 20px !important;
    display: block;
    text-decoration: none !important;
    transition: all var(--transition-fast);
}

.small-box-footer:hover {
    background: rgba(0, 0, 0, 0.3) !important;
    color: var(--text-light) !important;
}

/* Remove old small-box colors */
.small-box.bg-aqua, .small-box.bg-green, .small-box.bg-yellow,
.small-box.bg-red, .small-box.bg-purple, .small-box.bg-maroon,
.small-box.bg-blue, .small-box.bg-navy, .small-box.bg-teal,
.small-box.bg-olive, .small-box.bg-lime, .small-box.bg-orange,
.small-box.bg-fuchsia, .small-box.bg-black, .small-box.bg-gray {
    background: rgba(17, 25, 40, 0.75) !important;
}

/* ============================================
   TABLES - Glassmorphism Consistent
   ============================================ */
.table-responsive {
    background: rgba(17, 25, 40, 0.75) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.125) !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37) !important;
    max-width: 100%;
    display: block;
    margin:10px;
    /* width:95% !important; */
}

/* Scrollbar for table-responsive */
.table-responsive::-webkit-scrollbar {
    height: 6px;
}

.table-responsive::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.4);
    border-radius: 3px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.6);
}

table,
.table {
    color: rgba(255, 255, 255, 0.9) !important;
    background: transparent !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin-bottom: 0 !important;
    width: 100% !important;
}

.table thead th,
.table th {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.08em !important;
    padding: 14px 16px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-top: none !important;
    white-space: nowrap;
}

.table tbody td,
.table td {
    padding: 12px 16px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-top: none !important;
    vertical-align: middle !important;
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.875rem !important;
}

.table tbody tr:last-child td {
    border-bottom: none !important;
}

.table tbody tr {
    transition: background 0.2s ease;
}

.table tbody tr:hover {
    background: rgba(102, 126, 234, 0.1) !important;
}

.table-striped tbody tr:nth-of-type(odd) {
    background: rgba(255, 255, 255, 0.03) !important;
}

.table-striped tbody tr:nth-of-type(odd):hover {
    background: rgba(102, 126, 234, 0.12) !important;
}

/* DataTables Styling */
.dataTables_wrapper {
    color: var(--text-on-dark) !important;
}

.dataTables_length,
.dataTables_filter,
.dataTables_info,
.dataTables_paginate {
    color: var(--text-on-dark) !important;
    padding: 12px 16px !important;
}

.dataTables_length label,
.dataTables_filter label {
    color: var(--text-on-dark) !important;
}

.dataTables_length select,
.dataTables_filter input {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: var(--radius-xs) !important;
    color: var(--text-light) !important;
    padding: 6px 12px !important;
}

.dataTables_filter input:focus {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: var(--accent-primary) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2) !important;
}

.paginate_button {
    background: rgba(255, 255, 255, 0.1) !important;
    border: none !important;
    border-radius: var(--radius-xs) !important;
    color: var(--text-light) !important;
    padding: 8px 14px !important;
    margin: 0 3px !important;
    transition: all var(--transition-fast) !important;
}

.paginate_button:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    color: var(--text-light) !important;
}

.paginate_button.current {
    background: var(--accent-gradient) !important;
    color: var(--text-light) !important;
}

/* ============================================
   BUTTONS - Modern Glassmorphism
   ============================================ */
.btn {
    border-radius: var(--radius-sm) !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    border: none !important;
    transition: all var(--transition-fast) !important;
    position: relative;
    overflow: hidden;
    text-transform: none !important;
    letter-spacing: 0.02em;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary,
.btn-primary:focus {
    background: var(--accent-gradient) !important;
    color: var(--text-light) !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.35) !important;
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5) !important;
    transform: translateY(-2px);
}

.btn-success,
.btn-success:focus {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: var(--text-light) !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35) !important;
}

.btn-success:hover {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5) !important;
    transform: translateY(-2px);
}

.btn-info,
.btn-info:focus {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: var(--text-light) !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35) !important;
}

.btn-info:hover {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5) !important;
    transform: translateY(-2px);
}

.btn-warning,
.btn-warning:focus {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: var(--text-light) !important;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35) !important;
}

.btn-warning:hover {
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5) !important;
    transform: translateY(-2px);
}

.btn-danger,
.btn-danger:focus {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: var(--text-light) !important;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.35) !important;
}

.btn-danger:hover {
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5) !important;
    transform: translateY(-2px);
}

.btn-default,
.btn-secondary,
.btn-default:focus,
.btn-secondary:focus {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    color: var(--text-dark) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.btn-default:hover,
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25) !important;
}

/* Button Sizes */
.btn-lg {
    padding: 14px 28px !important;
    font-size: 1rem !important;
    border-radius: var(--radius-md) !important;
}

.btn-sm {
    padding: 6px 14px !important;
    font-size: 0.8rem !important;
    border-radius: var(--radius-xs) !important;
}

.btn-xs {
    padding: 4px 10px !important;
    font-size: 0.75rem !important;
    border-radius: var(--radius-xs) !important;
}

/* ============================================
   FORMS - Dark Glassmorphism Style
   ============================================ */

/* Form Container - Inner form outline */
.formbold-main-wrapper {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0px !important;
    box-shadow: none !important;
}

.formbold-form-wrapper {
    background: rgba(17, 25, 40, 0.5) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(0, 212, 255, 0.2) !important;
    border-radius: 14px !important;
    padding: 0px !important;
    margin: 0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
}

/* Form Labels - Bright and Visible */
.formbold-form-label,
label,
.control-label {
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    margin-bottom: 8px !important;
    display: block !important;
}

.formbold-form-label .text-danger,
label .text-danger {
    color: #ff6b6b !important;
}

/* Form Inputs - Glass Style */
.formbold-form-input,
.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="url"],
textarea,
select {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 10px !important;
    padding: 14px 16px !important;
    color: #ffffff !important;
    font-size: 0.95rem !important;
    transition: all 0.3s ease !important;
    width: 100%;
    min-height: 48px !important;
    line-height: 1.4 !important;
}

.formbold-form-input::placeholder,
.form-control::placeholder,
input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.formbold-form-input:focus,
.form-control:focus,
input:focus,
textarea:focus,
select:focus {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: #00d4ff !important;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2) !important;
    outline: none !important;
}

/* Select Dropdowns */
select.formbold-form-input,
select.form-control,
select {
    background-color: rgba(255, 255, 255, 0.08) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 01.753 1.659l-4.796 5.48a1 1 0 01-1.506 0z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    padding: 12px 40px 12px 16px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    color: #ffffff !important;
    min-height: 46px !important;
    height: auto !important;
    line-height: 1.4 !important;
}

select option {
    background: #1a2332 !important;
    color: #ffffff !important;
    padding: 10px !important;
}

/* Force select text color */
select.formbold-form-input option,
select.form-control option,
select option {
    color: #ffffff !important;
    background-color: #1a2332 !important;
}

/* Readonly Inputs */
input[readonly],
.formbold-form-input[readonly] {
    background: rgba(255, 255, 255, 0.04) !important;
    color: rgba(255, 255, 255, 0.7) !important;
    cursor: not-allowed;
}

/* Disabled Inputs */
input:disabled,
select:disabled,
.formbold-form-input:disabled {
    background: rgba(255, 255, 255, 0.03) !important;
    color: rgba(255, 255, 255, 0.4) !important;
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

/* File Input */
input[type="file"] {
    padding: 12px 14px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    min-height: 48px !important;
    line-height: 1.4 !important;
    display: flex !important;
    align-items: center !important;
}

input[type="file"]::file-selector-button {
    background: linear-gradient(135deg, #00d4ff 0%, #667eea 100%) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 10px 18px !important;
    border-radius: 8px !important;
    margin-right: 14px !important;
    cursor: pointer;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    line-height: 1.2 !important;
}

input[type="file"]::file-selector-button:hover {
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4) !important;
}

/* Form Input Flex Layout */
.formbold-input-flex {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    margin-bottom: 24px !important;
}

.formbold-input-flex > div {
    flex: 1 1 calc(50% - 10px) !important;
    min-width: 250px !important;
}

/* Validation States */
.formbold-form-input.valid,
.form-control.valid,
input.valid {
    border-color: #10b981 !important;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2) !important;
}

.formbold-form-input.invalid,
.form-control.invalid,
input.invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.2) !important;
}

/* Form Button Wrapper */
.formbold-form-btn-wrapper {
    margin-top: 30px !important;
    padding-top: 20px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px !important;
}

/* Input Groups */
.input-group {
    display: flex !important;
    align-items: stretch !important;
}

/* Input with addon on left - input gets right rounded corners */
.input-group .form-control {
    border-radius: 0 10px 10px 0 !important;
    border-left: none !important;
}

/* Addon on left (prefix like $) */
.input-group-addon {
    background: rgba(0, 212, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #00d4ff !important;
    border-radius: 10px 0 0 10px !important;
    padding: 12px 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    min-width: 45px !important;
}

/* Input group button addon */
.input-group-btn .btn {
    background: rgba(0, 212, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border-radius: 0 10px 10px 0 !important;
}

/* Investment Amount Cards */
.amount_card_wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    margin-top: 15px !important;
    margin-bottom: 24px !important;
}

.amount-card {
    padding: 12px 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    background: rgba(255, 255, 255, 0.05) !important;
    text-align: center !important;
    color: #ffffff !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    flex: 1 1 auto !important;
    min-width: 100px !important;
}

.amount-card:hover {
    background: rgba(0, 212, 255, 0.15) !important;
    border-color: #00d4ff !important;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3) !important;
    transform: translateY(-2px) !important;
}

/* Checkbox and Radio */
input[type="checkbox"],
input[type="radio"] {
    width: 18px !important;
    height: 18px !important;
    accent-color: #00d4ff !important;
}

/* Mobile Responsive Forms */
@media (max-width: 768px) {
    .formbold-input-flex > div {
        flex: 1 1 100% !important;
        min-width: 100% !important;
    }
    
    .formbold-main-wrapper,
    .formbold-form-wrapper {
        padding: 10px !important;
        border-radius: 12px !important;
        margin:0px !important;
    }
}

/* ============================================
   MODALS - Dark Grey Glassmorphism
   ============================================ */
.modal-backdrop {
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
}

.modal-content {
    background: var(--card-dark) !important;
    backdrop-filter: blur(var(--glass-blur)) !important;
    -webkit-backdrop-filter: blur(var(--glass-blur)) !important;
    border: var(--glass-border-dark) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4) !important;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    background: rgba(255, 255, 255, 0.05) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 20px 24px !important;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
}

.modal-title {
    color: var(--text-light) !important;
    font-weight: 600 !important;
    font-size: 1.25rem !important;
}

.modal-header .close,
.modal-header .btn-close {
    color: var(--text-light) !important;
    opacity: 0.7 !important;
    font-size: 1.5rem !important;
    text-shadow: none !important;
    transition: opacity var(--transition-fast);
}

.modal-header .close:hover,
.modal-header .btn-close:hover {
    opacity: 1 !important;
}

.modal-body {
    padding: 24px !important;
    color: var(--text-on-dark) !important;
}

.modal-footer {
    background: rgba(0, 0, 0, 0.15) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 16px 24px !important;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg) !important;
}

/* ============================================
   FORMS & INPUTS
   ============================================ */
.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="date"],
input[type="time"],
input[type="search"],
textarea,
select {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: var(--radius-sm) !important;
    color: var(--text-light) !important;
    padding: 12px 16px !important;
    font-size: 0.95rem !important;
    transition: all var(--transition-fast) !important;
}

.form-control::placeholder,
input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

.form-control:focus,
input:focus,
textarea:focus,
select:focus {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: var(--accent-primary) !important;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2) !important;
    outline: none !important;
}

/* Labels */
label,
.control-label {
    color: var(--text-on-dark) !important;
    font-weight: 500 !important;
    margin-bottom: 8px !important;
    font-size: 0.9rem !important;
}

/* Light form controls (for light backgrounds) */
.box-body .form-control,
.card-body .form-control,
.modal-body .form-control {
    background: rgba(255, 255, 255, 0.08) !important;
    color: var(--text-light) !important;
}

/* Select2 Styling */
.select2-container--default .select2-selection--single {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: var(--radius-sm) !important;
    height: 46px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--text-light) !important;
    line-height: 46px !important;
    padding-left: 16px !important;
}

.select2-dropdown {
    background: var(--card-dark) !important;
    border: var(--glass-border-dark) !important;
    border-radius: var(--radius-sm) !important;
}

.select2-results__option {
    color: var(--text-on-dark) !important;
    padding: 10px 16px !important;
}

.select2-container--default .select2-results__option--highlighted {
    background: rgba(102, 126, 234, 0.3) !important;
}

/* Checkbox & Radio */
input[type="checkbox"],
input[type="radio"] {
    width: 18px !important;
    height: 18px !important;
    accent-color: var(--accent-primary) !important;
}

/* ============================================
   ALERTS & CALLOUTS
   ============================================ */
.alert {
    background: var(--card-dark) !important;
    border: var(--glass-border-dark) !important;
    border-radius: var(--radius-sm) !important;
    color: var(--text-on-dark) !important;
    padding: 16px 20px !important;
    border-left: 4px solid var(--accent-primary) !important;
}

.alert-success { border-left-color: var(--accent-success) !important; }
.alert-info { border-left-color: var(--accent-info) !important; }
.alert-warning { border-left-color: var(--accent-warning) !important; }
.alert-danger { border-left-color: var(--accent-danger) !important; }

.callout {
    border-left-width: 4px !important;
}

/* ============================================
   BADGES & LABELS
   ============================================ */
.badge,
.label {
    font-weight: 600 !important;
    font-size: 0.75rem !important;
    padding: 5px 10px !important;
    border-radius: var(--radius-xs) !important;
}

.badge-primary, .label-primary { background: var(--accent-primary) !important; }
.badge-success, .label-success { background: var(--accent-success) !important; }
.badge-info, .label-info { background: var(--accent-info) !important; }
.badge-warning, .label-warning { background: var(--accent-warning) !important; }
.badge-danger, .label-danger { background: var(--accent-danger) !important; }

/* ============================================
   NAVIGATION TABS & PILLS
   ============================================ */
.nav-tabs {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.nav-tabs > li > a {
    background: transparent !important;
    color: var(--text-on-dark) !important;
    border: none !important;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0 !important;
    padding: 12px 20px !important;
    transition: all var(--transition-fast);
}

.nav-tabs > li > a:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--text-light) !important;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-light) !important;
    border-bottom: 3px solid var(--accent-primary) !important;
}

.tab-content {
    padding: var(--spacing-md) !important;
}

/* ============================================
   PROGRESS BARS
   ============================================ */
.progress {
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: var(--radius-xl) !important;
    height: 10px !important;
    overflow: hidden;
}

.progress-bar {
    background: var(--accent-gradient) !important;
    border-radius: var(--radius-xl) !important;
}

.progress-bar-success { background: linear-gradient(90deg, #10b981, #34d399) !important; }
.progress-bar-info { background: linear-gradient(90deg, #3b82f6, #60a5fa) !important; }
.progress-bar-warning { background: linear-gradient(90deg, #f59e0b, #fbbf24) !important; }
.progress-bar-danger { background: linear-gradient(90deg, #ef4444, #f87171) !important; }

/* ============================================
   DASHBOARD CARDS
   ============================================ */
.dash-card {
    background: var(--card-dark) !important;
    backdrop-filter: blur(var(--glass-blur)) !important;
    -webkit-backdrop-filter: blur(var(--glass-blur)) !important;
    border: var(--glass-border-dark) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--glass-shadow-dark) !important;
    transition: all var(--transition-normal);
    overflow: hidden;
    position: relative;
}

.dash-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.dash-card:hover::before {
    opacity: 1;
}

.dash-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4) !important;
}

.dash-card .card-title {
    color: var(--text-light) !important;
}

.dash-card .card-description,
.dash-card p {
    color: var(--text-on-dark) !important;
}

/* ============================================
   MOBILE BOTTOM NAVIGATION
   ============================================ */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--menu-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-top: var(--glass-border-light);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
    padding: 8px 0;
    z-index: 1050;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.mobile-bottom-nav .nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.mobile-bottom-nav .nav-item {
    flex: 1;
    text-align: center;
}

.mobile-bottom-nav .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 4px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all var(--transition-fast);
    border-radius: var(--radius-sm);
    position: relative;
}

.mobile-bottom-nav .nav-link i {
    font-size: 1.4rem;
    margin-bottom: 4px;
    transition: all var(--transition-fast);
}

.mobile-bottom-nav .nav-link span {
    font-size: 0.65rem;
    font-weight: 600;
}

.mobile-bottom-nav .nav-link.active {
    color: var(--accent-primary);
}

.mobile-bottom-nav .nav-link.active i {
    transform: scale(1.15);
}

.mobile-bottom-nav .nav-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 0 0 3px 3px;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.mobile-bottom-nav .nav-link.active::after {
    opacity: 1;
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
    background: var(--menu-bg) !important;
    backdrop-filter: blur(var(--glass-blur-light)) !important;
    -webkit-backdrop-filter: blur(var(--glass-blur-light)) !important;
    border-top: var(--glass-border-light) !important;
    color: var(--text-dark) !important;
    padding: 16px 24px !important;
}

/* ============================================
   LOADING SCREEN
   ============================================ */
.loading-screen {
    background: linear-gradient(135deg, var(--bg-light-start) 0%, var(--bg-light-end) 100%) !important;
}

.loading-screen .spinner-border {
    color: var(--accent-primary) !important;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 991px) {
    .main-sidebar {
        transform: translateX(-100%);
        transition: transform var(--transition-normal);
    }
    
    .sidebar-open .main-sidebar {
        transform: translateX(0);
    }
    
    .content-wrapper {
        margin-left: 0 !important;
    }
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: block;
    }
    
    .main-sidebar,
    .sidebar {
        display: none !important;
    }
    
    .content-wrapper,
    .page-body-wrapper {
        margin-left: 0 !important;
        padding-bottom: 80px !important;
    }
    
    .box,
    .card {
        border-radius: var(--radius-sm) !important;
        margin-bottom: var(--spacing-sm) !important;
    }
    
    .small-box {
        margin-bottom: var(--spacing-sm) !important;
    }
    
    .btn {
        padding: 10px 16px !important;
    }
    
    .modal-dialog {
        margin: 16px !important;
    }
    
    .modal-content {
        border-radius: var(--radius-md) !important;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.glass-light {
    background: var(--menu-bg) !important;
    backdrop-filter: blur(var(--glass-blur)) !important;
    -webkit-backdrop-filter: blur(var(--glass-blur)) !important;
    border: var(--glass-border-light) !important;
}

.glass-dark {
    background: var(--card-dark) !important;
    backdrop-filter: blur(var(--glass-blur)) !important;
    -webkit-backdrop-filter: blur(var(--glass-blur)) !important;
    border: var(--glass-border-dark) !important;
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-glass {
    box-shadow: var(--glass-shadow) !important;
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animations for cards */
.row > [class*="col-"]:nth-child(1) .dash-card,
.row > [class*="col-"]:nth-child(1) .small-box { animation-delay: 0.05s; }
.row > [class*="col-"]:nth-child(2) .dash-card,
.row > [class*="col-"]:nth-child(2) .small-box { animation-delay: 0.1s; }
.row > [class*="col-"]:nth-child(3) .dash-card,
.row > [class*="col-"]:nth-child(3) .small-box { animation-delay: 0.15s; }
.row > [class*="col-"]:nth-child(4) .dash-card,
.row > [class*="col-"]:nth-child(4) .small-box { animation-delay: 0.2s; }
.row > [class*="col-"]:nth-child(5) .dash-card,
.row > [class*="col-"]:nth-child(5) .small-box { animation-delay: 0.25s; }
.row > [class*="col-"]:nth-child(6) .dash-card,
.row > [class*="col-"]:nth-child(6) .small-box { animation-delay: 0.3s; }

/* ============================================
   SCROLLBAR STYLING
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.5);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(102, 126, 234, 0.3) rgba(0, 0, 0, 0.05);
}

/* ============================================
   SKIN-BLUE THEME OVERRIDES
   High specificity to override AdminLTE skin
   ============================================ */
.skin-blue .main-header,
body.skin-blue .main-header {
    background: var(--menu-bg) !important;
    backdrop-filter: blur(var(--glass-blur)) !important;
    -webkit-backdrop-filter: blur(var(--glass-blur)) !important;
    border-bottom: var(--glass-border-light) !important;
}

.skin-blue .main-header .logo,
body.skin-blue .main-header .logo {
    background: linear-gradient(180deg, rgba(17, 25, 40, 0.95) 0%, rgba(20, 30, 48, 0.9) 100%) !important;
    color: #ffffff !important;
    border-right: 1px solid rgba(0, 212, 255, 0.1) !important;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2) !important;
}

.skin-blue .main-header .logo:hover,
body.skin-blue .main-header .logo:hover {
    background: rgba(17, 25, 40, 1) !important;
    color: #ffffff !important;
}

.skin-blue .main-header .navbar,
body.skin-blue .main-header .navbar {
    background: transparent !important;
}

.skin-blue .main-header .navbar .nav > li > a,
body.skin-blue .main-header .navbar .nav > li > a {
    color: var(--text-dark) !important;
}

.skin-blue .main-header .navbar .nav > li > a:hover,
body.skin-blue .main-header .navbar .nav > li > a:hover {
    background: rgba(102, 126, 234, 0.1) !important;
    color: var(--accent-primary) !important;
}

.skin-blue .main-header .sidebar-toggle,
body.skin-blue .main-header .sidebar-toggle {
    color: var(--text-dark) !important;
}

.skin-blue .main-header .sidebar-toggle:hover,
body.skin-blue .main-header .sidebar-toggle:hover {
    background: rgba(102, 126, 234, 0.1) !important;
    color: var(--accent-primary) !important;
}

/* Sidebar skin-blue overrides */
.skin-blue .main-sidebar,
.skin-blue .left-side,
body.skin-blue .main-sidebar,
body.skin-blue .left-side {
    background: var(--menu-bg) !important;
    backdrop-filter: blur(var(--glass-blur)) !important;
    -webkit-backdrop-filter: blur(var(--glass-blur)) !important;
}

.skin-blue .sidebar-menu > li > a,
body.skin-blue .sidebar-menu > li > a {
    color: var(--text-dark) !important;
    background: transparent !important;
}

.skin-blue .sidebar-menu > li:hover > a,
.skin-blue .sidebar-menu > li.active > a,
body.skin-blue .sidebar-menu > li:hover > a,
body.skin-blue .sidebar-menu > li.active > a {
    background: var(--menu-active) !important;
    color: var(--accent-primary) !important;
}

.skin-blue .sidebar-menu > li.header,
body.skin-blue .sidebar-menu > li.header {
    color: var(--text-muted) !important;
    background: transparent !important;
}

.skin-blue .treeview-menu > li > a,
body.skin-blue .treeview-menu > li > a {
    color: #ffffff !important;
}

.skin-blue .treeview-menu > li > a:hover,
.skin-blue .treeview-menu > li.active > a,
body.skin-blue .treeview-menu > li > a:hover,
body.skin-blue .treeview-menu > li.active > a {
    color: #ffffff !important;
}

.skin-blue .sidebar a,
body.skin-blue .sidebar a {
    color: rgba(255, 255, 255, 0.9) !important;
}

.skin-blue .sidebar a:hover,
body.skin-blue .sidebar a:hover {
    color: #ffffff !important;
}

/* User dropdown styles */
.skin-blue .main-header .navbar .nav .open > a,
.skin-blue .main-header .navbar .nav .open > a:hover,
.skin-blue .main-header .navbar .nav .open > a:focus,
body.skin-blue .main-header .navbar .nav .open > a,
body.skin-blue .main-header .navbar .nav .open > a:hover,
body.skin-blue .main-header .navbar .nav .open > a:focus {
    background: rgba(102, 126, 234, 0.1) !important;
    color: var(--accent-primary) !important;
}

.skin-blue .dropdown-menu > li > a,
body.skin-blue .dropdown-menu > li > a {
    color: var(--text-dark) !important;
}

.skin-blue .dropdown-menu > li > a:hover,
body.skin-blue .dropdown-menu > li > a:hover {
    background: rgba(102, 126, 234, 0.1) !important;
    color: var(--accent-primary) !important;
}

/* User header in dropdown */
.skin-blue .user-header,
body.skin-blue .user-header {
    background: var(--card-dark) !important;
}

.skin-blue .user-header p,
body.skin-blue .user-header p {
    color: var(--text-light) !important;
}

.skin-blue .user-footer,
body.skin-blue .user-footer {
    background: rgba(0, 0, 0, 0.2) !important;
}

/* Content wrapper background */
.skin-blue .content-wrapper,
body.skin-blue .content-wrapper {
    background: transparent !important;
}

/* Footer */
.skin-blue .main-footer,
body.skin-blue .main-footer {
    background: var(--menu-bg) !important;
    backdrop-filter: blur(var(--glass-blur-light)) !important;
    -webkit-backdrop-filter: blur(var(--glass-blur-light)) !important;
    border-top: var(--glass-border-light) !important;
    color: var(--text-dark) !important;
}

/* ============================================
   BOOTSTRAP OVERRIDES
   Override Bootstrap default styles
   ============================================ */
.panel {
    background: var(--card-dark) !important;
    border: var(--glass-border-dark) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--glass-shadow-dark) !important;
}

.panel-heading {
    background: rgba(255, 255, 255, 0.05) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: var(--text-light) !important;
}

.panel-body {
    color: var(--text-on-dark) !important;
}

.panel-footer {
    background: rgba(0, 0, 0, 0.15) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: var(--text-on-dark) !important;
}

.well {
    background: var(--card-dark) !important;
    border: var(--glass-border-dark) !important;
    border-radius: var(--radius-md) !important;
    color: var(--text-on-dark) !important;
}

/* Input groups */
.input-group-addon {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: var(--text-light) !important;
}

/* List groups */
.list-group-item {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: var(--text-on-dark) !important;
}

.list-group-item:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Remove blue backgrounds from various elements */
.bg-primary,
.bg-info,
.bg-success,
.bg-warning,
.bg-danger,
.bg-aqua,
.bg-blue,
.bg-light-blue,
.bg-green,
.bg-teal,
.bg-yellow,
.bg-orange,
.bg-red,
.bg-maroon,
.bg-purple,
.bg-fuchsia,
.bg-navy,
.bg-olive,
.bg-lime,
.bg-black,
.bg-gray {
    background: var(--card-dark) !important;
    color: var(--text-light) !important;
}

/* Ensure labels and text are visible */
.box-body label,
.card-body label,
.modal-body label {
    color: var(--text-on-dark) !important;
}

/* Form control in dark contexts */
.box .form-control,
.card .form-control,
.modal .form-control,
.panel .form-control {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: var(--text-light) !important;
}

.box .form-control:focus,
.card .form-control:focus,
.modal .form-control:focus,
.panel .form-control:focus {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: var(--accent-primary) !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2) !important;
}

    background: var(--card-dark) !important;
}

/* ============================================
   LOGIN PAGE & AUTH
   ============================================ */
.login-page, .register-page {
    background: transparent !important;
    height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.login-box, .register-box {
    width: 400px !important;
    margin: 0 !important;
    background: transparent !important;
}

.login-box-body, .register-box-body,
body.login-page .login-box-body,
body .login-box .login-box-body {
    background: rgba(17, 25, 40, 0.85) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(0, 212, 255, 0.3) !important;
    border-radius: 20px !important;
    padding: 40px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 
                inset 0 0 30px rgba(0, 212, 255, 0.05) !important;
    color: #ffffff !important;
}

/* All text inside login box */
.login-box-body *, .register-box-body * {
    color: #ffffff !important;
}

/* Input fields - dark glass style */
.login-box-body .form-control, .register-box-body .form-control {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    border-radius: 10px !important;
}

.login-box-body .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.login-box-body .form-control:focus {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: #00d4ff !important;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3) !important;
}

.login-logo a, .register-logo a {
    color: #ffffff !important;
    font-weight: 700 !important;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.4) !important;
    transition: all 0.3s ease !important;
}

.login-logo a:hover {
    color: var(--accent-primary) !important;
    text-shadow: 0 0 30px rgba(102, 126, 234, 0.6) !important;
}

.login-box-msg, .register-box-msg {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 1.1rem !important;
    font-weight: 500 !important;
    padding-bottom: 25px !important;
}

/* Login Links */
.login-box-body a, .register-box-body a {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.95rem !important;
    display: inline-block !important;
    margin-top: 10px !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.login-box-body a:hover, .register-box-body a:hover {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5) !important;
}

/* Checkbox/Remember Me */
.login-box-body .checkbox label, .register-box-body .checkbox label {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 400 !important;
}

/* Login Button */
.login-box-body .btn-primary, .register-box-body .btn-primary {
    background: linear-gradient(135deg, #00d4ff 0%, #005bea 100%) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4) !important;
    transition: all 0.3s ease !important;
}

.login-box-body .btn-primary:hover, .register-box-body .btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.6) !important;
}

/* Password Toggle Icon */
.has-feedback .form-control-feedback {
    color: rgba(255, 255, 255, 0.5) !important;
    height: 46px !important;
    line-height: 46px !important;
    pointer-events: auto !important; /* Allow clicking */
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.has-feedback .form-control-feedback:hover {
    color: var(--accent-primary) !important;
}

.toggle-password {
    cursor: pointer;
    z-index: 10;
}

/* ============================================
   RESPONSIVE FONT SIZES
   Scale typography for all screen sizes
   ============================================ */

/* Base font sizes */
html {
    font-size: 16px !important;
}

body {
    font-size: 1rem !important;
    line-height: 1.6 !important;
}

/* Desktop (>1200px) */
@media (min-width: 1200px) {
    html { font-size: 16px !important; }
    h1, .h1 { font-size: 2.25rem !important; }
    h2, .h2 { font-size: 1.875rem !important; }
    h3, .h3 { font-size: 1.5rem !important; }
    h4, .h4 { font-size: 1.25rem !important; }
    h5, .h5 { font-size: 1.1rem !important; }
    h6, .h6 { font-size: 1rem !important; }
    .content-header > h1 { font-size: 1.75rem !important; }
}

/* Tablet (768px - 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
    html { font-size: 15px !important; }
    h1, .h1 { font-size: 2rem !important; }
    h2, .h2 { font-size: 1.625rem !important; }
    h3, .h3 { font-size: 1.375rem !important; }
    h4, .h4 { font-size: 1.15rem !important; }
    h5, .h5 { font-size: 1rem !important; }
    h6, .h6 { font-size: 0.95rem !important; }
    .content-header > h1 { font-size: 1.5rem !important; }
    .box-title, .card-title { font-size: 1rem !important; }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
    html { font-size: 14px !important; }
    h1, .h1 { font-size: 1.75rem !important; }
    h2, .h2 { font-size: 1.5rem !important; }
    h3, .h3 { font-size: 1.25rem !important; }
    h4, .h4 { font-size: 1.1rem !important; }
    h5, .h5 { font-size: 1rem !important; }
    h6, .h6 { font-size: 0.9rem !important; }
    .content-header > h1 { font-size: 1.35rem !important; }
    .content-header > h1 > small { font-size: 0.85rem !important; }
    .box-title, .card-title { font-size: 1rem !important; }
    .btn { font-size: 0.875rem !important; padding: 10px 16px !important; }
    .table td, .table th { font-size: 0.85rem !important; padding: 10px 12px !important; }
    .small-box .inner h3 { font-size: 1.35rem !important; }
    .small-box .inner p { font-size: 0.8rem !important; }
}

/* Small Mobile (<480px) */
@media (max-width: 480px) {
    html { font-size: 13px !important; }
    h1, .h1 { font-size: 1.5rem !important; }
    h2, .h2 { font-size: 1.35rem !important; }
    h3, .h3 { font-size: 1.15rem !important; }
    .content-header { padding: 15px !important; margin-top:10px !important; }
    .content-header > h1 { font-size: 1.2rem !important; }
    .box-body, .card-body { padding: 15px !important; }
    .btn { padding: 8px 14px !important; font-size: 0.8rem !important; }
}

/* ============================================
   ENHANCED MOBILE BOTTOM NAVIGATION
   With expandable sub-menus and touch interaction
   ============================================ */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(248, 250, 255, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(102, 126, 234, 0.15);
    box-shadow: 0 -8px 32px rgba(102, 126, 234, 0.12);
    z-index: 1050;
    transition: transform 0.3s ease;
}

.mobile-bottom-nav .nav-container {
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    padding: 0;
}

.mobile-bottom-nav .nav-item {
    flex: 1;
    text-align: center;
    position: relative;
}

.mobile-bottom-nav .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px 16px;
    color: #6b7280;
    text-decoration: none !important;
    transition: all 0.25s ease;
    position: relative;
    min-height: 65px;
}

.mobile-bottom-nav .nav-link i {
    font-size: 1.5rem;
    margin-bottom: 4px;
    transition: all 0.25s ease;
}

.mobile-bottom-nav .nav-link span {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Active state with vibrant colors */
.mobile-bottom-nav .nav-link.active {
    color: #667eea;
}

.mobile-bottom-nav .nav-link.active i {
    transform: scale(1.15);
    color: #667eea;
    filter: drop-shadow(0 2px 4px rgba(102, 126, 234, 0.4));
}

/* Top indicator bar */
.mobile-bottom-nav .nav-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 0 0 3px 3px;
    transition: transform 0.25s ease;
}

.mobile-bottom-nav .nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* Touch ripple effect */
.mobile-bottom-nav .nav-link:active {
    background: rgba(102, 126, 234, 0.1);
}

/* Nav item with sub-menu */
.mobile-bottom-nav .nav-item.has-submenu .nav-link {
    cursor: pointer;
}

/* Sub-menu popup - appears ABOVE the icon */
.mobile-bottom-nav .mobile-submenu {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(45, 90, 123, 0.15);
    border-radius: 14px;
    padding: 8px;
    min-width: 180px;
    margin-bottom: 8px;
    box-shadow: 0 -8px 32px rgba(30, 58, 95, 0.2);
    z-index: 1060;
    opacity: 0;
    transform-origin: bottom center;
}

/* Open animation - slide up from bottom */
.mobile-bottom-nav .nav-item.submenu-open .mobile-submenu {
    display: block;
    animation: submenuSlideUp 0.25s ease forwards;
}

/* Close animation - slide down */
.mobile-bottom-nav .nav-item.submenu-closing .mobile-submenu {
    display: block;
    animation: submenuSlideDown 0.2s ease forwards;
}

@keyframes submenuSlideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(15px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

@keyframes submenuSlideDown {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(15px) scale(0.95);
    }
}

/* Last nav item - position from right to prevent cutoff */
.mobile-bottom-nav .nav-item:last-child .mobile-submenu {
    left: auto;
    right: 0;
    transform: translateY(0);
}

.mobile-bottom-nav .nav-item:last-child.submenu-open .mobile-submenu {
    animation: submenuSlideUpRight 0.25s ease forwards;
}

.mobile-bottom-nav .nav-item:last-child.submenu-closing .mobile-submenu {
    animation: submenuSlideDownRight 0.2s ease forwards;
}

/* Second-to-last nav item - also position from right */
.mobile-bottom-nav .nav-item:nth-last-child(2) .mobile-submenu {
    left: auto;
    right: -10px;
    transform: translateY(0);
}

.mobile-bottom-nav .nav-item:nth-last-child(2).submenu-open .mobile-submenu {
    animation: submenuSlideUpRight 0.25s ease forwards;
}

.mobile-bottom-nav .nav-item:nth-last-child(2).submenu-closing .mobile-submenu {
    animation: submenuSlideDownRight 0.2s ease forwards;
}

@keyframes submenuSlideUpRight {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes submenuSlideDownRight {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(15px) scale(0.95);
    }
}

/* Arrow pointer pointing down */
.mobile-bottom-nav .mobile-submenu::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-right: 1px solid rgba(45, 90, 123, 0.15);
    border-bottom: 1px solid rgba(45, 90, 123, 0.15);
}

/* For last items, position arrow correctly */
.mobile-bottom-nav .nav-item:last-child .mobile-submenu::after {
    left: auto;
    right: 25px;
    transform: rotate(45deg);
}

.mobile-bottom-nav .nav-item:nth-last-child(2) .mobile-submenu::after {
    left: auto;
    right: 35px;
    transform: rotate(45deg);
}

/* Submenu items - NO text wrapping */
.mobile-bottom-nav .mobile-submenu a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #374151;
    text-decoration: none !important;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    margin: 3px 0;
    white-space: nowrap;
}

.mobile-bottom-nav .mobile-submenu a i {
    font-size: 1.1rem;
    margin-right: 10px;
    color: #3d7a9c;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.mobile-bottom-nav .mobile-submenu a:hover,
.mobile-bottom-nav .mobile-submenu a:active {
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.1) 0%, 
        rgba(118, 75, 162, 0.08) 100%);
    color: #667eea;
}

.mobile-bottom-nav .mobile-submenu a.active {
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.15) 0%, 
        rgba(118, 75, 162, 0.1) 100%);
    color: #667eea;
}

/* Submenu header */
.mobile-bottom-nav .mobile-submenu .submenu-header {
    font-size: 0.7rem;
    font-weight: 700;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 8px 16px 4px;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

/* Show on mobile */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: block;
    }
    
    /* Add padding to body for bottom nav */
    body {
        padding-bottom: 75px !important;
    }
    
    .content-wrapper {
        padding-bottom: 80px !important;
    }
}

/* Overlay when submenu is open */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1040;
    animation: fadeIn 0.2s ease;
}

.mobile-nav-overlay.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================================
   VIBRANT SKIN-BLUE SIDEBAR OVERRIDES
   Ensure sidebar vibrancy applies to skin-blue
   ============================================ */
.skin-blue .main-sidebar,
.skin-blue .left-side,
body.skin-blue .main-sidebar,
body.skin-blue .left-side {
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(240, 245, 255, 0.92) 50%,
        rgba(230, 235, 250, 0.95) 100%) !important;
}

.skin-blue .sidebar-menu > li > a > .fa,
.skin-blue .sidebar-menu > li > a > .mdi,
body.skin-blue .sidebar-menu > li > a > .fa,
body.skin-blue .sidebar-menu > li > a > .mdi {
    color: #667eea !important;
}

.skin-blue .sidebar-menu > li:hover > a > .fa,
.skin-blue .sidebar-menu > li:hover > a > .mdi,
body.skin-blue .sidebar-menu > li:hover > a > .fa,
body.skin-blue .sidebar-menu > li:hover > a > .mdi {
    color: #764ba2 !important;
}

.skin-blue .sidebar-menu li.header,
body.skin-blue .sidebar-menu li.header {
    color: #667eea !important;
    background: linear-gradient(90deg, 
        rgba(102, 126, 234, 0.08) 0%, 
        transparent 100%) !important;
}


