/* ==========================================================================
   Cooper's Design System - Modern, High-Performance Restaurant UI
   Brand Colors: Vivid Orange #FF6B00 | Dark Charcoal #1E1E24 | Warm Cream #FAF7F2
   ========================================================================== */

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

:root {
    --brand-orange: #FF6B00;
    --brand-orange-hover: #E55A00;
    --brand-orange-light: #FFF1E6;
    --brand-orange-glow: rgba(255, 107, 0, 0.25);
    
    --dark-bg: #121316;
    --dark-surface: #1E1E24;
    --dark-card: #272830;
    --dark-border: #383A46;
    
    --light-bg: #F8F9FB;
    --light-surface: #FFFFFF;
    --light-cream: #FAF7F2;
    --light-border: #EAECEF;
    --light-border-hover: #D1D5DB;

    --text-main: #191B1F;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;
    --text-white: #FFFFFF;

    --status-pending: #F59E0B;
    --status-confirmed: #3B82F6;
    --status-progress: #8B5CF6;
    --status-ready: #10B981;
    --status-completed: #059669;
    --status-cancelled: #EF4444;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.10);
    --shadow-orange: 0 8px 24px rgba(255, 107, 0, 0.35);

    --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-family);
    background-color: var(--light-bg);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
h1, h2, h3, h4, h5 {
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    transition: var(--transition);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-pending { background: #FEF3C7; color: #B45309; }
.badge-confirmed { background: #DBEAFE; color: #1D4ED8; }
.badge-progress { background: #EDE9FE; color: #6D28D9; }
.badge-ready { background: #D1FAE5; color: #047857; }
.badge-completed { background: #E5E7EB; color: #374151; }
.badge-cancelled { background: #FEE2E2; color: #B91C1C; }

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--light-border);
    padding: 12px 24px;
}

.header-container {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo-img {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    object-fit: cover;
    box-shadow: 0 4px 12px var(--brand-orange-glow);
}

.brand-text-block {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--brand-orange);
    letter-spacing: 0.03em;
    line-height: 1.1;
}

.brand-subtitle {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0;
    scrollbar-width: none;
}
.header-nav::-webkit-scrollbar { display: none; }

.nav-pill {
    padding: 8px 16px;
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: var(--transition);
}

.nav-pill:hover {
    background: #F1F3F5;
    color: var(--text-main);
}

.nav-pill.active {
    background: var(--brand-orange);
    color: var(--text-white);
    box-shadow: 0 4px 12px var(--brand-orange-glow);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.table-selector-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #F8F9FB;
    border: 1px solid var(--light-border);
    padding: 7px 14px;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-main);
}

.table-select {
    border: none;
    background: transparent;
    font-weight: 700;
    font-family: inherit;
    color: var(--brand-orange);
    outline: none;
    cursor: pointer;
}

.cart-icon-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: #FFF2E6;
    color: var(--brand-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition);
}

.cart-icon-btn:hover {
    background: var(--brand-orange);
    color: var(--text-white);
    transform: scale(1.05);
}

.cart-counter-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--brand-orange);
    color: var(--text-white);
    border: 2px solid #FFFFFF;
    font-size: 0.72rem;
    font-weight: 800;
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   Main App Grid (Tablet/Desktop Split View)
   ========================================================================== */
.client-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 24px;
    display: grid;
    grid-template-columns: 240px 1fr 380px;
    gap: 24px;
    min-height: calc(100vh - 80px);
}

@media (max-width: 1200px) {
    .client-container {
        grid-template-columns: 1fr 360px;
    }
    .sidebar-categories {
        display: none !important;
    }
}

@media (max-width: 900px) {
    .client-container {
        grid-template-columns: 1fr;
        padding: 16px;
        margin-bottom: 90px;
    }
    .cart-sidebar-panel {
        display: none !important;
    }
}

/* ==========================================================================
   Left Category Sidebar
   ========================================================================== */
.sidebar-categories {
    background: var(--light-surface);
    border-radius: var(--radius-lg);
    padding: 20px 16px;
    border: 1px solid var(--light-border);
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: sticky;
    top: 92px;
    height: fit-content;
}

.sidebar-title {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0 12px 10px;
}

.category-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: 1px solid transparent;
}

