/*
 * Meta Humans Enterprise Software
 *
 * @package    Enterprise Software
 * @author     Meta Humans LTD (Pieter Rubeus - owner)
 * @copyright  Copyright (c) Meta Humans LTD® 2025
 * @license    Licensed
 * @link       https://metahumans.one
 */
/* Meta Humans Header CSS - Exact replication from metahumans.ltd */

/* CSS Custom Properties for theming with fallbacks */
:root {
    /* Color System */
    --primary-color: #00d4ff;
    --secondary-color: #7c3aed;
    --accent-color: #f59e0b;
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --light-text: #ffffff;
    --gray-text: #a1a1aa;
    --border-color: #1f1f1f;
    
    /* Enhanced color palette with semantic naming */
    --primary-light: #33ddff;
    --primary-dark: #00a3cc;
    --secondary-light: #9f67ff;
    --secondary-dark: #5b21b6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --info-color: #3b82f6;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    --gradient-secondary: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --gradient-primary-hover: linear-gradient(135deg, #33ddff 0%, #9f67ff 100%);
    --gradient-glass: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
    --gradient-dark: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    
    /* Shadows */
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-strong: 0 16px 64px rgba(0, 0, 0, 0.3);
    --shadow-primary: 0 8px 32px rgba(0, 212, 255, 0.2);
    --shadow-secondary: 0 8px 32px rgba(124, 58, 237, 0.2);
    
    /* Spacing System */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* Typography */
    --font-family-primary: 'Merriweather', serif;
    --font-family-heading: 'Merriweather', serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Z-index layers */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* Modern CSS Reset with Cross-Browser Compatibility */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

/* Improved focus styles for accessibility */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Base HTML and Body Styles */

/* Global Dropdown Styling Fix */
select {
    background: #2a2a2a !important;
    color: #00d4ff !important;
    border: 1px solid #333 !important;
}

select option {
    background: #2a2a2a !important;
    color: #00d4ff !important;
}

select:focus {
    border-color: #00d4ff !important;
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.2) !important;
}
html {
    scroll-behavior: smooth;
    font-size: 16px;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family-primary);
    background: var(--darker-bg);
    color: var(--light-text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 140px !important; /* Increased padding to account for fixed header */
    margin-top: 0 !important;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    margin-top: var(--spacing-xl) !important; /* Increased spacing for content */
    position: relative;
    z-index: 1;
}

/* Header Styles - Exact from metahumans.ltd */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    transition: all 0.3s ease;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
    pointer-events: none;
}

.navbar {
    position: relative;
    height: 100%;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 var(--spacing-lg);
    max-width: 1400px;
    margin: 0 auto;
}

/* Hamburger Menu - Exact from metahumans.ltd */
.nav-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-2xl);
}

.hamburger-menu {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
    position: relative;
    background: rgba(0, 212, 255, 0.1);
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
    margin-right: var(--spacing-lg);
}

.hamburger-menu:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.4);
    transform: scale(1.05);
}

