/* ====================================================================
   MILLET MAHARAJA — PREMIUM RESTAURANT OS & POS DESIGN SYSTEM
   Color Tokens, Typography, Layout, Cards, Tables, Buttons, Dialogs
   ==================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    /* Brand Palette */
    --color-forest-dark: #183B28;
    --color-primary: #285D3B;
    --color-primary-light: #34764C;
    --color-primary-hover: #1E4A2E;
    
    --color-warm-ivory: #F8F7F0;
    --color-white: #FFFFFF;
    --color-muted-sage: #E8EEE3;
    --color-sage-soft: #F2F6EF;
    
    --color-charcoal: #202720;
    --color-text-muted: #59655A;
    --color-text-light: #819082;
    
    --color-border: #E5E8DF;
    --color-border-focus: #285D3B;
    
    /* Semantic Colors */
    --color-amber: #D97706;
    --color-amber-bg: #FEF3C7;
    --color-amber-border: #FCD34D;
    
    --color-red: #DC2626;
    --color-red-bg: #FEE2E2;
    --color-red-border: #FCA5A5;
    
    --color-blue: #2563EB;
    --color-blue-bg: #EFF6FF;
    
    --color-teal: #0D9488;
    --color-teal-bg: #F0FDFA;

    /* Elevation & Shadows */
    --shadow-sm: 0 1px 2px rgba(24, 59, 40, 0.04);
    --shadow-md: 0 4px 12px rgba(24, 59, 40, 0.06), 0 1px 3px rgba(24, 59, 40, 0.04);
    --shadow-lg: 0 10px 24px rgba(24, 59, 40, 0.08), 0 2px 6px rgba(24, 59, 40, 0.04);
    --shadow-modal: 0 20px 40px rgba(24, 59, 40, 0.16), 0 4px 12px rgba(24, 59, 40, 0.08);

    /* Radii */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --radius-pill: 9999px;

    /* Spacing (8px system) */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;

    /* Dimensions */
    --sidebar-width: 250px;
    --sidebar-collapsed-width: 72px;
    --topbar-height: 68px;
    --mobile-nav-height: 64px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--color-warm-ivory);
    color: var(--color-charcoal);
    font-size: 14.5px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--color-forest-dark);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--color-forest-dark);
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

/* ====================================================================
   LAYOUT: SIDEBAR + TOPBAR + MAIN CONTENT
   ==================================================================== */

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

/* Utility Visibility Classes */
.mobile-only {
    display: none !important;
}
.desktop-only {
    display: flex !important;
}

/* Sidebar */
.app-sidebar {
    width: var(--sidebar-width);
    background-color: var(--color-forest-dark);
    color: var(--color-warm-ivory);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 2px 0 16px rgba(0,0,0,0.06);
    overflow: hidden;
}

.sidebar-header {
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: padding 0.3s ease;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    min-width: 0;
}

.brand-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #E8EEE3 0%, #C8DAC0 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-forest-dark);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.brand-titles {
    display: flex;
    flex-direction: column;
    transition: opacity 0.25s ease, transform 0.25s ease, width 0.25s ease;
    white-space: nowrap;
}

.brand-name {
    font-family: 'Outfit', sans-serif;
    font-size: 16.5px;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: -0.01em;
    line-height: 1.1;
}

.brand-subtitle {
    font-size: 10.5px;
    color: #A3B8A7;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 2px;
}

/* Sidebar Quick Pin Toggle Button */
.sidebar-pin-btn {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #D2DFD4;
    border-radius: var(--radius-sm);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.sidebar-pin-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: var(--space-4) var(--space-3);
    display: flex;
    flex-direction: column;
    gap: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.nav-section-title {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7A9983;
    padding: var(--space-2) var(--space-3);
    font-weight: 700;
    margin-top: var(--space-3);
    white-space: nowrap;
    transition: opacity 0.2s ease, height 0.2s ease, margin 0.2s ease;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    color: #D2DFD4;
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    white-space: nowrap;
}

.nav-label {
    transition: opacity 0.2s ease;
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--color-white);
    transform: translateX(2px);
}

.nav-item.active {
    background-color: var(--color-primary);
    color: var(--color-white);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav-item svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
    flex-shrink: 0;
    opacity: 0.9;
}

.nav-item.active svg {
    opacity: 1;
}

.nav-badge {
    margin-left: auto;
    background-color: var(--color-amber);
    color: #111;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: var(--radius-pill);
    line-height: 1;
    transition: all 0.2s ease;
}

.sidebar-footer {
    padding: var(--space-4);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    transition: padding 0.3s ease;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-pill);
    background-color: var(--color-primary);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.15);
}

