/* ============================================
   ShopTap Layout Styles
   Modern, Clean, Professional
   ============================================ */

/* CSS Variables */
:root {
    /* Colors */
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --primary-50: #eef2ff;
    --primary-100: #e0e7ff;
    --primary-200: #c7d2fe;
    
    --secondary: #f43f5e;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    /* Neutrals */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* Layout */
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 80px;
    --navbar-height: 64px;
    
    /* Typography */
    --font-display: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;
}

/* ============================================
   Loading Overlay
   ============================================ */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-spinner {
    text-align: center;
}

.spinner-ring {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

.loading-text {
    display: block;
    color: white;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   App Container
   ============================================ */
.app-container {
    display: flex;
    min-height: 100vh;
    background: var(--gray-50);
}

/* ============================================
   Sidebar
   ============================================ */
.sidebar {
    width: var(--sidebar-width);
    background: white;
    border-right: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
    transition: width var(--transition-slow), transform var(--transition-slow);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

/* Sidebar Brand */
.sidebar-brand {
    height: var(--navbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid var(--gray-100);
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--gray-900);
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.brand-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar.collapsed .brand-text {
    opacity: 0;
    width: 0;
}

.sidebar-toggle {
    width: 28px;
    height: 28px;
    background: var(--gray-100);
    border: none;
    border-radius: 6px;
    color: var(--gray-500);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.sidebar-toggle:hover {
    background: var(--primary-50);
    color: var(--primary);
}

.sidebar.collapsed .sidebar-toggle i {
    transform: rotate(180deg);
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 12px;
    min-height: 0;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 2px;
}

.nav-section {
    margin-bottom: 24px;
}

.nav-section-title {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0 12px;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar.collapsed .nav-section-title {
    text-align: center;
    font-size: 0;
}

.sidebar.collapsed .nav-section-title::after {
    content: '•••';
    font-size: 0.7rem;
}

/* Menu Items - ABP Integration */
.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.sidebar-nav li a,
.sidebar-nav li .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: var(--gray-600);
    text-decoration: none;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-nav li a:hover,
.sidebar-nav li .nav-link:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.sidebar-nav li a.active,
.sidebar-nav li .nav-link.active {
    background: var(--primary-50);
    color: var(--primary);
    font-weight: 600;
}

.sidebar-nav li a i,
.sidebar-nav li .nav-link i {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.sidebar.collapsed li a,
.sidebar.collapsed li .nav-link {
    justify-content: center;
    padding: 10px;
}

.sidebar.collapsed li a span,
.sidebar.collapsed li .nav-link span {
    display: none;
}

/* Submenu */
.sidebar-nav .nav-dropdown {
    position: relative;
}

.sidebar-nav .nav-dropdown-toggle::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    margin-left: auto;
    opacity: 0.5;
    transition: transform var(--transition-fast);
}

.sidebar-nav .nav-dropdown.open .nav-dropdown-toggle::after {
    transform: rotate(180deg);
}

.sidebar-nav .nav-dropdown-menu {
    display: none;
    padding-left: 32px;
}

.sidebar-nav .nav-dropdown.open .nav-dropdown-menu {
    display: block;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--gray-100);
}

.tenant-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--primary-50);
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
}

.tenant-badge i {
    flex-shrink: 0;
}

.tenant-name {
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar.collapsed .tenant-badge {
    justify-content: center;
    padding: 8px;
}

.sidebar.collapsed .tenant-badge span {
    display: none;
}

.sidebar-version {
    text-align: center;
    font-size: 0.7rem;
    color: var(--gray-400);
    margin-top: 8px;
}

/* ============================================
   Main Content
   ============================================ */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left var(--transition-slow);
}

.sidebar.collapsed ~ .main-content {
    margin-left: var(--sidebar-collapsed-width);
}

/* ============================================
   Top Navbar
   ============================================ */
.top-navbar {
    height: var(--navbar-height);
    background: white;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    color: var(--gray-600);
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.mobile-menu-toggle:hover {
    background: var(--gray-100);
}

/* Breadcrumb */
.breadcrumb-nav {
    display: flex;
    align-items: center;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: var(--font-body);
    font-size: 0.875rem;
}

.breadcrumb-item {
    color: var(--gray-400);
}

.breadcrumb-item.active {
    color: var(--gray-700);
    font-weight: 500;
}

.breadcrumb-item a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumb-item a:hover {
    color: var(--primary);
}

/* Search */
.navbar-search {
    position: relative;
}

.search-toggle {
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    color: var(--gray-500);
    font-size: 1rem;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.search-toggle:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

.search-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 360px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.search-dropdown.open {
    display: block;
    animation: slideDown 0.2s ease;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-100);
}

.search-input-wrapper i {
    color: var(--gray-400);
    font-size: 0.9rem;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--gray-800);
}

.search-input::placeholder {
    color: var(--gray-400);
}

.search-shortcut {
    padding: 2px 6px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.7rem;
    color: var(--gray-500);
}

.search-results {
    max-height: 300px;
    overflow-y: auto;
    padding: 8px;
}

/* Notifications */
.navbar-notifications {
    position: relative;
}

.notification-toggle {
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    color: var(--gray-500);
    font-size: 1rem;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all var(--transition-fast);
}

.notification-toggle:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

.notification-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 18px;
    height: 18px;
    background: var(--secondary);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.notification-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 360px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.notification-dropdown.open {
    display: block;
    animation: slideDown 0.2s ease;
}

.notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--gray-100);
}

.notification-header h6 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.mark-all-read {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
}

.mark-all-read:hover {
    text-decoration: underline;
}

.notification-list {
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    transition: background var(--transition-fast);
    cursor: pointer;
}

.notification-item:hover {
    background: var(--gray-50);
}

.notification-item.unread {
    background: var(--primary-50);
}

.notification-icon {
    width: 36px;
    height: 36px;
    background: var(--gray-100);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.notification-item.unread .notification-icon {
    background: white;
}

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

.notification-content p {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--gray-700);
    margin: 0 0 4px;
    line-height: 1.4;
}

.notification-time {
    font-size: 0.75rem;
    color: var(--gray-400);
}

.notification-footer {
    padding: 12px 16px;
    text-align: center;
    border-top: 1px solid var(--gray-100);
}

.notification-footer a {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
}

.notification-footer a:hover {
    text-decoration: underline;
}

/* User Menu */
.navbar-user {
    position: relative;
}

.user-dropdown {
    position: relative;
}

.user-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.user-dropdown-toggle:hover {
    background: var(--gray-100);
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
}

.user-info {
    text-align: left;
}

.user-name {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-800);
    display: block;
}

