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

:root {
    --bg-dark: #0b0f19;
    --bg-card: rgba(22, 30, 49, 0.7);
    --bg-input: #111827;
    --border-color: rgba(255, 255, 255, 0.08);
    
    --primary: #14b8a6;
    --primary-hover: #0d9488;
    --secondary: #6366f1;
    --secondary-hover: #4f46e5;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;
    
    --font-sans: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(20, 184, 166, 0.15);
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    min-height: 100vh;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(20, 184, 166, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 90% 80%, rgba(99, 102, 241, 0.08) 0%, transparent 45%);
    background-attachment: fixed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
}

/* Glassmorphism Cards */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.card:hover {
    border-color: rgba(20, 184, 166, 0.2);
    box-shadow: var(--shadow-glow), var(--shadow);
    transform: translateY(-2px);
}

/* Auth / Login Page styling */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}
.auth-card {
    width: 100%;
    max-width: 440px;
    text-align: center;
}
.auth-logo {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
    letter-spacing: -0.05em;
}
.auth-logo span {
    font-weight: 300;
}
.auth-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 32px;
}

/* Forms and Inputs */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}
.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.form-input, .form-select, .form-textarea {
    width: 100%;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}
.form-select option {
    background-color: var(--bg-dark);
    color: var(--text-main);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.25);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(20, 184, 166, 0.35);
}
.btn-secondary {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-hover) 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}
.btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
}
.btn-danger {
    background: var(--danger);
    color: #fff;
}
.btn-danger:hover {
    background: #dc2626;
}
.btn-gray {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}
.btn-gray:hover {
    background: rgba(255, 255, 255, 0.12);
}
.btn-block {
    width: 100%;
}

/* Header & Navigation Bar */
.navbar {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-brand {
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.05em;
}
.nav-brand span {
    font-weight: 300;
}
.nav-user {
    display: flex;
    align-items: center;
    gap: 16px;
}
.user-badge {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary);
}

/* Sub-nav menus (for admin) */
.sub-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 24px;
}
.sub-nav-link {
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
    border: 1px solid transparent;
}
.sub-nav-link:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
}
.sub-nav-link.active {
    color: var(--primary);
    background: rgba(20, 184, 166, 0.1);
    border-color: rgba(20, 184, 166, 0.2);
}

/* Stats Dashboard Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}
.stat-card {
    display: flex;
    align-items: center;
    gap: 20px;
}
.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(20, 184, 166, 0.1);
    color: var(--primary);
}
.stat-icon.secondary {
    background: rgba(99, 102, 241, 0.1);
    color: var(--secondary);
}
.stat-icon.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}
.stat-icon.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}
.stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 4px;
}
.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Waiter View: Tables Grid */
.tables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}
.table-card {
    text-align: center;
    padding: 30px 20px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.table-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
}
.table-card.libre::before { background-color: var(--success); }
.table-card.ocupada::before { background-color: var(--warning); }
.table-card.esperando-cuenta::before { background-color: var(--info); }

.table-number {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.table-capacity {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.table-status-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}
.table-card.libre .table-status-pill {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}
.table-card.ocupada .table-status-pill {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}
.table-card.esperando-cuenta .table-status-pill {
    background: rgba(6, 182, 212, 0.15);
    color: #22d3ee;
}

/* Waiter View: Menu & Order Selection Split Layout */
.pos-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 24px;
    align-items: start;
}
@media (max-width: 1024px) {
    .pos-layout {
        grid-template-columns: 1fr;
    }
}
.menu-categories {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 8px;
}
.category-btn {
    padding: 8px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    cursor: pointer;
    font-family: var(--font-sans);
    font-weight: 500;
    white-space: nowrap;
    transition: var(--transition);
}
.category-btn.active, .category-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.product-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
}
.product-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    background: rgba(20, 184, 166, 0.03);
}
.product-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 6px;
}
.product-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    flex-grow: 1;
}
.product-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.product-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}
.product-stock-badge {
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
}
.stock-ok { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.stock-low { background: rgba(239, 68, 68, 0.1); color: var(--danger); }

/* Order Panel Drawer (Right side) */
.order-drawer {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 120px);
    position: sticky;
    top: 96px;
}
.order-items-list {
    flex-grow: 1;
    overflow-y: auto;
    margin: 16px 0;
    padding-right: 4px;
}
.order-item-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}
.order-item-title {
    font-weight: 500;
    font-size: 0.95rem;
}
.order-item-quantity-control {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}
.qty-btn {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: var(--text-main);
    font-weight: 700;
    cursor: pointer;
}
.qty-btn:hover { background: rgba(255, 255, 255, 0.15); }
.order-item-notes {
    background: transparent;
    border: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.75rem;
    width: 100%;
    margin-top: 6px;
    outline: none;
    padding: 2px 0;
}
.order-totals {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    margin-bottom: 16px;
}
.totals-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95rem;
}
.totals-row.grand-total {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
    padding-top: 10px;
    margin-top: 10px;
}