.user-info {
    flex: 1;
    min-width: 0;
    transition: opacity 0.2s ease;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 11px;
    color: #A3B8A7;
    text-transform: capitalize;
}

.btn-logout {
    color: #A3B8A7;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.btn-logout:hover {
    color: var(--color-white);
    background-color: rgba(255, 255, 255, 0.1);
}

/* ====================================================================
   COLLAPSIBLE SIDEBAR: IN / OUT ICON MODE
   ==================================================================== */
.sidebar-collapsed .app-sidebar {
    width: var(--sidebar-collapsed-width);
}

.sidebar-collapsed .sidebar-header {
    padding: 0;
    justify-content: center;
}

.sidebar-collapsed .brand-titles {
    opacity: 0;
    width: 0;
    transform: translateX(-15px);
    overflow: hidden;
    pointer-events: none;
}

.sidebar-collapsed .sidebar-pin-btn {
    display: none !important;
}

.sidebar-collapsed .nav-section-title {
    opacity: 0;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.sidebar-collapsed .nav-item {
    justify-content: center;
    padding: 12px 0;
    gap: 0;
    border-radius: var(--radius-md);
}

.sidebar-collapsed .nav-item:hover {
    transform: none;
    background-color: rgba(255, 255, 255, 0.12);
}

.sidebar-collapsed .nav-label {
    opacity: 0;
    width: 0;
    display: none;
}

.sidebar-collapsed .nav-badge {
    position: absolute;
    top: 6px;
    right: 12px;
    padding: 2px 5px;
    font-size: 9.5px;
}

.sidebar-collapsed .sidebar-footer {
    padding: 12px 0;
    justify-content: center;
}

.sidebar-collapsed .user-info {
    display: none;
}

.sidebar-collapsed .btn-logout {
    display: none;
}

/* Floating Tooltip in Collapsed Mode */
.sidebar-collapsed .nav-item[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%);
    background-color: #0E2418;
    color: #FFFFFF;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-md);
    white-space: nowrap;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.15);
    pointer-events: none;
    z-index: 1000;
    animation: tooltipFade 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-collapsed .nav-item[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    left: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%);
    border-width: 5px 6px 5px 0;
    border-style: solid;
    border-color: transparent #0E2418 transparent transparent;
    z-index: 1000;
    animation: tooltipFade 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes tooltipFade {
    from { opacity: 0; transform: translateY(-50%) translateX(-6px); }
    to { opacity: 1; transform: translateY(-50%) translateX(0); }
}

/* Main Content Area */
.app-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100vh;
    transition: margin-left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Topbar */
.app-topbar {
    height: var(--topbar-height);
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-6);
    position: sticky;
    top: 0;
    z-index: 90;
    box-shadow: var(--shadow-sm);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--color-forest-dark);
}

.page-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-forest-dark);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.outlet-badge {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    background-color: var(--color-muted-sage);
    color: var(--color-forest-dark);
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    font-size: 12.5px;
    font-weight: 600;
    border: 1px solid #D2DEC9;
}

.outlet-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 50%;
}

.clock-widget {
    display: flex;
    flex-direction: column;
    text-align: right;
    font-size: 12px;
    color: var(--color-text-muted);
}

.clock-time {
    font-weight: 700;
    color: var(--color-forest-dark);
    font-size: 13.5px;
    letter-spacing: -0.01em;
}

.content-container {
    flex: 1;
    padding: var(--space-6);
    max-width: 1440px;
    width: 100%;
}

/* ====================================================================
   BUTTONS & FORM CONTROLS
   ==================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-weight: 600;
    font-size: 13.5px;
    padding: 9px 16px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    line-height: 1.3;
    white-space: nowrap;
}

.btn svg {
    width: 16px;
    height: 16px;
}

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

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    color: var(--color-white);
    box-shadow: 0 2px 6px rgba(40, 93, 59, 0.25);
}

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

.btn-secondary:hover {
    background-color: var(--color-sage-soft);
    border-color: #D2DEC9;
}

.btn-dark {
    background-color: var(--color-forest-dark);
    color: var(--color-white);
}

.btn-dark:hover {
    background-color: #122B1E;
}

.btn-danger {
    background-color: var(--color-red-bg);
    color: var(--color-red);
    border-color: var(--color-red-border);
}

.btn-danger:hover {
    background-color: var(--color-red);
    color: var(--color-white);
}

.btn-sm {
    padding: 6px 10px;
    font-size: 12.5px;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 13px 24px;
    font-size: 15px;
    border-radius: var(--radius-lg);
}

/* Forms */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: var(--space-4);
}

.form-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--color-forest-dark);
}

.form-control {
    width: 100%;
    padding: 9px 13px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background-color: var(--color-white);
    color: var(--color-charcoal);
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
    border-color: var(--color-border-focus);
    box-shadow: 0 0 0 3px rgba(40, 93, 59, 0.12);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2359655A'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    padding-right: 36px;
}