.category-nav-item:hover {
    background: #F8F9FA;
    color: var(--text-main);
}

.category-nav-item.active {
    background: #FFF3EB;
    color: var(--brand-orange);
    border-color: rgba(255, 107, 0, 0.2);
    font-weight: 700;
}

/* ==========================================================================
   Center Feed / Menu Content
   ========================================================================== */
.menu-feed {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Hero Banner */
.hero-banner {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 220px;
    box-shadow: var(--shadow-md);
    background: #111;
}

.hero-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: transform 0.6s ease;
}
.hero-banner:hover .hero-banner-img {
    transform: scale(1.03);
}

.hero-banner-content {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px;
    color: #FFFFFF;
}

.hero-tag {
    background: var(--brand-orange);
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    width: fit-content;
    margin-bottom: 8px;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.15;
    color: #FFFFFF;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1rem;
    color: #E2E8F0;
    margin-top: 6px;
    font-weight: 500;
}

/* Category Sections */
.category-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.category-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-section-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
}

.category-item-count {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--light-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--light-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--light-border-hover);
}

.product-card.out-of-stock {
    opacity: 0.55;
    filter: grayscale(0.5);
    pointer-events: none;
}

.product-img-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    background: #F1F3F5;
    overflow: hidden;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.out-of-stock-ribbon {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #1E1E24;
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.product-info {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}

.product-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.45;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.product-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.product-price-block {
    display: flex;
    flex-direction: column;
}

.product-price-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.product-price-val {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--brand-orange);
}

.add-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--brand-orange);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 14px var(--brand-orange-glow);
    transition: var(--transition);
}

.add-btn:hover {
    background: var(--brand-orange-hover);
    transform: scale(1.08);
}

/* ==========================================================================
   Right Cart Sidebar (Tablet/Desktop View)
   ========================================================================== */
.cart-sidebar-panel {
    background: var(--light-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--light-border);
    padding: 24px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 92px;
    height: calc(100vh - 120px);
    box-shadow: var(--shadow-sm);
}

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

.cart-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    font-weight: 800;
}

.cart-clear-btn {
    background: transparent;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.cart-clear-btn:hover {
    color: var(--status-cancelled);
}

.cart-items-scroll {
    flex-grow: 1;
    overflow-y: auto;
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cart-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    text-align: center;
    gap: 12px;
    padding: 20px;
}

.cart-empty-icon {
    font-size: 3rem;
    opacity: 0.6;
}

.cart-item-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border-radius: var(--radius-md);
    background: #FAF8F5;
    border: 1px solid #F0ECE4;
}

.cart-item-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.cart-item-title {
    font-weight: 700;
    font-size: 0.95rem;
}

.cart-item-variant {
    font-size: 0.78rem;
    color: var(--brand-orange);
    font-weight: 700;
}

.cart-item-supps {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.cart-item-remarks {
    font-size: 0.78rem;
    color: #D97706;
    font-style: italic;
    background: #FEF3C7;
    padding: 2px 6px;
    border-radius: 4px;
    width: fit-content;
}

.cart-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}

.quantity-stepper {
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border-radius: var(--radius-full);
    border: 1px solid var(--light-border);
    padding: 2px 4px;
}

.stepper-btn {
    width: 26px;
    height: 26px;
    border-radius: var(--radius-full);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--text-main);
}

.stepper-btn:hover {
    background: #F1F3F5;
}

.stepper-value {
    min-width: 24px;
    text-align: center;
    font-size: 0.88rem;
    font-weight: 700;
}

.cart-item-total {
    font-weight: 800;
    font-size: 1rem;
    color: var(--text-main);
}

/* Cart Bottom Summary */
.cart-summary-block {
    border-top: 1px solid var(--light-border);
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
}

.summary-total-val {
    color: var(--brand-orange);
}

.order-type-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #F1F3F5;
    padding: 4px;
    border-radius: var(--radius-full);
    gap: 4px;
}

