/* ============================================
   Kamuli Resort - Modern UI/UX Styles
   Professional Hotel Management System Design
   ============================================ */

:root {
    /* Primary Brand Colors - Hotel Grade */
    --primary: #1a5f7a;
    --primary-dark: #0f4a63;
    --primary-light: #2d7a9a;
    --secondary: #d4af37;
    --accent: #c9a961;
    
    /* Neutral Colors */
    --gray-50: #f8f9fa;
    --gray-100: #e9ecef;
    --gray-200: #dee2e6;
    --gray-300: #ced4da;
    --gray-400: #adb5bd;
    --gray-500: #6c757d;
    --gray-600: #495057;
    --gray-700: #343a40;
    --gray-800: #212529;
    --gray-900: #0d1117;
    
    /* Status Colors */
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffc107;
    --danger: #dc3545;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
}

/* ============================================
   Global Styles
   ============================================ */

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: #f5f7fa;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

.text-muted {
    color: var(--gray-600) !important;
}

/* ============================================
   Modern Sidebar Navigation
   ============================================ */

.sidebar-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Hide sidebar since menu is in topbar */
.sidebar-wrapper .sidebar {
    display: none;
}

.sidebar {
    width: 0;
    display: none; /* Hide sidebar since menu is now in topbar */
}

.sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background: var(--gray-50);
    margin: 0; /* Remove any margin */
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
    transition: transform 0.2s ease;
}

.sidebar-brand:hover {
    transform: translateX(4px);
    color: var(--secondary) !important;
}

.sidebar-brand i {
    font-size: 1.5rem;
}

.sidebar-brand-text {
    white-space: nowrap;
}

.sidebar-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1rem 0;
    min-height: 0; /* Allow flex child to shrink */
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-item {
    margin: 0.25rem 0;
    position: relative;
    z-index: 100;
}

/* When sidebar item has active submenu, increase z-index */
.sidebar-item:has(.sidebar-submenu.show),
.sidebar-item:has(.sidebar-submenu.collapse.show) {
    z-index: 1050;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: var(--gray-700);
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    background-color: var(--gray-100);
    color: var(--primary);
    border-left-color: var(--primary);
    transform: translateX(4px);
}

.sidebar-link.active {
    background: linear-gradient(90deg, rgba(26, 95, 122, 0.1) 0%, transparent 100%);
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 600;
}

.sidebar-link i {
    font-size: 1.125rem;
    width: 1.5rem;
    text-align: center;
}

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

.sidebar-dropdown-toggle[aria-expanded="true"] .sidebar-arrow {
    transform: rotate(180deg);
}

.sidebar-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: var(--gray-50);
    border-left: 3px solid var(--primary);
    margin-left: 1.5rem;
    position: relative;
    z-index: 1050;
}

/* When submenu is shown/active, ensure it's on top */
.sidebar-submenu.show,
.sidebar-submenu.collapse.show {
    z-index: 1050 !important;
    position: relative;
}

.sidebar-submenu-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem 0.75rem 2.5rem;
    color: var(--gray-600);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9375rem;
}

.sidebar-submenu-link:hover {
    background-color: var(--gray-100);
    color: var(--primary);
    padding-left: 3rem;
}

.sidebar-submenu-link.active {
    background-color: rgba(26, 95, 122, 0.1);
    color: var(--primary);
    font-weight: 600;
    border-left: 3px solid var(--primary);
    padding-left: calc(2.5rem - 3px);
}

.sidebar-submenu-link i {
    font-size: 1rem;
    width: 1.25rem;
}

/* Ensure forms and cards don't overlap submenus/dropdowns */
.card,
.form-control,
.form-select,
.form-group,
.form-label,
.input-group,
.form-check,
.btn-group {
    position: relative;
    z-index: 1;
}

/* Ensure modals are still on top of everything */
.modal {
    z-index: 1070;
}

.modal-backdrop {
    z-index: 1065;
}