/* Search Box */
.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box svg {
    position: absolute;
    left: 12px;
    width: 16px;
    height: 16px;
    color: var(--color-text-light);
    pointer-events: none;
}

.search-box .form-control {
    padding-left: 36px;
}

/* ====================================================================
   CARDS & PANELS
   ==================================================================== */

.card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: var(--space-6);
}

.card-header {
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #FAFBF9;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-forest-dark);
}

.card-body {
    padding: var(--space-5);
}

.card-footer {
    padding: var(--space-4) var(--space-5);
    border-top: 1px solid var(--color-border);
    background-color: #FAFBF9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Stat Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.stat-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--color-text-muted);
}

.stat-icon {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    background-color: var(--color-muted-sage);
}

.stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--color-forest-dark);
    letter-spacing: -0.02em;
}

.stat-sub {
    font-size: 12px;
    color: var(--color-text-light);
}

/* ====================================================================
   DATA TABLES
   ==================================================================== */

.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table th {
    background-color: #FAFBF9;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 700;
    color: var(--color-forest-dark);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--color-border);
    white-space: nowrap;
}

.data-table td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--color-border);
    font-size: 13.5px;
    color: var(--color-charcoal);
    vertical-align: middle;
}

.data-table tbody tr:hover {
    background-color: #F8FAF6;
}

/* ====================================================================
   BADGES & CHIPS
   ==================================================================== */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 9px;
    border-radius: var(--radius-pill);
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.1;
    white-space: nowrap;
}

/* Order Status Badges */
.badge-new {
    background-color: #DBEAFE;
    color: #1E40AF;
}

.badge-accepted {
    background-color: #E0E7FF;
    color: #3730A3;
}

.badge-preparing {
    background-color: var(--color-amber-bg);
    color: var(--color-amber);
    border: 1px solid var(--color-amber-border);
}

.badge-ready {
    background-color: #DCFCE7;
    color: #166534;
}

.badge-completed {
    background-color: var(--color-muted-sage);
    color: var(--color-forest-dark);
}

.badge-cancelled {
    background-color: var(--color-red-bg);
    color: var(--color-red);
}

/* Payment Status */
.badge-paid {
    background-color: #DCFCE7;
    color: #15803D;
}

.badge-pending {
    background-color: var(--color-amber-bg);
    color: #92400E;
}

