/* Combined App CSS Files */
/* Generated by combine_css.py */

/* === base.css === */
/* Base styles for all pages */
@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Reset conflicting styles */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

:root {
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    
    /* Z-index */
    --z-fixed: 1000;
    --z-modal: 2000;
    
    /* Layout */
    --bottom-nav-height: 60px;
    
    /* Border Radius */
    --border-radius-full: 9999px;
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    
    /* Transitions */
    --transition-fast: 0.15s;
    --transition-base: 0.3s;
    
    /* Font Weights */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Font Sizes */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    
    /* Modern Light Theme Colors */
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --color-primary: #2563eb;
    --color-primary-light: #60a5fa;
    --color-error: #ef4444;
    --color-success: #10b981;
    --secondary-color: #64748b;
    --accent-color: #06b6d4;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    
    /* Neutral Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;
    
    /* 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);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
}

body {
    font-family: 'Lexend', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
}

/* Main Content Wrapper - Header styles moved to header.css */


/* Main Content */
.main-content {
    margin-top: 64px;
    padding: var(--spacing-xs);
    flex: 1;
    position: relative;
    z-index: 1;
    margin-bottom: 0;
    min-height: auto;
}

/* Larger padding on desktop */
@media (min-width: 769px) {
    .main-content {
        padding: var(--spacing-xl);
        padding-bottom: var(--spacing-xl);
    }
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
    padding: var(--spacing-sm) 0;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm);
    text-decoration: none;
    color: var(--text-muted);
    transition: all 0.2s ease;
    border-radius: var(--radius-md);
    min-width: 50px;
    flex: 1;
}

.nav-item:hover {
    color: var(--primary-color);
    background: var(--bg-secondary);
}

.nav-item.active {
    color: var(--primary-color);
    background: var(--bg-secondary);
}

.nav-icon {
    width: 24px;
    height: 24px;
}

.nav-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}


@media (min-width: 769px) {
    .mobile-bottom-nav {
        display: none;
    }
    
    .main-content {
        padding-bottom: var(--spacing-xl);
    }
}


/* Common utility classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

/* Mobile responsive container */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-xs);
    }
}

/* Modern Card Component */
.card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.2s ease;
}

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

.card-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.card-body {
    padding: var(--spacing-lg);
}

.card-footer {
    padding: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

/* Modern Button System */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--secondary-color);
}

.btn-secondary:hover {
    background: #475569;
}

.btn-success {
    background: var(--success-color);
}

.btn-success:hover {
    background: #059669;
}