/* Ensure all dropdown menus appear above forms */
.dropdown-menu {
    z-index: 1060 !important;
}

.dropdown.show .dropdown-menu {
    z-index: 1060 !important;
}

/* Sidebar Order Summary Widget */
.sidebar-order-summary {
    position: relative;
    background: #ffffff;
    border-top: 2px solid var(--gray-200);
    border-bottom: 2px solid var(--gray-200);
    max-height: 50vh;
    display: flex;
    flex-direction: column;
    margin: 0.5rem 0;
}

.sidebar-order-header {
    flex-shrink: 0;
}

.sidebar-order-body {
    flex: 1;
    overflow-y: auto;
    background: var(--gray-50);
}

.sidebar-order-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.875rem;
}

.sidebar-order-item:last-child {
    border-bottom: none;
}

.sidebar-order-item-name {
    font-weight: 600;
    color: var(--gray-900);
}

.sidebar-order-item-details {
    font-size: 0.75rem;
    color: var(--gray-600);
}

.sidebar-order-item-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

/* Adjust sidebar nav to account for order summary */
.sidebar:has(.sidebar-order-summary) .sidebar-nav {
    overflow-y: auto;
    padding-bottom: 0.5rem;
    margin-bottom: 0;
}


/* Sidebar Overlay (Mobile) */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 120px; /* Start immediately below both header bars */
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
    margin: 0; /* Remove any margin */
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Main Content Area */
.main-content {
    flex: 1;
    margin-left: 0; /* No sidebar margin */
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 120px); /* Full height minus both headers */
    margin-top: 120px; /* Account for topmost bar (46px) + primary top bar (74px) */
    transition: margin-left 0.3s ease;
}

/* Top Bar - Full Width Header */
/* New Topmost Top Bar */
.topbar-topmost {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    width: 100%;
    height: 46px; /* Height for topmost bar (increased by 10% from 42px) */
}

.topbar-topmost-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 2rem;
    max-width: 100%;
    height: 100%;
}

.topbar-topmost-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.topbar-topmost-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar-topmost-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 1.125rem; /* Increased from 0.9375rem (15px) to 1.125rem (18px) */
}

.topbar-topmost-brand:hover {
    color: #ffffff !important;
    opacity: 0.9;
}

.topbar-topmost-brand-text {
    color: #ffffff;
    white-space: nowrap;
    font-size: 1.125rem; /* Increased font size */
    font-weight: 600;
}

.topbar-topmost-brand img {
    max-height: 36px !important; /* Increased from 30px */
    max-width: 144px !important; /* Increased from 120px */
}

.topbar-topmost .topbar-datetime {
    color: #ffffff;
}

.topbar-topmost .topbar-datetime-item {
    color: #ffffff;
    font-size: 0.875rem;
}

.topbar-topmost .topbar-notification-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
}

.topbar-topmost .topbar-notification-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff !important;
}

.topbar-topmost .topbar-user-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
}

.topbar-topmost .topbar-user-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff !important;
}

.topbar-topmost .topbar-user-name,
.topbar-topmost .topbar-user-role {
    color: #ffffff !important;
}

.topbar-topmost .topbar-user-avatar {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.topbar-full {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-bottom: 3px solid var(--secondary);
    box-shadow: var(--shadow-md);
    position: fixed;
    top: 46px; /* Position below topmost bar (updated to match new height) */
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    height: 74px; /* Fixed header height (increased by 5% from 70px) */
}

.topbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 100%;
    height: 100%;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.topbar-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.topbar-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.5rem;
    transition: all 0.2s ease;
}

.topbar-brand:hover {
    color: var(--secondary) !important;
    transform: translateX(4px);
}

.topbar-brand i {
    font-size: 1.75rem;
}

.topbar-brand img {
    max-height: 60px;
    max-width: 240px;
    object-fit: contain;
    display: block;
}