/* Kitchen View: Order Board */
.kitchen-board {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}
.kitchen-card {
    border-top: 4px solid var(--primary);
}
.kitchen-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 12px;
}
.kitchen-time {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}
.kitchen-time.warning {
    color: var(--danger);
    animation: blinker 1s linear infinite;
}
@keyframes blinker {
    50% { opacity: 0.4; }
}
.kitchen-items-list {
    margin-bottom: 16px;
}
.kitchen-item {
    padding: 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: start;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}
.kitchen-item:last-child { border-bottom: none; }
.kitchen-item-qty {
    background: rgba(20, 184, 166, 0.15);
    color: var(--primary);
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-right: 8px;
}
.kitchen-item-notes {
    font-size: 0.8rem;
    color: #fca5a5;
    margin-top: 4px;
    font-style: italic;
}

/* Cashier / Caja view table styling */
.caja-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}
.data-table-wrapper {
    overflow-x: auto;
    margin-top: 16px;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.data-table th {
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}
.data-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}
.data-table tr:hover td {
    background: rgba(255, 255, 255, 0.01);
}

/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 30px 16px;
    overflow-y: auto;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.modal-container {
    width: 100%;
    max-width: 500px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow);
    transform: translateY(20px);
    transition: var(--transition);
}
.modal-overlay.active .modal-container {
    transform: translateY(0);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}
.modal-close:hover { color: white; }

/* Grid systems for modules */
.grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
@media (max-width: 768px) {
    .grid-2col {
        grid-template-columns: 1fr;
    }
}

.alert-bar {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}
.alert-success { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.25); }
.alert-danger { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.25); }
.alert-warning { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.25); }

/* Quick Recipe Modal Custom styling */
.recipe-ingredient-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

/* Print Media Styles for POS Thermal Receipts */
@media print {
    /* Hide all main elements directly under body except the ticket */
    body > *:not(#ticket-imprimible) {
        display: none !important;
    }
    
    /* Show and style only the ticket container */
    #ticket-imprimible {
        display: block !important;
        width: 80mm !important; /* Fit 80mm paper */
        max-width: 80mm !important;
        margin: 0 auto !important;
        padding: 8px 12px !important;
        box-sizing: border-box !important;
        font-family: 'Courier New', Courier, monospace !important;
        font-size: 12px !important;
        color: #000 !important;
        background: #fff !important;
        line-height: 1.3 !important;
    }
    
    .ticket-header {
        text-align: center;
        margin-bottom: 8px;
    }
    .ticket-title {
        font-size: 16px;
        font-weight: bold;
        letter-spacing: 1px;
    }
    .ticket-subtitle {
        font-size: 11px;
        font-weight: bold;
        margin-top: 2px;
    }
    .ticket-info {
        font-size: 10px;
        color: #333;
    }
    
    .ticket-divider {
        border-top: 1px dashed #000;
        margin: 6px 0;
    }
    
    .ticket-meta {
        font-size: 11px;
        margin-bottom: 6px;
    }
    .ticket-meta-row {
        display: flex;
        justify-content: space-between;
        margin-bottom: 2px;
    }
    
    .ticket-items-header {
        display: flex;
        font-weight: bold;
        font-size: 11px;
    }
    .hdr-qty { width: 15%; }
    .hdr-name { width: 60%; }
    .hdr-price { width: 25%; text-align: right; }
    
    .ticket-items {
        margin: 4px 0;
    }
    .ticket-item {
        margin-bottom: 6px;
        page-break-inside: avoid;
    }
    .ticket-item-main {
        display: flex;
        font-size: 11px;
        align-items: start;
    }
    .ticket-qty {
        width: 15%;
    }
    .ticket-name {
        width: 60%;
        word-break: break-word;
    }
    .ticket-price {
        width: 25%;
        text-align: right;
    }
    .ticket-item-notes {
        font-size: 9px;
        font-style: italic;
        padding-left: 15%;
        color: #333;
        margin-top: 1px;
    }
    
    .ticket-totals {
        font-size: 11px;
        margin-top: 6px;
    }
    .ticket-total-row {
        display: flex;
        justify-content: space-between;
        margin-bottom: 3px;
    }
    .ticket-grand-total {
        font-size: 14px;
        font-weight: bold;
        border-top: 1px dashed #000;
        padding-top: 5px;
        margin-top: 4px;
    }
    
    .ticket-footer {
        text-align: center;
        margin-top: 12px;
        font-size: 10px;
    }
    .ticket-payment-method {
        font-size: 11px;
        margin-bottom: 8px;
    }
    .ticket-thanks {
        font-weight: bold;
        font-size: 11px;
        margin-bottom: 2px;
    }
    .ticket-visit {
        font-size: 9px;
    }
    
    /* Clean up page dimensions for roll printers */
    @page {
        margin: 0;
        size: auto;
    }
}