.hamburger-menu span {
    width: 20px;
    height: 2px;
    background: var(--primary-color);
    margin: 2px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1px;
    box-shadow: 0 0 5px rgba(0, 212, 255, 0.3);
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo-icon {
    width: 180px;
    height: 180px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: var(--shadow-primary);
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.nav-logo h1 {
    font-family: 'Merriweather', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-slogan {
    font-family: var(--font-family-primary);
    font-size: 0.9rem;
    color: var(--primary-color);
    margin: 0;
    font-weight: 500;
    margin-left: auto;
    letter-spacing: 0.5px;
    opacity: 0.9;
    text-transform: uppercase;
    margin-top: 4px;
}

/* Sidebar Menu - Exact from metahumans.ltd */
.sidebar-menu,
.main-menu {
    position: fixed;
    top: 0;
    left: -350px;
    width: 350px;
    height: 100vh;
    background: #1a1a1a;
    z-index: 10000;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
}

.sidebar-menu.active,
.main-menu.active {
    left: 0;
}

/* Sidebar Header */
.sidebar-header,
.main-menu-header {
    padding: 2rem 1.5rem 1.5rem;
    border-bottom: 1px solid #d7ae54;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.sidebar-close,
.main-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.sidebar-close:hover,
.main-menu-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--primary-color);
}

.sidebar-logo .logo-icon {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sidebar-logo .logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.sidebar-title h2 {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
}

.sidebar-title p {
    color: #888;
    font-size: 0.9rem;
    margin: 0.25rem 0 0 0;
}

.sidebar-slogan {
    font-family: var(--font-family-primary);
    font-size: 0.85rem;
    color: var(--primary-color);
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.5px;
    opacity: 0.8;
    text-transform: uppercase;
    margin-top: 6px;
}

/* Sidebar Navigation */
.sidebar-nav,
.main-menu-nav {
    list-style: none;
    margin: 0;
    padding: 1.5rem 0;
    flex: 1;
}

.sidebar-nav li,
.main-menu-nav li {
    margin: 0;
}

.sidebar-nav a,
.main-menu-nav a {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 1rem;
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover,
.main-menu-nav a:hover {
    background: rgba(0, 212, 255, 0.1);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
}

.nav-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-icon i {
    font-size: 1.1rem;
    color: #888;
    transition: all 0.3s ease;
}

.sidebar-nav a:hover .nav-icon,
.main-menu-nav a:hover .nav-icon {
    background: rgba(0, 212, 255, 0.2);
}

.sidebar-nav a:hover .nav-icon i,
.main-menu-nav a:hover .nav-icon i {
    color: var(--primary-color);
}

.nav-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.nav-title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.25rem;
    transition: all 0.3s ease;
}

.nav-subtitle {
    font-size: 0.8rem;
    color: #888;
    transition: all 0.3s ease;
}

.sidebar-nav a:hover .nav-title,
.main-menu-nav a:hover .nav-title {
    color: var(--primary-color);
}

.sidebar-nav a:hover .nav-subtitle,
.main-menu-nav a:hover .nav-subtitle {
    color: #aaa;
}

/* Sidebar Footer */
.sidebar-footer,
.main-menu-footer {
    padding: 1.5rem;
    border-top: 1px solid #333;
}

.footer-divider {
    height: 1px;
    background: #333;
    margin-bottom: 1rem;
}

.footer-content p {
    color: #888;
    font-size: 0.8rem;
    margin: 0.25rem 0;
    text-align: center;
}

/* Sidebar Toggle Button */
.sidebar-toggle-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 212, 255, 0.1));
    border: 2px solid #00d4ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
}

.sidebar-toggle-btn:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(0, 212, 255, 0.2));
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.sidebar-toggle-btn i {
    color: #00d4ff;
    font-size: 16px;
    transition: transform 0.3s ease;
}

/* Mini Toggle Button (shown when main menu is hidden) */
.menu-mini-toggle {
    position: fixed;
    left: 20px;
    bottom: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.9), rgba(0, 212, 255, 0.7));
    border: 2px solid #00d4ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
    animation: pulse 2s infinite;
}

.menu-mini-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 212, 255, 0.6);
}

.menu-mini-toggle i {
    color: #000;
    font-size: 20px;
    font-weight: bold;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(0, 212, 255, 0.6);
    }
    100% {
        box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
    }
}

/* Sidebar hidden state */
.sidebar-menu.hidden {
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Body state when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hamburger-menu {
        display: flex;
    }
    
    .nav-container {
        padding: 0 var(--spacing-md);
    }
    
    .nav-logo h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-slogan,
    .sidebar-slogan {
        display: none;
    }
}

@media (max-width: 480px) {
    .nav-logo h1 {
        font-size: 1.2rem;
    }
    
    .logo-icon {
        width: 120px;
        height: 120px;
    }
}

/* Special link styles */
.client-link {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 212, 255, 0.05) 100%);
    border-left: 3px solid var(--primary-color) !important;
}

.client-link:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(0, 212, 255, 0.1) 100%);
    color: var(--primary-color) !important;
}

.admin-link {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(124, 58, 237, 0.05) 100%);
    border-left: 3px solid var(--secondary-color) !important;
}

.admin-link:hover {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(124, 58, 237, 0.1) 100%);
    color: var(--secondary-color) !important;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .header,
    .sidebar-menu,
    .sidebar-overlay {
        display: none !important;
    }
}

/* Admin Hamburger Menu Styles */
.nav-right {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 15px;
}