.btn-danger {
    background: var(--error-color);
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-warning {
    background: var(--warning-color);
}

.btn-warning:hover {
    background: #d97706;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

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

/* Button Sizes */
.btn-sm {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 0.75rem;
}

.btn-lg {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1rem;
}

.btn-xl {
    padding: var(--spacing-lg) var(--spacing-2xl);
    font-size: 1.125rem;
}

/* Animations */
@keyframes slideInLeft {
    from {
        left: -50%;
    }
    to {
        left: 0;
    }
}

@keyframes slideOutLeft {
    from {
        left: 0;
    }
    to {
        left: -50%;
    }
}

/* Loading spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0A5597;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Global Page Title Styles */
.page-title {
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1rem;
    margin-bottom: 1rem;
}

.page-title h1,
.page-title h2,
.page-title h3 {
    text-align: center !important;
    margin: 0;
}

.page-title i {
    text-align: center !important;
}

/* Ensure page titles are centered on all screen sizes */
@media (max-width: 768px) {
    .page-title {
        text-align: center !important;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .page-title h1,
    .page-title h2,
    .page-title h3 {
        text-align: center !important;
    }
}

/* Global checkout button styles - Override Bootstrap */
.checkout-btn {
    background-color: #ffc107 !important;
    border-color: #ffc107 !important;
    color: #000 !important;
    font-weight: 600 !important;
}

.checkout-btn:hover,
.checkout-btn:focus,
.checkout-btn:active {
    background-color: #e0a800 !important;
    border-color: #d39e00 !important;
    color: #000 !important;
}

.checkout-detail-btn {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: #fff !important;
    font-weight: 600 !important;
}

.checkout-detail-btn:hover,
.checkout-detail-btn:focus,
.checkout-detail-btn:active {
    background-color: #218838 !important;
    border-color: #1e7e34 !important;
    color: #fff !important;
}

/* SVG Icon Size Utilities */
.w-4 {
    width: 1rem;  /* 16px */
}

.h-4 {
    height: 1rem;  /* 16px */
}

.w-5 {
    width: 1.25rem;  /* 20px */
}

.h-5 {
    height: 1.25rem;  /* 20px */
}

.w-12 {
    width: 3rem;  /* 48px */
}

.h-12 {
    height: 3rem;  /* 48px */
}

/* Responsive Icon Sizes for Mobile */
@media (max-width: 768px) {
    /* Giảm gap, margin, padding của card-header và card-body xuống 5px trên mobile cho tất cả dashboard */
    .card {
        padding: 5px !important;
        gap: 5px !important;
    }
    
    .card-header {
        padding: 5px !important;
        margin: 0 !important;
        gap: 5px !important;
    }
    
    .card-body {
        padding: 5px !important;
        margin: 0 !important;
        gap: 5px !important;
    }
    
    /* Reduce icon sizes on mobile */
    .w-4 {
        width: 0.875rem;  /* 14px */
    }
    
    .h-4 {
        height: 0.875rem;  /* 14px */
    }
    
    .w-5 {
        width: 1rem;  /* 16px */
    }
    
    .h-5 {
        height: 1rem;  /* 16px */
    }
    
    .w-12 {
        width: 2rem;  /* 32px */
    }
    
    .h-12 {
        height: 2rem;  /* 32px */
    }
    
    /* Reduce button icon sizes on mobile */
    .btn svg,
    .btn-sm svg,
    .btn-primary svg,
    .btn-outline svg,
    .btn-danger svg {
        width: 0.875rem !important;
        height: 0.875rem !important;
    }
    
    /* Card title icons should be reasonable size */
    .card-title svg,
    .title-icon svg {
        width: 1.25rem !important;
        height: 1.25rem !important;
    }
}

@media (max-width: 480px) {
    /* Further reduce on very small screens */
    .w-4 {
        width: 0.75rem;  /* 12px */
    }
    
    .h-4 {
        height: 0.75rem;  /* 12px */
    }
    
    .w-5 {
        width: 0.875rem;  /* 14px */
    }
    
    .h-5 {
        height: 0.875rem;  /* 14px */
    }
    
    .w-12 {
        width: 1.5rem;  /* 24px */
    }
    
    .h-12 {
        height: 1.5rem;  /* 24px */
    }
}



/* === header.css === */
/* Header & Navigation Styles - SIMPLIFIED */

/* Navigation */
.navbar {
    background: var(--bg-primary);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 64px;
    padding: 0 var(--spacing-xl);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    height: 100%;
}

/* Header sections */
.nav-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.nav-center {
    display: none; /* Hidden on desktop */
}

.nav-right {
    display: flex;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
    transition: color 0.2s ease;
}

.app-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.nav-logo:hover {
    color: var(--primary-hover);
}

.nav-logo img {
    height: 28px;
    width: auto;
    border-radius: var(--radius-sm);
}

.home-icon {
    font-size: 1rem;
    color: var(--primary-color);
    transition: color 0.2s ease;
    margin-left: var(--spacing-xs);
}

.nav-logo:hover .home-icon {
    color: var(--primary-hover);
}

/* Navigation menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.nav-menu li a:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
    transform: translateY(-1px);
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-primary);
    min-width: 220px;
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    z-index: 1001;
    list-style: none;
    padding: var(--spacing-sm) 0;
    margin: var(--spacing-xs) 0 0 0;
    /* HIDDEN BY DEFAULT */
    display: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
}

.dropdown-menu li {
    margin: 0;
    width: 100%;
}

.dropdown-section-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary, #94a3b8);
    padding: var(--spacing-xs) var(--spacing-md);
    margin: 0 var(--spacing-xs);
    font-weight: 600;
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border-radius: 0;
    width: 100%;
    margin: 0 var(--spacing-xs);
    border-radius: var(--radius-md);
}

.dropdown-menu li a:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
    transform: translateX(4px);
}

/* Nested Dropdown (Menu 3 cấp) */
.dropdown-submenu {
    position: relative;
}

.submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.submenu-arrow {
    font-size: 0.75rem;
    margin-left: auto;
    transition: transform 0.2s ease;
}

.dropdown-submenu:hover .submenu-arrow {
    transform: translateX(4px);
}

.dropdown-submenu-menu {
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: var(--spacing-xs);
    background: var(--bg-primary);
    min-width: 220px;
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    z-index: 1002;
    list-style: none;
    padding: var(--spacing-sm) 0;
    /* HIDDEN BY DEFAULT */
    display: none;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-8px);
    transition: all 0.2s ease;
}

.dropdown-submenu:hover .dropdown-submenu-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.dropdown-submenu-menu li {
    margin: 0;
    width: 100%;
}

.dropdown-submenu-menu li a {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border-radius: 0;
    width: calc(100% - var(--spacing-md));
    margin: 0 var(--spacing-xs);
    border-radius: var(--radius-md);
}

.dropdown-submenu-menu li a:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
    transform: translateX(4px);
}

/* Adjust main dropdown width for nested menus */
.dropdown-mega .dropdown-menu {
    min-width: 240px;
}

/* Navigation toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.nav-toggle:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
}

.nav-toggle svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* User info */
.user-info {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    flex-direction: row !important;
}

.user-profile-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: opacity 0.3s ease;
}

.user-profile-link:hover {
    opacity: 0.8;
}

.user-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    flex-shrink: 0;
    text-transform: uppercase;
    overflow: hidden;
    position: relative;
    z-index: 1001;
    margin-top: 0;
    border: 4px solid var(--bg-primary);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.user-avatar:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
    margin-top: 0;
}

.user-name {
    display: none;
}

.logout-btn {
    background: var(--error-color);
    color: white;
    border: none;
    padding: var(--spacing-xs);
    border-radius: 50%;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
}