.type-toggle-btn {
    padding: 8px 12px;
    border-radius: var(--radius-full);
    background: transparent;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.type-toggle-btn.active {
    background: #FFFFFF;
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
}

.checkout-btn {
    width: 100%;
    padding: 16px;
    border-radius: var(--radius-full);
    background: var(--brand-orange);
    color: var(--text-white);
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: var(--shadow-orange);
    transition: var(--transition);
}

.checkout-btn:hover:not(:disabled) {
    background: var(--brand-orange-hover);
    transform: translateY(-2px);
}

.checkout-btn:disabled {
    background: #CBD5E1;
    box-shadow: none;
    cursor: not-allowed;
}

/* ==========================================================================
   Mobile Floating Bottom Bar & Nav
   ========================================================================== */
.mobile-cart-floating {
    display: none;
    position: fixed;
    bottom: 74px;
    left: 16px;
    right: 16px;
    z-index: 40;
    background: var(--brand-orange);
    color: var(--text-white);
    padding: 14px 20px;
    border-radius: var(--radius-full);
    box-shadow: 0 10px 25px var(--brand-orange-glow);
    align-items: center;
    justify-content: space-between;
}

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: #FFFFFF;
    border-top: 1px solid var(--light-border);
    z-index: 45;
    justify-content: space-around;
    align-items: center;
    padding: 0 10px;
}

.mobile-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
}

.mobile-nav-btn.active {
    color: var(--brand-orange);
    font-weight: 700;
}

.mobile-nav-icon {
    font-size: 1.25rem;
}

@media (max-width: 900px) {
    .mobile-cart-floating {
        display: flex;
    }
    .mobile-bottom-nav {
        display: flex;
    }
}

/* ==========================================================================
   Modals & Overlays
   ========================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.modal-card {
    background: #FFFFFF;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    position: relative;
    transform: scale(0.94);
    transition: var(--transition);
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: rgba(0, 0, 0, 0.4);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    font-size: 1.2rem;
}

.modal-img-wrapper {
    position: relative;
    height: 240px;
    background: #F1F3F5;
}

.modal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.modal-title {
    font-size: 1.4rem;
    font-weight: 800;
}

.modal-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.modal-section-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.variant-options-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.variant-pill {
    padding: 14px;
    border-radius: var(--radius-md);
    border: 2px solid var(--light-border);
    background: #FFFFFF;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: var(--transition);
}

.variant-pill.active {
    border-color: var(--brand-orange);
    background: #FFF7F0;
}

.variant-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.variant-price {
    font-weight: 800;
    color: var(--brand-orange);
}

.supplements-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.supplement-checkbox-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--light-border);
    cursor: pointer;
    transition: var(--transition);
}

.supplement-checkbox-label:hover {
    background: #FAF8F5;
}

.supp-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
}

.supp-price {
    font-weight: 700;
    color: var(--brand-orange);
    font-size: 0.9rem;
}

.remarks-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--light-border);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.remarks-input:focus {
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 3px var(--brand-orange-light);
}

/* ==========================================================================
   Management Panels (Shared Styles for Waiter, Kitchen, POS)
   ========================================================================== */
.admin-navbar {
    background: var(--dark-surface);
    color: #FFFFFF;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--dark-border);
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #FFFFFF;
}

.admin-subtitle-pill {
    background: var(--brand-orange);
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

.admin-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-link {
    color: #94A3B8;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.admin-link:hover, .admin-link.active {
    color: #FFFFFF;
    background: var(--dark-card);
}

.admin-body {
    background: #0F1015;
    color: #E2E8F0;
    min-height: 100vh;
}

.admin-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 24px;
}

/* KDS Kitchen Specifics */
.kitchen-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 20px;
    align-items: flex-start;
}

.kds-card {
    background: var(--dark-card);
    border-radius: var(--radius-lg);
    border: 2px solid var(--dark-border);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.3s ease;
}

.kds-card.status-confirmed {
    border-color: #3B82F6;
}

.kds-card.status-in_progress {
    border-color: #8B5CF6;
}

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

.kds-order-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: #FFFFFF;
}