/* Settings Gear Icon */
.settings-gear-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 212, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    z-index: var(--z-dropdown);
    pointer-events: auto;
}

.settings-gear-icon:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-primary);
    transform: translateY(-2px) scale(1.05);
}

.settings-gear-icon i {
    color: var(--primary-color);
    font-size: 20px;
    transition: all var(--transition-normal);
}

.settings-gear-icon:hover i {
    color: var(--light-text);
    transform: rotate(90deg);
}

.admin-hamburger-menu {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    z-index: var(--z-dropdown);
    pointer-events: auto;
}

.admin-hamburger-menu:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-primary);
    transform: translateY(-1px);
}

.admin-avatar {
    width: 32px;
    height: 32px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: var(--light-text);
    font-size: 14px;
}

.admin-info {
    display: flex;
    flex-direction: column;
    margin-right: 12px;
    min-width: 0;
}

.admin-name {
    color: var(--light-text);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.admin-role {
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.admin-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    position: relative;
    margin-left: 8px;
    cursor: pointer;
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 2px;
}

.admin-menu-toggle span {
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
    transition: all var(--transition-normal);
    position: absolute;
    left: 2px;
    right: 2px;
    pointer-events: none;
}

.admin-menu-toggle span:nth-child(1) {
    top: 6px;
}

.admin-menu-toggle span:nth-child(2) {
    top: 11px;
}

.admin-menu-toggle span:nth-child(3) {
    top: 16px;
}

.admin-hamburger-menu.active .admin-menu-toggle span:nth-child(1) {
    transform: rotate(45deg);
    top: 11px;
}

.admin-hamburger-menu.active .admin-menu-toggle span:nth-child(2) {
    opacity: 0;
}

.admin-hamburger-menu.active .admin-menu-toggle span:nth-child(3) {
    transform: rotate(-45deg);
    top: 11px;
}

/* Client Hamburger Menu Styles */
.client-hamburger-menu {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    backdrop-filter: blur(10px);
}

.client-hamburger-menu:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-primary);
    transform: translateY(-1px);
}

.client-avatar {
    width: 32px;
    height: 32px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: var(--light-text);
    font-size: 14px;
    font-weight: 600;
}

.client-info {
    display: flex;
    flex-direction: column;
    margin-right: 12px;
    min-width: 0;
}

.client-name {
    color: var(--light-text);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.client-email {
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.client-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.client-menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--light-text);
    margin: 2px 0;
    border-radius: 1px;
    transition: all var(--transition-fast);
    position: relative;
}

.client-menu-toggle span:nth-child(1) {
    transform-origin: left center;
}

.client-menu-toggle span:nth-child(2) {
    transform-origin: center;
}

.client-menu-toggle span:nth-child(3) {
    transform-origin: left center;
}

.client-hamburger-menu.active .client-menu-toggle span:nth-child(1) {
    transform: rotate(45deg);
    top: 6px;
}

.client-hamburger-menu.active .client-menu-toggle span:nth-child(2) {
    opacity: 0;
}

.client-hamburger-menu.active .client-menu-toggle span:nth-child(3) {
    transform: rotate(-45deg);
    top: -6px;
}

/* Admin Submenu Styles */
.admin-submenu {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 320px;
    max-height: calc(100vh - 120px);
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all var(--transition-normal);
    overflow: hidden;
    pointer-events: none;
}

.admin-submenu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.admin-submenu-header {
    padding: 24px;
    background: var(--gradient-glass);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.admin-submenu-avatar {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--light-text);
    font-size: 24px;
}

.admin-submenu-info h3 {
    color: var(--light-text);
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.admin-submenu-info p {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 8px 0;
}

.admin-submenu-info small {
    color: var(--gray-text);
    font-size: 12px;
}

.admin-submenu-nav {
    list-style: none;
    padding: 16px 0;
    max-height: calc(100vh - 280px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 212, 255, 0.3) rgba(255, 255, 255, 0.05);
}

/* Custom scrollbar for admin menu */
.admin-submenu-nav::-webkit-scrollbar {
    width: 6px;
}

.admin-submenu-nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.admin-submenu-nav::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.3);
    border-radius: 3px;
    transition: background 0.3s ease;
}

.admin-submenu-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.5);
}

.admin-submenu-nav li {
    margin: 0;
}