.logout-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.logout-btn svg {
    width: 1rem;
    height: 1rem;
}

/* Login link (unauthenticated) */
.login-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    transition: all 0.2s ease;
}

.login-link:hover,
.login-link:focus-visible {
    background: var(--accent-color, #f97316); /* orange */
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
    color: #fff;
}

.login-link:active {
    background: var(--accent-color, #ea580c); /* darker orange on press */
    transform: translateY(0);
}

.login-link i {
    font-size: 0.9rem;
}

/* Hard Refresh Icon Button (Unauthenticated) */
.hard-refresh-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
    margin-right: var(--spacing-sm);
}

.hard-refresh-icon-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.hard-refresh-icon-btn i {
    font-size: 16px;
}

/* User Menu Dropdown */
.user-menu-dropdown {
    position: relative;
    display: inline-block;
}

.user-menu-toggle {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.user-menu-toggle:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    transform: scale(1.05);
}

.user-menu-content {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 250px;
    max-width: 320px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    /* Max height: viewport height minus header (64px) - desktop only */
    max-height: calc(100vh - 64px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.user-menu-content.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-header {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.user-menu-header .user-info {
    text-align: center;
}

.user-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.user-role {
    font-size: 0.85rem;
    opacity: 0.9;
}

.user-menu-items {
    padding: 0.5rem 0;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    /* Smooth scrolling */
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 transparent;
}

/* Scrollbar styling for user-menu-items */
.user-menu-items::-webkit-scrollbar {
    width: 6px;
}

.user-menu-items::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 3px;
}

.user-menu-items::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

.user-menu-items::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.menu-item:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border-left-color: #667eea;
    transform: translateX(4px);
}

.menu-item i {
    width: 20px;
    margin-right: 0.75rem;
    font-size: 0.9rem;
}

.menu-item span {
    font-weight: 500;
    font-size: 0.9rem;
}

.menu-section-title {
    padding: 0.75rem 1rem 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.menu-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 0.5rem 0;
}

.menu-item.logout-item {
    color: #ef4444;
    margin-top: 0;
}

.menu-item.logout-item:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border-left-color: #ef4444;
}

/* =========================================== */
/* BREAKPOINT 1: MOBILE & TABLET (<= 1024px) */
/* =========================================== */
@media (max-width: 1024px) {
    .navbar {
        padding: 0 var(--spacing-md);
    }

    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
        width: 100%;
    }

    .nav-left {
        display: flex;
        align-items: center;
        gap: var(--spacing-sm);
        flex: 0 0 auto;
        z-index: 10;
    }

    .nav-logo {
        font-size: 1rem;
        margin-left: 0;
    }

    .nav-logo img {
        height: 20px;
    }
    
    /* Hide logo text on mobile */
    .logo-text {
        display: none;
    }
    
    /* Hide dashboard icons on mobile */
    .dashboard-icons {
        display: none;
    }
    
    /* Show dashboard summary icon on mobile */
    .dashboard-summary-mobile {
        display: block;
        order: -1;
    }
    
    .dashboard-summary-link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: var(--radius-lg);
        background: transparent;
        color: var(--primary-color);
        text-decoration: none;
        transition: all 0.3s ease;
        border: none;
        box-shadow: none;
        position: relative;
        overflow: hidden;
    }
    
    .dashboard-summary-link:hover {
        transform: translateY(-2px) scale(1.1);
        color: var(--primary-dark);
    }
    
    .dashboard-summary-link:active {
        transform: translateY(0) scale(0.95);
    }
    
    .dashboard-summary-link i {
        font-size: 24px;
        position: relative;
        z-index: 1;
    }
    
    /* Mobile Notification Bell */
    .notification-toggle {
        width: 44px !important;
        height: 44px !important;
        border-radius: var(--radius-lg);
        background: var(--bg-secondary);
        border: 1px solid var(--border-color);
        background-size: 24px 24px;
    }
    
    .notification-toggle i {
        font-size: 20px !important;
    }
    
    .notification-badge {
        width: 20px;
        height: 20px;
        font-size: 11px;
        top: -3px;
        right: -3px;
    }
    
    /* Mobile notification bell margin */
    .notification-bell {
        margin-right: 65px;
    }

    .nav-toggle {
        display: block !important;
        position: static;
        transform: none;
        left: auto;
        top: auto;
    }

    .nav-center {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 5;
        pointer-events: none;
    }

    .app-title {
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--text-primary);
        white-space: nowrap;
        text-align: center;
    }

    .nav-right {
        display: flex;
        align-items: center;
        flex: 0 0 auto;
        z-index: 10;
        position: relative;
    }

    .nav-right .user-info {
        display: flex !important;
        align-items: center !important;
        flex-direction: row !important;
    }

    /* Mobile Navigation Menu */
    .nav-menu {
        position: fixed !important;
        top: 64px !important;
        left: -100% !important;
        width: 80% !important;
        max-width: 300px !important;
        height: calc(100vh - 64px) !important;
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(20px) !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        padding: 20px !important;
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
        box-shadow: 0 8px 32px rgba(0,0,0,0.12) !important;
        border-right: 1px solid rgba(224, 224, 224, 0.3) !important;
        z-index: 1003 !important;
        overflow-y: auto !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 0 !important;
        transform: translateX(-20px) !important;
    }

    .nav-menu.active {
        left: 0 !important;
        opacity: 1 !important;
        transform: translateX(0) !important;
        padding-bottom: 85px !important; /* 75px bottom nav + 10px extra space */
    }
    
    /* Mobile Dropdown menus */
    .nav-menu .dropdown-menu {
        position: static !important;
        display: none !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 1004 !important;
        pointer-events: auto !important;
        transform: none !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: none !important;
    }
    
    /* Mobile Nested Dropdown (Submenu) */
    .nav-menu .dropdown-submenu-menu {
        position: static !important;
        display: none !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 1005 !important;
        pointer-events: auto !important;
        transform: none !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 0 0 20px !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: none !important;
        margin-left: 0 !important;
    }
    
    .nav-menu .dropdown-submenu-menu.show {
        display: block !important;
    }
    
    .nav-menu .dropdown-menu.show {
        display: block !important;
        max-height: none !important;
        overflow: visible !important;
        height: auto !important;
    }
    
    .nav-menu .dropdown-menu li a {
        pointer-events: auto !important;
        z-index: 1005 !important;
        position: relative !important;
        padding: 8px 16px !important;
        margin: 2px 0 !important;
        border-radius: 6px !important;
        transition: all 0.2s ease !important;
    }
    
    .nav-menu .dropdown-menu li a:hover {
        background: rgba(0, 0, 0, 0.05) !important;
        transform: translateX(4px) !important;
        color: var(--primary-color) !important;
    }
    
    .nav-menu .dropdown-toggle {
        pointer-events: auto !important;
        z-index: 1006 !important;
    }

    .nav-menu li {
        width: 100%;
        margin-bottom: var(--spacing-sm);
    }

    .nav-menu li a {
        display: flex;
        align-items: center;
        gap: var(--spacing-sm);
        padding: var(--spacing-md);
        width: 100%;
        border-radius: var(--radius-md);
        font-size: 0.95rem;
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        position: relative;
        overflow: hidden;
    }

    .nav-menu li a::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: left 0.5s;
    }

    .nav-menu li a:hover::before {
        left: 100%;
    }

    .nav-menu li a:hover {
        background: rgba(0, 0, 0, 0.05);
        transform: translateX(8px);
        color: var(--primary-color);
        box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    }

    /* Mobile dropdown styles */
    .dropdown-menu {
        position: static !important;
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(10px) !important;
        border: 1px solid rgba(0, 0, 0, 0.1) !important;
        padding: 0 !important;
        margin: var(--spacing-sm) 0 0 var(--spacing-lg) !important;
        border-radius: var(--radius-md) !important;
        display: none !important;
        overflow: hidden !important;
        max-height: 0 !important;
        opacity: 0 !important;
        transform: translateY(-10px) !important;
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
        z-index: 1000 !important;
        box-shadow: 0 4px 16px rgba(0,0,0,0.08) !important;
    }

    .dropdown-menu.show {
        display: block !important;
        max-height: 300px !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        padding: var(--spacing-sm) 0 !important;
        background: rgba(255, 255, 255, 0.95) !important;
        border: 1px solid rgba(0, 0, 0, 0.1) !important;
        box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
    }
    
    .dropdown-menu.show li {
        animation: slideInFromLeft 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
        opacity: 0;
        transform: translateX(-20px);
    }
    
    .dropdown-menu.show li:nth-child(1) { animation-delay: 0.05s; }
    .dropdown-menu.show li:nth-child(2) { animation-delay: 0.1s; }
    .dropdown-menu.show li:nth-child(3) { animation-delay: 0.15s; }
    .dropdown-menu.show li:nth-child(4) { animation-delay: 0.2s; }
    .dropdown-menu.show li:nth-child(5) { animation-delay: 0.25s; }
    
    @keyframes slideInFromLeft {
        from {
            opacity: 0;
            transform: translateX(-20px) scale(0.95);
        }
        to {
            opacity: 1;
            transform: translateX(0) scale(1);
        }
    }

    .dropdown-menu li a {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.9rem;
        color: var(--text-muted);
        margin: 0;
        border-radius: var(--radius-sm);
    }

    .dropdown-menu li a:hover {
        background: var(--bg-tertiary);
        transform: none;
        padding-left: var(--spacing-md);
    }

    .user-info {
        flex-direction: row !important;
    }

    .user-avatar {
        width: 74px !important;
        height: 74px !important;
        font-size: 1.6rem !important;
        border: 4px solid var(--bg-primary);
        position: absolute;
        top: calc(100% - 38px) !important;
        right: var(--spacing-xl);
        z-index: 1001;
    }

    .logout-btn {
        width: 28px;
        height: 28px;
    }

    /* Ensure user menu doesn't exceed screen height on mobile */
    /* Header (64px) + Bottom Nav (75px) = 139px */
    .user-menu-content {
        max-height: calc(100vh - 139px);
        overflow: hidden; /* Let user-menu-items handle scrolling */
    }

    .user-menu-content::-webkit-scrollbar {
        width: 4px;
    }

    .user-menu-content::-webkit-scrollbar-track {
        background: var(--bg-secondary);
        border-radius: 2px;
    }

    .user-menu-content::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 2px;
    }

    .user-menu-content::-webkit-scrollbar-thumb:hover {
        background: var(--accent-color);
    }
}