/* Hide ticket-imprimible container on regular screen */
@media screen {
    #ticket-imprimible {
        display: none !important;
    }
}

/* -------------------------------------------------------------
   Mobile Responsive Optimizations (Meseros & POS Móvil)
   ------------------------------------------------------------- */
.drawer-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.drawer-backdrop.active {
    display: block;
    opacity: 1;
}

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

.drawer-close-btn {
    display: none;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 1.4rem;
    width: 32px;
    height: 32px;
    line-height: 1;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.drawer-close-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

.mobile-cart-bar {
    display: none;
}

@media (max-width: 1024px) {
    .pos-layout {
        grid-template-columns: 1fr;
    }
    
    .order-drawer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-height: 85vh;
        background: #0f172a;
        border-radius: 24px 24px 0 0;
        border-top: 2px solid var(--primary);
        z-index: 999;
        transform: translateY(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.9);
        overflow-y: auto;
    }
    
    .order-drawer.mobile-active {
        transform: translateY(0);
    }
    
    .drawer-close-btn {
        display: inline-flex;
    }
    
    .mobile-cart-bar {
        display: flex;
        position: fixed;
        bottom: 16px;
        left: 16px;
        right: 16px;
        background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
        backdrop-filter: blur(16px);
        border: 1.5px solid var(--primary);
        border-radius: 16px;
        padding: 12px 18px;
        align-items: center;
        justify-content: space-between;
        z-index: 990;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(20, 184, 166, 0.3);
        cursor: pointer;
        opacity: 0;
        pointer-events: none;
        transform: translateY(20px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .mobile-cart-bar.visible {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
    
    .mobile-cart-info {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .mobile-cart-badge {
        background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
        color: #fff;
        font-weight: 700;
        font-size: 0.9rem;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(20, 184, 166, 0.4);
    }
}

@media (max-width: 600px) {
    .container {
        padding: 12px 14px;
    }
    
    .navbar {
        padding: 10px 14px;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .nav-brand {
        font-size: 1.4rem;
    }
    
    .nav-user {
        gap: 8px;
    }
    
    .user-badge {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
    
    .tables-grid {
        grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
        gap: 12px;
    }
    
    .table-card {
        padding: 18px 10px;
        border-radius: 14px;
    }
    
    .table-number {
        font-size: 1.35rem;
        margin-bottom: 2px;
    }
    
    .table-capacity {
        font-size: 0.75rem;
        margin-bottom: 8px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }
    
    .product-card {
        padding: 12px;
        border-radius: 12px;
    }
    
    .product-name {
        font-size: 0.9rem;
        margin-bottom: 4px;
    }
    
    .product-desc {
        font-size: 0.75rem;
        margin-bottom: 8px;
    }
    
    .product-price {
        font-size: 1rem;
    }
    
    .qty-btn {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
        border-radius: 8px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