.kds-table-badge {
    background: #383A46;
    color: #FFFFFF;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

.kds-timer {
    font-family: monospace;
    font-size: 0.95rem;
    font-weight: 700;
    color: #FCD34D;
    display: flex;
    align-items: center;
    gap: 4px;
}

.kds-timer.overdue {
    color: #EF4444;
    animation: pulse 1s infinite;
}

.kds-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kds-item-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #383A46;
}

.kds-item-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #FFFFFF;
}

.kds-qty-badge {
    background: var(--brand-orange);
    color: #FFFFFF;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
}

.kds-supp-tag {
    color: #94A3B8;
    font-size: 0.85rem;
    margin-left: 36px;
}

.kds-remarks-alert {
    background: #7F1D1D;
    color: #FECACA;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 6px 10px;
    border-radius: 6px;
    margin-left: 36px;
    border-left: 4px solid #EF4444;
    display: flex;
    align-items: center;
    gap: 6px;
}

.kds-action-btn {
    width: 100%;
    padding: 14px;
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.kds-btn-start {
    background: #8B5CF6;
    color: #FFFFFF;
}
.kds-btn-start:hover { background: #7C3AED; }

.kds-btn-ready {
    background: #10B981;
    color: #FFFFFF;
}
.kds-btn-ready:hover { background: #059669; }

/* ==========================================================================
   Thermal Receipt Print Layout (80mm)
   ========================================================================== */
#receipt-container {
    display: none;
}

@media print {
    body * {
        visibility: hidden;
    }
    #receipt-container, #receipt-container * {
        visibility: visible;
    }
    #receipt-container {
        display: block !important;
        position: absolute;
        left: 0;
        top: 0;
        width: 80mm;
        padding: 4mm;
        font-family: 'Courier New', Courier, monospace;
        color: #000000;
        background: #FFFFFF;
        font-size: 12px;
        line-height: 1.3;
    }
    .receipt-header {
        text-align: center;
        margin-bottom: 12px;
    }
    .receipt-title {
        font-size: 18px;
        font-weight: bold;
    }
    .receipt-divider {
        border-top: 1px dashed #000;
        margin: 8px 0;
    }
    .receipt-row {
        display: flex;
        justify-content: space-between;
    }
    .receipt-bold {
        font-weight: bold;
    }
    .receipt-footer {
        text-align: center;
        margin-top: 14px;
        font-size: 11px;
    }
}

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

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

/* ==========================================================================
   Detailed UI Styles (Matching Tablet & Phone Mockups)
   ========================================================================== */

/* Mobile Menu Hamburger */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    font-size: 1.5rem;
    color: var(--text-main);
    padding: 4px;
}
@media (max-width: 900px) {
    .mobile-menu-toggle { display: block; }
}

/* Staff Shortcuts */
.staff-shortcuts {
    display: flex;
    align-items: center;
    gap: 8px;
}
.staff-btn {
    padding: 6px 12px;
    border-radius: var(--radius-full);
    background: #F1F3F5;
    color: var(--text-main);
    font-size: 0.82rem;
    font-weight: 700;
    transition: var(--transition);
}
.staff-btn:hover {
    background: var(--brand-orange);
    color: #FFFFFF;
}

/* Search Bar */
.search-input-wrapper {
    display: flex;
    align-items: center;
    background: #F8F9FA;
    border: 1px solid var(--light-border);
    border-radius: var(--radius-full);
    padding: 8px 16px;
    gap: 8px;
    width: 240px;
    transition: var(--transition);
}
.search-input-wrapper:focus-within {
    border-color: var(--brand-orange);
    background: #FFFFFF;
    box-shadow: 0 0 0 3px var(--brand-orange-light);
}
.search-icon {
    font-size: 0.9rem;
    color: var(--text-muted);
}
.menu-search {
    border: none;
    background: transparent;
    outline: none;
    font-family: inherit;
    font-size: 0.88rem;
    color: var(--text-main);
    width: 100%;
}