/* =========================================== */
/* BREAKPOINT 2: DESKTOP PC (> 1024px) */
/* =========================================== */
@media (min-width: 1025px) {
    .nav-container {
        justify-content: flex-start;
        align-items: center;
        width: 100%;
    }
    
    .nav-center {
        display: none !important;
    }
    
    .nav-left,
    .nav-right {
        position: static;
        z-index: auto;
    }
    
    .nav-toggle {
        display: none !important;
    }

    .nav-left {
        flex: 0 0 auto;
        margin-right: var(--spacing-lg);
    }

    .nav-menu {
        display: flex;
        flex: 1 1 0;
        min-width: 0;
        justify-content: flex-start;
    }

    .nav-right {
        margin-left: auto;
        flex: 0 0 auto;
        align-items: center;
        display: flex;
    }

    /* Desktop Dropdown Hover Behavior */
    .dropdown:hover .dropdown-menu {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }
    
    /* Hide logo text on mobile */
    .logo-text {
        display: block;
    }
    
    /* Dashboard icons - hide text on desktop */
    .dashboard-icon .nav-text {
        display: none;
    }
    
    .dashboard-icon .nav-link {
        padding: var(--spacing-sm);
        border-radius: var(--radius-md);
        transition: all 0.2s ease;
    }
    
    .dashboard-icon .nav-link:hover {
        background: var(--bg-hover);
        color: var(--primary-color);
    }
    
    /* Dashboard Summary Mobile Icon */
    .dashboard-summary-mobile {
        display: none;
    }
    
    /* Dashboard Icons in User Info (PC) */
    .dashboard-icons {
        display: flex;
        align-items: center;
        gap: var(--spacing-xs);
        margin-right: var(--spacing-sm);
    }
    
    .dashboard-icon-link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: var(--radius-md);
        background: var(--bg-secondary);
        color: var(--text-primary);
        text-decoration: none;
        transition: all 0.2s ease;
        border: 1px solid var(--border-color);
        position: relative;
    }
    
    .dashboard-icon-link:hover {
        background: var(--primary-color);
        color: white;
        transform: translateY(-1px);
        box-shadow: var(--shadow-md);
    }
    
    .dashboard-icon-link.active {
        background: var(--primary-color);
        color: white !important;
        border-color: var(--primary-color);
    }
    
    .dashboard-icon-link.active i {
        color: white !important;
    }
    
    .dashboard-icon-link i {
        font-size: 16px;
    }
    
    /* User Info Layout */
    .user-info {
        display: flex;
        align-items: center;
        gap: 0;
        flex-direction: row;
    }
    
    /* Notification Bell */
    .notification-bell {
        position: relative;
        margin-right: var(--spacing-sm);
    }
    
    .notification-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: var(--radius-md);
        background: var(--bg-secondary);
        color: var(--text-primary);
        text-decoration: none;
        transition: all 0.2s ease;
        border: 1px solid var(--border-color);
        background-size: 24px 24px;
        position: relative;
    }
    
    .notification-toggle:hover {
        background: var(--primary-color);
        color: white;
        transform: translateY(-1px);
        box-shadow: var(--shadow-md);
    }
    
    .notification-toggle i {
        font-size: 16px;
    }
    
    .notification-badge {
        position: absolute;
        top: -2px;
        right: -2px;
        background: var(--danger-color);
        color: white;
        border-radius: 50%;
        width: 18px;
        height: 18px;
        font-size: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        border: 2px solid var(--bg-primary);
    }
    
    /* Fix hover gap issue - remove margin and add padding */
    .dropdown-menu {
        margin: 0 !important;
        padding-top: 4px !important;
        top: calc(100% - 4px) !important;
    }

    .user-info {
        gap: 42px !important;
        flex-direction: row !important;
    }

    .user-avatar {
        width: 64px;
        height: 64px;
        font-size: 1.5rem;
        border: 4px solid var(--bg-primary);
        position: absolute;
        top: calc(100% - 48px);
        right: var(--spacing-xl);
        z-index: 1001;
    }

    .logout-btn {
        width: 32px;
        height: 32px;
        padding: var(--spacing-sm);
    }
}