.topbar-brand-text {
    white-space: nowrap;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar-datetime {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.topbar-datetime-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    font-size: 0.9375rem;
    font-weight: 500;
    white-space: nowrap;
}

.topbar-datetime-item i {
    font-size: 1.125rem;
    opacity: 0.9;
}

.topbar-notification-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
    border-radius: var(--radius-lg);
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    white-space: nowrap;
    gap: 0.5rem;
}

.topbar-notification-btn i {
    font-size: 1.125rem;
    color: #ffffff;
    transition: color 0.2s ease;
}

.topbar-notification-btn #orderNotificationText {
    color: #ffffff;
    transition: color 0.2s ease;
}

.topbar-notification-btn #orderNotificationCount {
    color: #ffffff;
    transition: color 0.2s ease;
}

/* When there are pending orders, change all to red */
.topbar-notification-btn.has-pending i,
.topbar-notification-btn.has-pending #orderNotificationText,
.topbar-notification-btn.has-pending #orderNotificationCount {
    color: #dc3545 !important;
}

.topbar-notification-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

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

.topbar-notification-badge {
    position: absolute;
    top: -0.375rem;
    right: -0.375rem;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #ffffff !important;
    border-radius: 1rem;
    min-width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    border: 2px solid var(--primary);
    animation: pulse 2s infinite;
    padding: 0 0.375rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Pending expenditure quotations - red on top bar for assigned approvers */
.topbar-quotation-pending {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
}
.topbar-quotation-pending i,
.topbar-quotation-pending .topbar-quotation-count,
.topbar-quotation-pending .d-none.d-md-inline {
    color: #ffffff !important;
}
.topbar-quotation-pending .topbar-quotation-count {
    font-weight: 700;
    min-width: 1.25rem;
    display: inline-block;
    text-align: center;
}
.topbar-quotation-pending:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 12px rgba(220, 53, 69, 0.5);
}

/* Alternative: Show count inline in red if badge style doesn't work */
.topbar-notification-btn .text-danger {
    color: #dc3545 !important;
    font-weight: 700;
    margin-left: 0.25rem;
}

.topbar-notification-badge:empty {
    display: none;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 4px rgba(220, 53, 69, 0);
    }
}

.topbar-user-dropdown {
    position: relative;
}

.topbar-user-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    transition: all 0.2s ease;
    cursor: pointer;
}

.topbar-user-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.topbar-user-btn[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.25);
}

.topbar-user-avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.25rem;
}

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

.topbar-user-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: #ffffff;
    line-height: 1.2;
}