/* Order Sources */
.badge-source {
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.source-counter { background-color: #E2E8F0; color: #334155; }
.source-whatsapp { background-color: #DCFCE7; color: #15803D; }
.source-website { background-color: #E0E7FF; color: #4338CA; }
.source-swiggy { background-color: #FFEDD5; color: #C2410C; }
.source-zomato { background-color: #FFE4E6; color: #BE123C; }

/* Veg Icon */
.veg-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border: 1.5px solid #16A34A;
    border-radius: 2px;
    padding: 1px;
}

.veg-dot {
    width: 6px;
    height: 6px;
    background-color: #16A34A;
    border-radius: 50%;
}

/* Category Filter Chips */
.chips-container {
    display: flex;
    gap: var(--space-2);
    overflow-x: auto;
    padding-bottom: var(--space-2);
    scrollbar-width: none;
}

.chips-container::-webkit-scrollbar {
    display: none;
}

.chip {
    padding: 7px 15px;
    border-radius: var(--radius-pill);
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.chip:hover {
    border-color: var(--color-primary);
    color: var(--color-forest-dark);
}

.chip.active {
    background-color: var(--color-forest-dark);
    color: var(--color-white);
    border-color: var(--color-forest-dark);
}

/* ====================================================================
   MODALS & TOASTS
   ==================================================================== */

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(24, 59, 40, 0.45);
    backdrop-filter: blur(3px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
}

.modal-backdrop.show {
    display: flex;
}

.modal-content {
    background-color: var(--color-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-modal);
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideIn {
    from { transform: translateY(16px) scale(0.98); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-header {
    padding: var(--space-5);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-body {
    padding: var(--space-5);
}

.modal-footer {
    padding: var(--space-4) var(--space-5);
    border-top: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-3);
    background-color: #FAFBF9;
}

.btn-close {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--color-text-light);
    font-size: 20px;
    padding: 4px;
    border-radius: var(--radius-sm);
}

.btn-close:hover {
    color: var(--color-charcoal);
}

/* Toast Container */
.toast-container {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    z-index: 2000;
}

.toast {
    background-color: var(--color-forest-dark);
    color: var(--color-white);
    padding: 12px 18px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: 13.5px;
    font-weight: 500;
    animation: toastPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 380px;
}

.toast.toast-success {
    background-color: #14532D;
    border-left: 4px solid #22C55E;
}

.toast.toast-error {
    background-color: #7F1D1D;
    border-left: 4px solid #EF4444;
}

.toast.toast-warning {
    background-color: #78350F;
    border-left: 4px solid #F59E0B;
}

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

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--space-10) var(--space-5);
    color: var(--color-text-muted);
}

.empty-state svg {
    width: 48px;
    height: 48px;
    color: var(--color-text-light);
    margin-bottom: var(--space-3);
}

.empty-state h3 {
    font-size: 17px;
    margin-bottom: var(--space-1);
}

.empty-state p {
    font-size: 13.5px;
    max-width: 360px;
    margin: 0 auto;
}

/* ====================================================================
   RESPONSIVE DESIGN & MOBILE NATIVE APP EXPERIENCE (Zomato / Swiggy style)
   ==================================================================== */

/* Topbar desktop collapse toggle */
.sidebar-toggle-btn {
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-forest-dark);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.sidebar-toggle-btn:hover {
    background-color: var(--color-muted-sage);
    border-color: var(--color-primary);
    transform: scale(1.04);
}

.sidebar-collapsed .sidebar-toggle-btn .toggle-arrow {
    transform: rotate(180deg);
    transform-origin: 12px 12px;
}

@media (max-width: 991px) {
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: flex !important;
    }

    /* Mobile Backdrop Overlay */
    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        background-color: rgba(14, 36, 24, 0.6);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        z-index: 105;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.28s ease, visibility 0.28s ease;
    }

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

    /* Slide-out Off-Canvas Drawer */
    .app-sidebar {
        width: 290px;
        max-width: 84vw;
        transform: translateX(-100%);
        z-index: 110;
        box-shadow: 8px 0 32px rgba(0, 0, 0, 0.35);
        border-top-right-radius: var(--radius-xl);
        border-bottom-right-radius: var(--radius-xl);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

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

    .sidebar-mobile-close {
        background: rgba(255, 255, 255, 0.1);
        border: none;
        color: #FFFFFF;
        width: 32px;
        height: 32px;
        border-radius: var(--radius-pill);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        margin-left: auto;
        transition: background-color 0.15s ease;
    }

    .sidebar-mobile-close:hover {
        background: rgba(255, 255, 255, 0.25);
    }

    .app-main {
        margin-left: 0 !important;
        padding-bottom: calc(var(--mobile-nav-height) + 16px); /* Space for floating bottom nav */
    }

    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: 1px solid var(--color-border);
        border-radius: var(--radius-md);
        color: var(--color-forest-dark);
        width: 38px;
        height: 38px;
        cursor: pointer;
    }

    .content-container {
        padding: var(--space-4) var(--space-3);
    }

    .app-topbar {
        padding: 0 var(--space-3);
        height: 60px;
    }

    .page-title {
        font-size: 17px;
    }

    .outlet-badge span:last-child {
        max-width: 140px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .clock-widget {
        display: none; /* Hide seconds clock on small screens to prevent topbar overflow */
    }

    /* Fixed Mobile Bottom App Bar (Zomato / Swiggy Style) */
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: var(--mobile-nav-height);
        background: rgba(20, 48, 32, 0.96);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        display: flex;
        align-items: center;
        justify-content: space-around;
        z-index: 95;
        padding: 0 4px calc(env(safe-area-inset-bottom, 0px) + 2px);
        box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.25);
    }

    .mobile-nav-tab {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        color: #A3B8A7;
        text-decoration: none;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 8px 2px;
        font-size: 10.5px;
        font-weight: 600;
        transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
        position: relative;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-nav-tab svg {
        width: 21px;
        height: 21px;
        stroke-width: 2;
        transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.2s ease;
    }

    .mobile-nav-tab.active {
        color: #FFFFFF;
    }

    .mobile-nav-tab.active svg {
        stroke: #4ADE80;
        transform: translateY(-2px);
    }

    .mobile-nav-tab.active::after {
        content: '';
        position: absolute;
        bottom: 5px;
        width: 18px;
        height: 3px;
        background: #4ADE80;
        border-radius: var(--radius-pill);
        box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
    }

    .mobile-nav-icon-wrap {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-cart-badge {
        position: absolute;
        top: -4px;
        right: -9px;
        background: #EF4444;
        color: #FFFFFF;
        font-size: 10px;
        font-weight: 800;
        min-width: 17px;
        height: 17px;
        border-radius: var(--radius-pill);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 4px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
        border: 1.5px solid var(--color-forest-dark);
    }
}

@media (max-width: 480px) {
    .outlet-badge {
        font-size: 11px;
        padding: 4px 8px;
    }
    .page-title {
        font-size: 15.5px;
    }
}