/* Large Desktop Only - Avatar 88x88px */
@media (min-width: 1400px) and (orientation: landscape) and (min-height: 700px) {
    .user-avatar {
        width: 88px !important;
        height: 88px !important;
        font-size: 2rem !important;
    }
}

/* === footer.css === */
/**
 * Footer - Compact & Minimal Design
 */

.main-footer {
    background: #2d3748;
    color: #e2e8f0;
    padding: 2rem 1rem 1rem 1rem;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.1);
}

/* Company Section */
.footer-company {
    flex: 1;
    max-width: 400px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.footer-logo-img {
    width: 32px;
    height: 32px;
}

.footer-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.footer-company-full-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0.5rem 0;
}

.footer-description {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #cbd5e0;
    margin: 0.5rem 0 0 0;
}

/* Contact Section */
.footer-contact {
    flex: 0 0 auto;
    min-width: 300px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: #cbd5e0;
}

.contact-item i {
    color: #4299e1;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

/* Footer Bottom */
.footer-bottom {
    padding-top: 1rem;
    text-align: center;
}

.footer-copyright {
    font-size: 0.8rem;
    color: #a0aec0;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .main-footer {
        /* Padding bottom = 2x bottom nav height (2 x 60px = 120px) */
        padding: 1.5rem 1rem 120px 1rem;
        /* Add bottom margin for bottom nav + FAB (60px nav + 34px FAB extend = 94px, use 100px for safety) */
        margin-bottom: 100px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        padding-bottom: 1rem;
    }
    
    .footer-company {
        max-width: 100%;
    }
    
    .footer-contact {
        min-width: auto;
    }
    
    .contact-item {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .footer-logo-text {
        font-size: 1.1rem;
    }
    
    .footer-description {
        font-size: 0.8rem;
    }
}


/* === components/bottom-nav.css === */
/**
 * Bottom Navigation Component - Standalone CSS
 * Mobile-first navigation bar with 5 tabs + FAB
 * NO dependencies on other CSS files
 */

.bottom-navigation {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 75px;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0.75rem 0;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

/* Hide on desktop */
@media (min-width: 768px) {
  .bottom-navigation {
    display: none;
  }
}

/* Nav Item */
.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  flex: 1;
  padding: 0.5rem;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.15s;
  position: relative;
  min-width: 64px;
  max-width: 96px;
}

.bottom-nav-item:active {
  transform: scale(0.95);
  transition: transform 0.1s;
}

/* Icon */
.bottom-nav-item i {
  font-size: 24px;
  line-height: 1;
}

/* Label */
.bottom-nav-item span {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  width: 100%;
  display: block;
}

/* Active state */
.bottom-nav-item.active {
  color: #2563eb;
}

.bottom-nav-item.active i {
  transform: translateY(-2px);
}

/* Badge (notification count) */
.bottom-nav-item .badge {
  position: absolute;
  top: 4px;
  right: calc(50% - 16px);
  background: #ef4444;
  color: white;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Floating Action Button (FAB) - Center button - PROMINENT DESIGN */
.fab-checkin {
  width: 68px;
  height: 68px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #3b82f6, #2563eb); /* Blue gradient */
  color: white;
  border: none;
  box-shadow: 
    0 8px 24px rgba(59, 130, 246, 0.5),
    0 4px 12px rgba(59, 130, 246, 0.3),
    0 0 0 4px #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  margin-top: -34px; /* Raise it higher above the nav bar */
  z-index: 10;
}

.fab-checkin i {
  font-size: 34px;
}

.fab-checkin:hover {
  transform: scale(1.08);
  box-shadow: 
    0 12px 32px rgba(59, 130, 246, 0.6),
    0 6px 16px rgba(59, 130, 246, 0.4),
    0 0 0 4px #ffffff;
}

.fab-checkin:active {
  transform: scale(0.95);
  box-shadow: 
    0 4px 12px rgba(59, 130, 246, 0.4),
    0 0 0 4px #ffffff;
}

/* Ripple effect */
.fab-checkin::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
}

.fab-checkin:active::after {
  animation: ripple 0.6s ease-out;
}

@keyframes ripple {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
  }
}