.topbar-user-role {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.topbar-user-arrow {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.topbar-user-btn[aria-expanded="true"] .topbar-user-arrow {
    transform: rotate(180deg);
}

.topbar-dropdown-menu {
    margin-top: 0.5rem;
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    min-width: 250px;
}

/* Procurement topbar menu: landscape split — inventory (left) | procurement (right) */
.topbar-store-split-dropdown {
    min-width: 250px;
    max-width: 92vw;
    padding: 0.35rem 0.5rem 0.5rem;
}

.topbar-store-split-dropdown--two-pane {
    min-width: min(92vw, 560px);
}

.topbar-store-split-dropdown .topbar-store-split-dropdown__heading {
    padding: 0.5rem 0.75rem 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-align: left;
    color: var(--gray-600);
    background: transparent;
}

.topbar-store-split-dropdown .topbar-store-split-dropdown__pane {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.15rem 0.25rem;
}

@media (min-width: 992px) {
    .topbar-store-split-dropdown .topbar-store-split-dropdown__pane--store {
        border-right: 1px solid var(--gray-200);
        padding-right: 0.65rem;
    }

    .topbar-store-split-dropdown .topbar-store-split-dropdown__pane--procurement {
        padding-left: 0.65rem;
    }
}

@media (max-width: 991.98px) {
    .topbar-store-split-dropdown .topbar-store-split-dropdown__pane--procurement {
        border-top: 1px solid var(--gray-200);
        margin-top: 0.35rem;
        padding-top: 0.35rem;
    }
}

/* Procurement dashboard: collapsible roadmap card */
#procRoadmapToggle:not(.collapsed) .procurement-roadmap-chevron {
    transform: rotate(180deg);
}
.procurement-roadmap-chevron {
    transition: transform 0.2s ease;
}

.topbar-dropdown-menu .dropdown-header {
    padding: 1rem;
    text-align: center;
    background: var(--gray-50);
    border-radius: var(--radius);
}

.topbar-user-avatar-lg {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 2rem;
    margin: 0 auto;
}

.topbar-dropdown-menu .dropdown-item {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.topbar-dropdown-menu .dropdown-item:hover {
    background-color: var(--gray-100);
    color: var(--primary);
    transform: translateX(4px);
}

.topbar-dropdown-menu .dropdown-item.text-danger:hover {
    background-color: var(--danger);
    color: #ffffff;
    transform: translateX(4px);
}

/* Legacy Top Bar (for backward compatibility) */
.topbar {
    background: #ffffff;
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Second Top Bar */
.topbar-secondary {
    display: none; /* Hidden - menu items moved to primary top bar */
    background: #ffffff;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 70px; /* Start immediately below first topbar */
    left: 0;
    right: 0;
    z-index: 999;
    width: 100%;
    height: auto;
    min-height: 50px;
}

.topbar-secondary-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 2rem;
    max-width: 100%;
    min-height: 50px;
}

.topbar-secondary-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
}

.topbar-nav {
    width: 100%;
}

.topbar-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

/* Primary Top Bar Menu Styles */
.topbar-nav-primary {
    display: flex;
    align-items: center;
}

.topbar-menu-primary {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.25rem;
}

.topbar-menu-item-primary {
    position: relative;
}

.topbar-menu-link-primary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: #ffffff !important;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: all 0.2s ease;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.topbar-menu-link-primary:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.3);
}

.topbar-menu-link-primary.active {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    font-weight: 600;
    border-color: rgba(255, 255, 255, 0.4);
}

.topbar-menu-link-primary i {
    font-size: 1rem;
}

.topbar-menu-link-primary .dropdown-toggle::after {
    display: none;
}

.topbar-menu-item-primary.dropdown .dropdown-menu {
    margin-top: 0.5rem;
    border: 1px solid var(--gray-200);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: var(--radius);
    min-width: 220px;
    padding: 0.5rem 0;
    display: none !important;
    position: absolute;
    z-index: 1060 !important;
    background: #ffffff !important;
    top: 100%;
    right: 0;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.topbar-menu-item-primary.dropdown.show .dropdown-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 1060 !important;
}

/* Secondary Top Bar Menu Styles (for backward compatibility) */
.topbar-menu-item {
    position: relative;
}

.topbar-menu-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: var(--gray-700);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: all 0.2s ease;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}

.topbar-menu-link:hover {
    background-color: var(--gray-100);
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.topbar-menu-link.active {
    background-color: rgba(26, 95, 122, 0.1);
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

.topbar-menu-link i {
    font-size: 1rem;
}

.topbar-menu-link .dropdown-toggle::after {
    display: none;
}

/* Ensure dropdown parent has relative positioning */
.topbar-menu-item.dropdown {
    position: relative;
}

/* Make sure dropdown toggles are clickable */
.topbar-menu-item.dropdown .dropdown-toggle {
    cursor: pointer;
    user-select: none;
    pointer-events: auto !important;
    text-decoration: none;
    position: relative;
    z-index: 1;
}

/* Ensure dropdown toggle is always clickable */
.topbar-menu-item.dropdown .dropdown-toggle:hover,
.topbar-menu-item.dropdown .dropdown-toggle:focus,
.topbar-menu-item.dropdown .dropdown-toggle:active {
    pointer-events: auto !important;
    outline: none;
}

.topbar-menu-item .dropdown-menu {
    margin-top: 0.5rem;
    border: 1px solid var(--gray-200);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: var(--radius);
    min-width: 220px;
    padding: 0.5rem 0;
    display: none !important; /* Hidden by default - use !important to override */
    position: absolute;
    z-index: 1060 !important; /* Higher z-index to ensure visibility above forms */
    background: #ffffff !important;
    top: 100%;
    left: 0;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

/* Show dropdown when parent has show class - FORCE VISIBILITY */
.topbar-menu-item.dropdown.show .dropdown-menu,
.topbar-menu-item.dropdown.show > .dropdown-menu,
.topbar-menu-item.dropdown.show .dropdown-menu.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 1060 !important;
}

/* Also support Bootstrap's show class */
.topbar-menu-item.dropdown .dropdown-menu.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 1060 !important;
}

/* Additional rule to force visibility */
.topbar-menu-item.dropdown.show .dropdown-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 1060 !important;
}