.admin-menu-item {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    color: var(--light-text);
    text-decoration: none;
    transition: all var(--transition-normal);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.admin-menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary-color);
    transform: translateX(4px);
}

.admin-menu-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    color: var(--primary-color);
    font-size: 16px;
    transition: all var(--transition-normal);
}

.admin-menu-item:hover .admin-menu-icon {
    background: var(--primary-color);
    color: var(--light-text);
    transform: scale(1.1);
}

.admin-menu-content {
    flex: 1;
    min-width: 0;
}

.admin-menu-title {
    display: block;
    color: inherit;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.admin-menu-subtitle {
    display: block;
    color: var(--gray-text);
    font-size: 12px;
    font-weight: 400;
}

.admin-menu-item:hover .admin-menu-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.admin-menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 8px 0;
}

.admin-menu-logout {
    color: var(--error-color) !important;
}

.admin-menu-logout:hover {
    background: rgba(239, 68, 68, 0.1) !important;
    color: var(--error-color) !important;
}

.admin-menu-logout .admin-menu-icon {
    color: var(--error-color);
}

.admin-menu-logout:hover .admin-menu-icon {
    background: var(--error-color);
    color: var(--light-text);
}

/* Admin Submenu Overlay */
.admin-submenu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.admin-submenu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Admin Submenu Overlay */
.admin-submenu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(5px);
}

.admin-submenu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Client Submenu Overlay */
.client-submenu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(5px);
}

.client-submenu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Admin and Client Submenu Containers */
.admin-submenu,
.client-submenu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 280px;
    height: 100vh;
    background: var(--dark-bg);
    border-left: 1px solid var(--border-color);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow-y: auto;
}

.admin-submenu.active,
.client-submenu.active {
    right: 0;
    opacity: 1;
    visibility: visible;
}

/* Responsive Design for Main Menu (Sidebar) */
@media (max-width: 768px) {
    .sidebar-menu,
    .main-menu {
        position: fixed;
        top: 0;
        left: -320px;
        width: 280px;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }
    
    .sidebar-menu.active,
    .main-menu.active {
        transform: translateX(0);
    }
    
    .sidebar-menu.mobile,
    .main-menu.mobile {
        position: fixed;
    }
    
    .menu-mini-toggle,
    .main-menu-mini-toggle {
        display: none !important;
    }
    
    .sidebar-menu.hidden,
    .main-menu.hidden {
        transform: translateX(-100%);
    }
    
    .hamburger-menu {
        display: flex;
        cursor: pointer;
    }
    
    .page-container {
        margin-left: 0 !important;
    }
}

/* Responsive Design for Admin Menu */
@media (max-width: 768px) {
    .admin-hamburger-menu {
        padding: 6px 12px;
    }
    
    .admin-info {
        margin-right: 8px;
    }
    
    .admin-name {
        font-size: 12px;
        max-width: 80px;
    }
    
    .admin-role {
        font-size: 10px;
        max-width: 80px;
    }
    
    .admin-submenu {
        top: 70px;
        right: 10px;
        left: 10px;
        width: auto;
        max-height: calc(100vh - 100px);
    }
    
    .admin-submenu-nav {
        max-height: calc(100vh - 220px);
    }
}

@media (max-width: 480px) {
    .admin-hamburger-menu {
        padding: 4px 8px;
    }
    
    .admin-avatar {
        width: 28px;
        height: 28px;
        font-size: 12px;
        margin-right: 8px;
    }
    
    .admin-info {
        margin-right: 6px;
    }
    
    .admin-name {
        font-size: 11px;
        max-width: 60px;
    }
    
    .admin-role {
        font-size: 9px;
        max-width: 60px;
    }
    
    .admin-submenu {
        top: 60px;
        right: 5px;
        left: 5px;
        width: auto;
        max-height: calc(100vh - 80px);
    }
    
    .admin-submenu-nav {
        max-height: calc(100vh - 200px);
        left: 5px;
    }
    
    .admin-submenu-header {
        padding: 16px;
    }
    
    .admin-submenu-avatar {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .admin-submenu-info h3 {
        font-size: 16px;
    }
    
    .admin-submenu-info p {
        font-size: 12px;
    }
    
    .admin-menu-item {
        padding: 12px 16px;
    }
    
    .admin-menu-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
        margin-right: 12px;
    }
}