/* Pulse animation for FAB when user should check-in */
.fab-checkin.pulse {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 
      0 8px 24px rgba(59, 130, 246, 0.5),
      0 4px 12px rgba(59, 130, 246, 0.3),
      0 0 0 4px #ffffff;
  }
  50% {
    transform: scale(1.08);
    box-shadow: 
      0 12px 36px rgba(59, 130, 246, 0.7),
      0 6px 20px rgba(59, 130, 246, 0.5),
      0 0 0 4px #ffffff;
  }
}

/* Dark mode adjustments */
[data-theme="dark"] .bottom-navigation {
  background: #1e293b;
  border-top-color: #334155;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .fab-checkin {
  box-shadow: 
    0 8px 24px rgba(59, 130, 246, 0.4),
    0 4px 12px rgba(59, 130, 246, 0.2),
    0 0 0 4px #1e293b;
}

[data-theme="dark"] .fab-checkin:hover {
  box-shadow: 
    0 12px 32px rgba(59, 130, 246, 0.5),
    0 6px 16px rgba(59, 130, 246, 0.3),
    0 0 0 4px #1e293b;
}

/* Add padding to body to prevent bottom nav from covering content */
@media (max-width: 767px) {
  body {
    padding-bottom: 85px; /* 75px nav + 10px extra space */
  }
  
  footer, .footer, .page-footer {
    padding-bottom: 85px;
  }
}