.user-email {
    font-size: 0.7rem;
    color: var(--gray-500);
    display: block;
}

.user-dropdown-toggle i.fa-chevron-down {
    font-size: 0.7rem;
    color: var(--gray-400);
    transition: transform var(--transition-fast);
}

.user-dropdown.open .user-dropdown-toggle i.fa-chevron-down {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 240px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    z-index: 1000;
}

.user-dropdown.open .user-dropdown-menu {
    display: block;
    animation: slideDown 0.2s ease;
}

.dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--gray-50);
}

.dropdown-user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
}

.dropdown-user-info {
    flex: 1;
    min-width: 0;
}

.dropdown-user-info strong {
    display: block;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gray-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-user-info small {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-divider {
    height: 1px;
    background: var(--gray-100);
    margin: 4px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--gray-700);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}

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

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

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

/* Logout item */
.dropdown-item.text-danger {
    color: var(--danger);
}

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

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

/* ============================================
   Page Content
   ============================================ */
.page-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.page-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin: 0;
    letter-spacing: -0.02em;
}

.page-body {
    animation: fadeIn 0.3s ease;
}

/* ============================================
   Footer
   ============================================ */
.main-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-top: 1px solid var(--gray-200);
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--gray-500);
    background: white;
    flex-shrink: 0;
}