.topbar-menu-item .dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    width: 100%;
    white-space: nowrap;
    pointer-events: auto !important;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.topbar-menu-item .dropdown-item:hover {
    background-color: var(--gray-100);
    color: var(--primary);
    padding-left: 1.25rem;
    text-decoration: none;
}

.topbar-menu-item .dropdown-item.active {
    background-color: rgba(26, 95, 122, 0.1);
    color: var(--primary);
    font-weight: 600;
}

.topbar-menu-item .dropdown-item i {
    width: 1.25rem;
    text-align: center;
}

/* Ensure dropdown items are always clickable */
.topbar-menu-item .dropdown-item,
.topbar-menu-item .dropdown-item:link,
.topbar-menu-item .dropdown-item:visited,
.topbar-menu-item .dropdown-item:hover,
.topbar-menu-item .dropdown-item:active {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Ensure dropdowns show on click */
.topbar-menu-item.dropdown .dropdown-toggle {
    cursor: pointer;
}

.topbar-menu-item.dropdown.show .dropdown-menu {
    display: block;
}

/* Make dropdowns work on click instead of hover */
.topbar-menu-item.dropdown .dropdown-toggle[data-bs-toggle="dropdown"] {
    pointer-events: auto;
}

.topbar-secondary-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar-secondary-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.topbar-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-700);
    font-size: 0.875rem;
    font-weight: 500;
}

.topbar-info-item i {
    color: var(--primary);
    font-size: 1rem;
}

/* Main Container */
.main-container {
    flex: 1;
    padding: 2rem;
    background-color: #f5f7fa;
}

/* Mobile Topbar Navigation */
@media (max-width: 991.98px) {
    .topbar-topmost {
        height: 41px; /* Slightly smaller on mobile (increased by 10% from 37px) */
    }
    
    .topbar-topmost-content {
        padding: 0.4rem 1rem;
    }
    
    .topbar-full {
        top: 41px; /* Position below topmost bar on mobile (updated to match new height) */
        height: 63px; /* Slightly smaller on mobile (increased by 5% from 60px) */
    }
    
    .topbar-secondary {
        top: 104px; /* Below topmost (41px) + primary (63px) on mobile */
        height: auto;
    }
    
    .topbar-secondary-content {
        padding: 0.5rem 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .topbar-secondary-left {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .topbar-menu {
        gap: 0.125rem;
    }
    
    .topbar-menu-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .topbar-secondary-right {
        width: 100%;
        justify-content: flex-end;
    }
    
    .topbar-secondary-info {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .topbar-info-item {
        font-size: 0.8125rem;
    }
    
    .main-content {
        margin-top: 104px; /* Account for topmost (41px) + primary (63px) on mobile */
    }
}

/* Scrollbar Styling */
.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

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

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

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* ============================================
   Legacy Navigation Bar (for non-logged in)
   ============================================ */

.navbar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
    box-shadow: var(--shadow-md);
    padding: 0.75rem 0;
    border-bottom: 3px solid var(--secondary);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand:hover {
    color: var(--secondary) !important;
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
    border-radius: var(--radius);
    margin: 0 0.25rem;
    transition: all 0.2s ease;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
}

.navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
    font-weight: 600;
}

.navbar-nav .dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.navbar-nav .dropdown-item {
    padding: 0.625rem 1rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-nav .dropdown-item:hover {
    background-color: var(--gray-100);
    color: var(--primary);
    transform: translateX(4px);
}

.navbar-text {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
}

/* ============================================
   Cards
   ============================================ */

.card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    overflow: hidden;
    background: #ffffff;
}

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

.card-header {
    background: linear-gradient(135deg, var(--gray-50) 0%, #ffffff 100%);
    border-bottom: 1px solid var(--gray-200);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    background-color: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    padding: 1rem 1.5rem;
}

/* Stat Cards */
.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, var(--gray-50) 100%);
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-left-color: var(--secondary);
    transform: translateX(4px);
}

.stat-card .stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #ffffff;
    margin-bottom: 1rem;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1;
    margin: 0.5rem 0;
}