/* Safe area for iPhone X and newer */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .bottom-navigation {
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
    height: calc(75px + env(safe-area-inset-bottom));
  }
  
  @media (max-width: 767px) {
    body {
      padding-bottom: calc(85px + env(safe-area-inset-bottom));
    }
    
    footer, .footer, .page-footer {
      padding-bottom: calc(85px + env(safe-area-inset-bottom));
    }
  }
}


/* === offline-indicator.css === */
/* Offline Indicator Styles */

.offline-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    z-index: 10000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.offline-banner i {
    font-size: 16px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Toast notifications */
.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: white;
    color: #2d3748;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 90%;
    text-align: center;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.toast-success {
    background: #48bb78;
    color: white;
}

.toast.toast-error {
    background: #f56565;
    color: white;
}

.toast.toast-info {
    background: #4299e1;
    color: white;
}

.toast.toast-warning {
    background: #ed8936;
    color: white;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .offline-banner {
        font-size: 12px;
        padding: 10px 16px;
    }
    
    .toast {
        bottom: 70px;
        font-size: 13px;
        padding: 12px 20px;
    }
}



/* === global-search.css === */
/* Global Search Styles */

.global-search-wrapper {
    position: relative;
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
}

.search-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.global-search-input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #f7fafc;
}

.global-search-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.search-icon {
    position: absolute;
    left: 16px;
    color: #a0aec0;
    font-size: 16px;
}

.search-shortcut {
    position: absolute;
    right: 12px;
    background: #e2e8f0;
    color: #718096;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
}

.global-search-input:focus + .search-shortcut {
    display: none;
}

/* Results Container */
.search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    max-height: 70vh;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-results.active {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Results Content */
.search-results-container {
    padding: 12px;
}

.search-section {
    margin-bottom: 16px;
}

.search-section:last-child {
    margin-bottom: 0;
}

.search-section-title {
    font-size: 12px;
    font-weight: 700;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 8px 12px;
}

.search-items {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    color: #2d3748;
    transition: all 0.2s ease;
}

.search-item:hover {
    background: #f7fafc;
    transform: translateX(4px);
}

.search-item-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    font-size: 16px;
    flex-shrink: 0;
}

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

.search-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 2px;
}

.search-item-title mark {
    background: #fef5e7;
    color: #e67e22;
    padding: 2px 4px;
    border-radius: 4px;
}

.search-item-subtitle {
    font-size: 12px;
    color: #718096;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-item-arrow {
    color: #cbd5e0;
    font-size: 14px;
    transition: all 0.2s ease;
}

.search-item:hover .search-item-arrow {
    color: #667eea;
    transform: translateX(4px);
}

/* Loading & Empty States */
.search-loading,
.search-error,
.search-empty {
    padding: 32px 24px;
    text-align: center;
    color: #718096;
}

.search-loading i {
    font-size: 24px;
    color: #667eea;
    margin-bottom: 8px;
}

.search-error {
    color: #f56565;
}

.search-error i {
    font-size: 24px;
    margin-bottom: 8px;
}

.search-empty i {
    font-size: 32px;
    color: #cbd5e0;
    margin-bottom: 12px;
}

.search-empty p {
    margin: 0;
    font-size: 14px;
}

/* Custom scrollbar for results */
.search-results::-webkit-scrollbar {
    width: 8px;
}

.search-results::-webkit-scrollbar-track {
    background: #f7fafc;
    border-radius: 0 16px 16px 0;
}

.search-results::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .global-search-wrapper {
        max-width: none;
        margin: 10px 0;
        order: -1;
        flex-basis: 100%;
    }
    
    .search-input-container {
        width: 100%;
    }
    
    .search-shortcut {
        display: none;
    }
    
    .search-results {
        max-height: 60vh;
    }
    
    .search-item {
        padding: 10px 12px;
    }
    
    .search-item-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

/* Tablet */
@media (max-width: 1024px) and (min-width: 769px) {
    .global-search-wrapper {
        max-width: 400px;
    }
}



/* === skeleton-loading.css === */
/* Skeleton Loading States */

/* Base skeleton element */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Skeleton variants */
.skeleton-text {
    height: 12px;
    margin-bottom: 8px;
}

.skeleton-text.short {
    width: 40%;
}

.skeleton-text.medium {
    width: 60%;
}

.skeleton-text.long {
    width: 80%;
}

.skeleton-text.full {
    width: 100%;
}