/* Table Widget on Sidebar (Matching tablet mockup bottom left) */
.table-card-widget {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--light-border);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.table-dropdown-row {
    display: flex;
    align-items: center;
    background: #F8F9FA;
    border: 1px solid var(--light-border);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    gap: 8px;
}
.table-icon { font-size: 1.1rem; }
.table-select-styled {
    border: none;
    background: transparent;
    font-weight: 700;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    width: 100%;
    cursor: pointer;
}
.takeaway-switch-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 4px;
}
.switch-container {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
}
.switch-container input { opacity: 0; width: 0; height: 0; }
.switch-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #CBD5E1;
    transition: .3s;
    border-radius: 20px;
}
.switch-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}
input:checked + .switch-slider {
    background-color: var(--brand-orange);
}
input:checked + .switch-slider:before {
    transform: translateX(16px);
}
.switch-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
}
.sidebar-order-btn {
    background: var(--brand-orange);
    color: #FFFFFF;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 12px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-orange);
}
.sidebar-order-btn:hover {
    background: var(--brand-orange-hover);
}

/* See All Button */
.see-all-btn {
    background: transparent;
    color: var(--brand-orange);
    font-size: 0.88rem;
    font-weight: 700;
    transition: var(--transition);
}
.see-all-btn:hover {
    transform: translateX(3px);
}

/* Mobile Category Circles (Matching phone mockup) */
.mobile-category-circles {
    display: none;
    gap: 16px;
    overflow-x: auto;
    padding: 4px 0 12px;
    scrollbar-width: none;
}
.mobile-category-circles::-webkit-scrollbar { display: none; }
.circle-cat-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: transparent;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    white-space: nowrap;
}
.circle-cat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-full);
    background: #F1F3F5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: var(--transition);
}
.circle-cat-btn.active .circle-cat-icon {
    background: var(--brand-orange);
    color: #FFFFFF;
    box-shadow: 0 4px 12px var(--brand-orange-glow);
}
.circle-cat-btn.active span {
    color: var(--brand-orange);
}
@media (max-width: 900px) {
    .mobile-category-circles { display: flex; }
    .staff-shortcuts { display: none; }
    .search-input-wrapper { display: none; }
}

/* Cart Promo Banner (Matching tablet mockup bottom right) */
.cart-promo-card {
    background: linear-gradient(135deg, #FF6B00 0%, #FF8533 100%);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #FFFFFF;
    box-shadow: 0 6px 18px var(--brand-orange-glow);
    margin-top: 6px;
}
.promo-brand {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    display: block;
    opacity: 0.9;
}
.promo-tagline {
    font-size: 1.15rem;
    font-weight: 800;
}
.promo-burger-thumb {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: #FFFFFF;
    padding: 2px;
}

/* Modal Footer & Buttons */
.modal-footer-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--light-border);
}
.modal-add-btn {
    flex-grow: 1;
    background: var(--brand-orange);
    color: #FFFFFF;
    font-weight: 800;
    font-size: 1rem;
    padding: 14px 20px;
    border-radius: var(--radius-full);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-orange);
}
.modal-add-btn:hover {
    background: var(--brand-orange-hover);
}

/* Tracker Modal */
.tracker-card {
    padding: 32px;
    max-width: 460px;
}
.tracker-header {
    text-align: center;
    margin-bottom: 24px;
}
.tracker-badge-brand {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--brand-orange);
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}
.tracker-title {
    font-size: 1.4rem;
    font-weight: 800;
}
.tracker-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-top: 4px;
}
.tracker-table {
    display: inline-block;
    background: #FFF1E6;
    color: var(--brand-orange);
    font-weight: 800;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    margin-top: 8px;
}
.pipeline-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 20px 0;
}
.step-node {
    display: flex;
    align-items: center;
    gap: 14px;
    opacity: 0.4;
    transition: var(--transition);
}
.step-node.active {
    opacity: 1;
}
.step-circle {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: #F1F3F5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}
.step-node.active .step-circle {
    background: #FFF1E6;
    border: 2px solid var(--brand-orange);
}
.step-info strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-main);
}
.step-info small {
    color: var(--text-secondary);
}
.btn-primary-full {
    width: 100%;
    padding: 14px;
    border-radius: var(--radius-full);
    background: var(--brand-orange);
    color: #FFFFFF;
    font-weight: 800;
    font-size: 1rem;
}
.btn-primary-full:hover {
    background: var(--brand-orange-hover);
}