.main-footer a {
    color: var(--primary);
    text-decoration: none;
}

.main-footer a:hover {
    text-decoration: underline;
}

/* ============================================
   Sidebar Overlay (Mobile)
   ============================================ */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    backdrop-filter: blur(4px);
}

.sidebar-overlay.visible {
    display: block;
}

/* ============================================
   Animations
   ============================================ */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .sidebar.collapsed ~ .main-content {
        margin-left: 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .sidebar-toggle {
        display: none;
    }

    .breadcrumb-nav {
        display: none;
    }
}

@media (max-width: 640px) {
    .top-navbar {
        padding: 0 16px;
    }

    .page-content {
        padding: 16px;
    }

    .search-dropdown,
    .notification-dropdown {
        width: calc(100vw - 32px);
        right: -8px;
    }

    .user-info {
        display: none;
    }
}

/* ============================================
   ABP Component Overrides
   ============================================ */
.abp-body-layout {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
}

/* Hide ABP's default layout elements */
.lpx-sidebar,
.lpx-topbar,
.lpx-content-wrapper,
#LpxWrapper {
    display: none !important;
}

/* Override ABP menu styles */
.sidebar-nav .menu-item {
    margin-bottom: 2px;
}

.sidebar-nav .menu-item a,
.sidebar-nav .menu-item .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: var(--gray-600);
    text-decoration: none;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.sidebar-nav .menu-item a:hover,
.sidebar-nav .menu-item .dropdown-toggle:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.sidebar-nav .menu-item a.active,
.sidebar-nav .menu-item .dropdown-toggle.active {
    background: var(--primary-50);
    color: var(--primary);
    font-weight: 600;
}

.sidebar-nav .menu-item i,
.sidebar-nav .menu-item .menu-icon {
    width: 20px;
    text-align: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.sidebar-nav .menu-item .menu-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Collapsed state */
.sidebar.collapsed .menu-item .menu-text,
.sidebar.collapsed .menu-item .dropdown-arrow {
    display: none;
}

.sidebar.collapsed .menu-item a,
.sidebar.collapsed .menu-item .dropdown-toggle {
    justify-content: center;
    padding: 10px;
}

/* Dropdown arrow */
.sidebar-nav .menu-item .dropdown-arrow {
    margin-left: auto;
    font-size: 0.7rem;
    transition: transform var(--transition-fast);
}

.sidebar-nav .menu-item.open .dropdown-arrow {
    transform: rotate(180deg);
}

/* Submenu */
.sidebar-nav .menu-item .dropdown-menu {
    position: static;
    border: none;
    box-shadow: none;
    background: transparent;
    padding-left: 20px;
    margin: 0;
    display: none;
}

.sidebar-nav .menu-item.open .dropdown-menu {
    display: block;
}

.sidebar-nav .menu-item .dropdown-menu .menu-item a {
    padding: 8px 12px;
    font-size: 0.825rem;
}

/* Menu group */
.sidebar-nav .menu-group {
    margin-bottom: 16px;
}

.sidebar-nav .menu-group-title {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0 12px;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar.collapsed .menu-group-title {
    text-align: center;
    font-size: 0;
}

.sidebar.collapsed .menu-group-title::after {
    content: '•••';
    font-size: 0.7rem;
}

/* Dropdown menus in sidebar */
.sidebar-nav .dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    padding: 8px;
}

.sidebar-nav .dropdown-item {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
}

.sidebar-nav .dropdown-item:hover {
    background: var(--gray-100);
}

.sidebar-nav .dropdown-item.active {
    background: var(--primary-50);
    color: var(--primary);
}

/* User menu dropdown */
.lpx-user-menu .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.lpx-user-menu .dropdown-toggle:hover {
    background: var(--gray-100);
}

.lpx-user-menu .lpx-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

/* Language switch */
.lpx-language-switch .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    color: var(--gray-500);
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}

.lpx-language-switch .dropdown-toggle:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}