.skeleton-title {
    height: 24px;
    width: 60%;
    margin-bottom: 16px;
    border-radius: 6px;
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.skeleton-avatar.large {
    width: 64px;
    height: 64px;
}

.skeleton-avatar.small {
    width: 32px;
    height: 32px;
}

.skeleton-button {
    height: 40px;
    width: 120px;
    border-radius: 8px;
}

.skeleton-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.skeleton-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.skeleton-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Table skeleton */
.skeleton-table {
    width: 100%;
}

.skeleton-table-row {
    display: flex;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.skeleton-table-row:last-child {
    border-bottom: none;
}

.skeleton-table-cell {
    flex: 1;
}

/* List skeleton */
.skeleton-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skeleton-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.skeleton-list-item-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
}

.skeleton-list-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Dashboard skeleton */
.skeleton-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.skeleton-widget {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.skeleton-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.skeleton-widget-title {
    height: 20px;
    width: 50%;
    border-radius: 6px;
}

.skeleton-widget-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.skeleton-widget-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skeleton-stat {
    height: 48px;
    border-radius: 10px;
}

/* Chart skeleton */
.skeleton-chart {
    height: 250px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.skeleton-chart::before {
    content: '';
    position: absolute;
    bottom: 20%;
    left: 10%;
    right: 10%;
    height: 60%;
    background: linear-gradient(135deg, transparent 40%, rgba(224, 224, 224, 0.5) 50%, transparent 60%);
}

/* Form skeleton */
.skeleton-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skeleton-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skeleton-label {
    height: 14px;
    width: 25%;
    border-radius: 4px;
}

.skeleton-input {
    height: 44px;
    border-radius: 8px;
}

/* Container utilities */
.skeleton-container {
    padding: 24px;
}

.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* Animation speed variants */
.skeleton.fast {
    animation-duration: 1s;
}

.skeleton.slow {
    animation-duration: 2s;
}

/* Pulse variant (alternative to shimmer) */
.skeleton.pulse {
    animation: pulse-loading 1.5s ease-in-out infinite;
    background: #f0f0f0;
}

@keyframes pulse-loading {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .skeleton {
        background: linear-gradient(90deg, #2d3748 25%, #4a5568 50%, #2d3748 75%);
        background-size: 200% 100%;
    }
    
    .skeleton-card,
    .skeleton-list-item,
    .skeleton-widget {
        background: #1a202c;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    
    .skeleton-table-row {
        border-bottom-color: #2d3748;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .skeleton-dashboard {
        grid-template-columns: 1fr;
    }
    
    .skeleton-grid {
        grid-template-columns: 1fr;
    }
    
    .skeleton-card {
        padding: 16px;
    }
    
    .skeleton-widget {
        padding: 16px;
    }
}

/* Utility classes */
.hide-when-loaded .skeleton {
    display: none;
}

.show-when-loading {
    display: none;
}

body.is-loading .show-when-loading {
    display: block;
}

body.is-loading .hide-when-loading {
    display: none;
}



/* === loading.css === */
/**
 * Page Loading Overlay
 * Beautiful loading animation with company logo
 */

/* Loading Overlay */
.page-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

/* Loading Container */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* Logo Spinner */
.loading-logo-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-logo {
    width: 80px;
    height: 80px;
    opacity: 0.7;
    animation: logoFloat 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

/* Rotating rings around logo */
.loading-ring {
    position: absolute;
    border-radius: 50%;
    border: 3px solid transparent;
}

.loading-ring-1 {
    width: 120px;
    height: 120px;
    border-top-color: #667eea;
    border-right-color: #667eea;
    animation: spin 1.5s linear infinite;
}

.loading-ring-2 {
    width: 100px;
    height: 100px;
    border-bottom-color: #764ba2;
    border-left-color: #764ba2;
    animation: spin 2s linear infinite reverse;
}

.loading-ring-3 {
    width: 140px;
    height: 140px;
    border-top-color: rgba(102, 126, 234, 0.3);
    border-bottom-color: rgba(102, 126, 234, 0.3);
    animation: spin 2.5s linear infinite;
}

/* Pulsing glow effect */
.loading-glow {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.3) 0%, transparent 70%);
    animation: pulse 2s ease-in-out infinite;
}

/* Loading Text */
.loading-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
    animation: textFade 1.5s ease-in-out infinite;
}

.loading-dots {
    display: inline-block;
}

.loading-dots::after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}

/* Loading Progress Bar */
.loading-progress {
    width: 200px;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    background-size: 200% 100%;
    border-radius: 2px;
    animation: progressSlide 1.5s ease-in-out infinite;
}

/* Animations */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.05);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

@keyframes textFade {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

@keyframes dots {
    0%, 20% {
        content: '';
    }
    40% {
        content: '.';
    }
    60% {
        content: '..';
    }
    80%, 100% {
        content: '...';
    }
}

@keyframes progressSlide {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 200% 0%;
    }
}

/* Shimmer effect on logo */
@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: 200px 0;
    }
}

.loading-logo::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.6) 50%,
        transparent 100%
    );
    animation: shimmer 2s infinite;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .loading-logo-wrapper {
        width: 100px;
        height: 100px;
    }
    
    .loading-logo {
        width: 65px;
        height: 65px;
    }
    
    .loading-ring-1 {
        width: 100px;
        height: 100px;
    }
    
    .loading-ring-2 {
        width: 85px;
        height: 85px;
    }
    
    .loading-ring-3 {
        width: 115px;
        height: 115px;
    }
    
    .loading-glow {
        width: 85px;
        height: 85px;
    }
    
    .loading-text {
        font-size: 1rem;
    }
    
    .loading-progress {
        width: 180px;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .page-loading-overlay {
        background: rgba(45, 55, 72, 0.95);
    }
    
    .loading-text {
        color: #e2e8f0;
    }
    
    .loading-progress {
        background: rgba(255, 255, 255, 0.1);
    }
}