.stat-card .stat-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #ffffff;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
    color: #ffffff;
}

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

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

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #34ce57 100%);
    color: #ffffff;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #e4606d 100%);
    color: #ffffff;
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning) 0%, #ffcd39 100%);
    color: var(--gray-900);
}

.btn-sm {
    padding: 0.375rem 0.875rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1.125rem;
}

/* ============================================
   Tables
   ============================================ */

.table {
    background: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.table thead th {
    background: linear-gradient(135deg, var(--gray-50) 0%, #ffffff 100%);
    color: var(--gray-900);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding: 1rem;
    border-bottom: 2px solid var(--gray-200);
    white-space: nowrap;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--gray-100);
}

.table tbody tr {
    transition: all 0.2s ease;
}

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

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

/* ============================================
   Forms
   ============================================ */

.form-label {
    font-weight: 500;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-control,
.form-select {
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    background-color: #ffffff;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 95, 122, 0.1);
    outline: none;
}

.form-control:disabled,
.form-select:disabled {
    background-color: var(--gray-100);
    cursor: not-allowed;
}

.input-group-text {
    background-color: var(--gray-100);
    border: 2px solid var(--gray-300);
    border-right: none;
    color: var(--gray-700);
    font-weight: 500;
}

/* ============================================
   Badges
   ============================================ */

.badge {
    padding: 0.375rem 0.75rem;
    font-weight: 500;
    font-size: 0.75rem;
    border-radius: var(--radius);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.text-bg-success {
    background: linear-gradient(135deg, var(--success) 0%, #34ce57 100%) !important;
}

.badge.text-bg-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #e4606d 100%) !important;
}

.badge.text-bg-warning {
    background: linear-gradient(135deg, var(--warning) 0%, #ffcd39 100%) !important;
    color: var(--gray-900) !important;
}

.badge.text-bg-info {
    background: linear-gradient(135deg, var(--info) 0%, #3fc5d8 100%) !important;
}

.badge.text-bg-secondary {
    background: var(--gray-500) !important;
}

/* ============================================
   Alerts
   ============================================ */

.alert {
    border: none;
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid;
}

.alert-success {
    background-color: #d4edda;
    border-left-color: var(--success);
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-left-color: var(--danger);
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    border-left-color: var(--warning);
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    border-left-color: var(--info);
    color: #0c5460;
}

/* ============================================
   Modals
   ============================================ */

.modal-content {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.modal-header {
    background: linear-gradient(135deg, var(--gray-50) 0%, #ffffff 100%);
    border-bottom: 1px solid var(--gray-200);
    padding: 1.5rem;
}

.modal-title {
    font-weight: 600;
    color: var(--gray-900);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--gray-200);
    padding: 1rem 1.5rem;
}

/* ============================================
   Dashboard Specific
   ============================================ */

.dashboard-header {
    background: linear-gradient(135deg, #ffffff 0%, var(--gray-50) 100%);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* KPI Cards */
.kpi-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: var(--shadow);
}

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

.kpi-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #ffffff;
    font-size: 1.75rem;
}

.kpi-icon.bg-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.kpi-icon.bg-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #e4606d 100%);
}

.kpi-icon.bg-success {
    background: linear-gradient(135deg, var(--success) 0%, #34ce57 100%);
}

.kpi-icon.bg-info {
    background: linear-gradient(135deg, var(--info) 0%, #3fc5d8 100%);
}

.kpi-icon.bg-warning {
    background: linear-gradient(135deg, var(--warning) 0%, #ffcd39 100%);
    color: var(--gray-900);
}

.kpi-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.kpi-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Custom column for 5 KPI cards */
@media (min-width: 1400px) {
    .col-xl-2-4 {
        flex: 0 0 auto;
        width: 20%;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .col-xl-2-4 {
        flex: 0 0 auto;
        width: 20%;
    }
}

/* ============================================
   Login Page
   ============================================ */

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 2rem;
}

.login-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 3rem;
    max-width: 420px;
    width: 100%;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h3 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--gray-600);
    margin: 0;
}

/* ============================================
   Page Headers
   ============================================ */

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-200);
}

.page-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.page-subtitle {
    color: var(--gray-600);
    font-size: 0.9375rem;
    margin-top: 0.25rem;
}

/* ============================================
   Footer
   ============================================ */

footer {
    background-color: #ffffff;
    border-top: 1px solid var(--gray-200);
    padding: 1.5rem 0;
    position: relative; /* Changed from fixed to relative so it scrolls with content */
    width: 100%; /* Full width across display */
    max-width: 100%;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    margin-top: auto; /* Push footer to bottom of content */
}

/* ============================================
   Utilities
   ============================================ */

.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow { box-shadow: var(--shadow) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }

.rounded-sm { border-radius: var(--radius-sm) !important; }
.rounded { border-radius: var(--radius) !important; }
.rounded-md { border-radius: var(--radius-md) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 991.98px) {
    .main-container {
        padding: 1rem;
    }

    .topbar-content {
        padding: 0.75rem 1rem;
    }

    .topbar-brand-text {
        font-size: 1.25rem;
    }
    
    /* Footer on mobile - full width */
    footer {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .topbar-brand-text {
        font-size: 1rem;
    }

    .topbar-user-info {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .table {
        font-size: 0.875rem;
    }
    
    .table thead th,
    .table tbody td {
        padding: 0.75rem 0.5rem;
    }

    .topbar {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 576px) {
    .login-card {
        padding: 2rem 1.5rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    .navbar,
    .btn,
    .page-header .btn-group {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid var(--gray-300);
    }
}

/* ============================================
   Loading & Animations
   ============================================ */

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

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

/* Enhanced Menu Display for Waiters */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
}

.menu-item-card .card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #e9ecef;
}

.menu-item-card .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15) !important;
    border-color: var(--primary) !important;
}

.menu-item-card .card:hover .position-absolute[style*="background-image"] {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.menu-item-selectable {
    user-select: none;
}

/* Manage Menu: keep Edit/Delete above table hover layers */
.restaurant-menu-actions {
    position: relative;
    z-index: 2;
}

.transition-all {
    transition: all 0.3s ease;
}

/* Menu item background image fallback */
.menu-item-card .card .position-absolute[style*="background-image"] {
    transition: transform 0.3s ease;
}

/* Ensure placeholder SVG works as background */
.menu-item-card .card .position-absolute[style*="background-image"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f8f9fa;
    z-index: -1;
}

/* Category filter buttons enhancement */
.category-filter {
    transition: all 0.2s ease;
}

.category-filter:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.category-filter.active {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(26, 95, 122, 0.3);
}