/* =================================== */
/* CLIENT SUBMENU STYLES */
/* =================================== */

/* Client submenu */
.client-submenu {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 320px;
    max-height: calc(100vh - 120px);
    background: rgba(40, 40, 45, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all var(--transition-normal);
    overflow: hidden;
    pointer-events: none;
}

.client-submenu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Client submenu header */
.client-submenu-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.client-submenu-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 600;
    font-size: 18px;
    margin: 0 auto 10px;
}

.client-submenu-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 5px 0;
}

.client-submenu-info p {
    font-size: 14px;
    color: #00d4ff;
    margin: 0;
}

/* Client submenu navigation */
.client-submenu-nav {
    list-style: none;
    margin: 0;
    padding: 10px 0;
    max-height: calc(100vh - 280px);
    overflow-y: auto;
    overflow-x: hidden;
}

/* Custom scrollbar for client submenu */
.client-submenu-nav::-webkit-scrollbar {
    width: 6px;
}

.client-submenu-nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.client-submenu-nav::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.3);
    border-radius: 3px;
}

.client-submenu-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.5);
}

.client-submenu-nav li {
    margin: 0;
}

.client-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.client-menu-item:hover {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
}

.client-menu-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00d4ff;
}

.client-menu-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.client-menu-title {
    font-size: 14px;
    font-weight: 500;
}

.client-menu-subtitle {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

/* Client submenu overlay */
.client-submenu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.client-submenu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive Design for Client Menu */
@media (max-width: 768px) {
    .client-submenu {
        width: calc(100vw - 20px);
        max-width: 300px;
        right: 10px;
        max-height: calc(100vh - 100px);
    }
    
    .client-submenu-nav {
        max-height: calc(100vh - 240px);
    }
    
    .client-submenu-header {
        padding: 16px;
    }
    
    .client-submenu-avatar {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .client-submenu-info h3 {
        font-size: 14px;
    }
    
    .client-submenu-info p {
        font-size: 12px;
    }
    
    .client-menu-item {
        padding: 12px 16px;
    }
    
    .client-menu-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
        margin-right: 12px;
    }
}

/* Sidebar Divider */
.sidebar-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 10px 20px;
}

/* Sidebar Section Styles */
.sidebar-section {
    margin: 5px 0;
}

.sidebar-section-header {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.sidebar-section-header:hover {
    background: rgba(0, 212, 255, 0.05);
}

.sidebar-section-header.expanded {
    background: rgba(0, 212, 255, 0.08);
    border-left: 3px solid #00d4ff;
}

.sidebar-section-header .nav-icon {
    width: 24px;
    margin-right: 15px;
    color: #00d4ff;
}

.sidebar-section-header .nav-content {
    flex: 1;
}

.sidebar-section-header .nav-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #00d4ff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-section-header .nav-subtitle {
    display: block;
    font-size: 11px;
    color: #888;
    margin-top: 2px;
    font-style: italic;
}

.sidebar-section-toggle {
    position: absolute;
    right: 20px;
    color: #888;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.sidebar-section-header.expanded .sidebar-section-toggle {
    transform: rotate(180deg);
}

/* Sidebar Submenu */
.sidebar-submenu,
.main-menu-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-left: 2px solid rgba(0, 212, 255, 0.2);
    margin-left: 10px;
}

.sidebar-submenu.collapsed,
.main-menu-submenu.collapsed {
    max-height: 0;
}

.sidebar-submenu.expanded,
.main-menu-submenu.expanded {
    max-height: 500px;
}

.sidebar-submenu li,
.main-menu-submenu li {
    margin: 0;
}

.sidebar-submenu li a,
.main-menu-submenu li a {
    display: flex;
    align-items: center;
    padding: 8px 15px 8px 35px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-submenu li:last-child a,
.main-menu-submenu li:last-child a {
    border-bottom: none;
}

.sidebar-submenu li a:hover,
.main-menu-submenu li a:hover {
    background: rgba(0, 212, 255, 0.15);
    color: #00d4ff;
    padding-left: 40px;
}

.sidebar-submenu li a i,
.main-menu-submenu li a i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
    font-size: 12px;
    color: rgba(0, 212, 255, 0.7);
}