/* Custom properties for the Obsidian premium dark mode */
:root {
    --bg-primary: #0f172a;
    --bg-secondary: #1a2236;
    --bg-card: #242f49;
    --bg-card-hover: #2d3a5a;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --primary: #ef4444;
    --primary-hover: #dc2626;
    --primary-glow: rgba(239, 68, 68, 0.3);
    
    --accent: #10b981;
    --accent-hover: #059669;
    --accent-glow: rgba(16, 185, 129, 0.3);
    
    --success: #10b981;
    --success-light: rgba(16, 185, 129, 0.15);
    --success-glow: rgba(16, 185, 129, 0.4);
    
    --danger: #ef4444;
    --danger-light: rgba(239, 68, 68, 0.15);
    --danger-glow: rgba(239, 68, 68, 0.4);
    
    --warning: #f59e0b;
    --warning-light: rgba(245, 158, 11, 0.15);
    --warning-glow: rgba(245, 158, 11, 0.4);

    --billing: #f59e0b;
    --billing-glow: rgba(245, 158, 11, 0.3);

    --border: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(239, 68, 68, 0.5);
    
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.4);

    --bg-surface-subtle: rgba(255, 255, 255, 0.03);
}

/* Light Mode Variables Override */
body.light-mode {
    --bg-primary: #f1f5f9;
    --bg-secondary: rgba(255, 255, 255, 0.9);
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;

    --primary: #41b36a;
    --primary-hover: #369c5a;
    --primary-glow: rgba(65, 179, 106, 0.2);

    --accent: #10b981;
    --accent-hover: #059669;
    --accent-glow: rgba(16, 185, 129, 0.2);

    --border: rgba(0, 0, 0, 0.1);
    --border-focus: rgba(65, 179, 106, 0.4);

    --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);

    --bg-surface-subtle: rgba(255, 255, 255, 0.4);
}

body.light-mode .table-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-md);
}

body.light-mode .table-card.available {
    background: rgba(255, 255, 255, 0.4);
    border: 1px dashed rgba(0, 0, 0, 0.15);
}

body.light-mode .app-header {
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-mode .logo-wrapper-inner {
    background: radial-gradient(circle at center, rgba(65, 179, 106, 0.1) 0%, transparent 80%);
}

body.light-mode .logo-main-text.header-neon-netos {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(65, 179, 106, 0.2);
}

.user-avatar-small {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    object-fit: cover;
    margin-right: 10px;
    background: var(--bg-card);
}

body.light-mode .user-name,
body.light-mode .floor-indicator {
    color: var(--text-primary);
}

body.light-mode .logout-btn {
    border-color: var(--border);
    color: var(--text-secondary);
}

body.light-mode .detail-header-card {
    background: white;
    border-color: rgba(0, 0, 0, 0.05);
}

body.light-mode #detail-table-title {
    color: var(--text-primary) !important;
}

body.light-mode #detail-table-type {
    color: var(--text-secondary) !important;
}

body.light-mode .attendant-detail-info-card {
    background: white;
    border-color: rgba(0, 0, 0, 0.05);
}

body.light-mode .attendant-detail-info-card .info-label {
    color: var(--text-secondary);
}

body.light-mode .attendant-detail-info-card .info-value {
    color: var(--text-primary);
}

body.light-mode .attendant-detail-info-card .section-title {
    color: var(--text-muted);
}

body.light-mode .attendant-table-timer {
    color: var(--text-primary);
}

body.light-mode .floor-nav-wrapper {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

body.light-mode .billing-details-panel {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
}

body.light-mode .attendant-floor-nav {
    background: var(--bg-card);
}

body.light-mode .attendant-floor-btn.active {
    background: var(--bg-secondary);
    color: var(--primary);
}

body.light-mode .attendant-table-card:active {
    background: var(--bg-card-hover);
}

body.light-mode .override-inputs input {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

body.light-mode .qty-btn {
    background: var(--bg-card);
    color: var(--text-primary);
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    -webkit-tap-highlight-color: transparent;
}

/* Targeted transitions for better performance */
.btn,
.nav-tab,
.table-card,
.floor-btn,
.quick-add-btn,
.special-menu-item,
.attendant-table-card,
.input-control,
.login-form-side input,
.modal-card,
.panel-btn {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    width: 100vw;
    max-width: 100%;
    overflow-x: hidden;
    display: block; /* Ensure body is not flex */
}

html {
    max-width: 100%;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Animations */
@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

@keyframes pulse-yellow {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

@keyframes status-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); background: rgba(99, 102, 241, 0.1); }
    100% { transform: scale(1); }
}

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

@keyframes neon-glow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.8));
        opacity: 1;
        transform: rotate(-3deg) scale(1);
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(239, 68, 68, 1)) drop-shadow(0 0 45px rgba(239, 68, 68, 0.5));
        opacity: 0.98;
        transform: rotate(-3deg) scale(1.02);
    }
    /* Occasional flicker */
    12% { opacity: 0.85; }
    13% { opacity: 1; }
    14% { opacity: 0.9; }
    15% { opacity: 1; }
    70% { opacity: 0.95; }
    72% { opacity: 0.7; }
    73% { opacity: 1; }
}

@keyframes fire-drift {
    from { background-position: 0 0; }
    to { background-position: 2000px 0; }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes neon-flicker-simple {
    0%, 100% { opacity: 1; }
    32% { opacity: 0.8; }
    33% { opacity: 1; }
    75% { opacity: 0.9; }
    76% { opacity: 1; }
    77% { opacity: 0.7; }
    78% { opacity: 1; }
}

.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Utility Layouts */
.hidden {
    display: none !important;
}

/* General Form Styles */
.form-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.input-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.input-control:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-card-hover);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* LOGIN VIEW - FIERY THEME */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    background: #000;
    background-image:
        radial-gradient(circle at center, rgba(239, 68, 68, 0.15) 0%, transparent 70%),
        url('images/bg.png');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.login-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 150px;
    background: url('https://www.transparentpng.com/download/fire/H6vS5O-fire-top-transparent-image.png') repeat-x;
    background-size: auto 150px;
    z-index: 2;
    pointer-events: none;
    opacity: 0.9;
    animation: fire-drift 60s linear infinite;
}

.login-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 150px;
    background: url('https://www.transparentpng.com/download/fire/H6vS5O-fire-top-transparent-image.png') repeat-x;
    background-size: auto 150px;
    z-index: 2;
    pointer-events: none;
    transform: rotate(180deg);
    opacity: 0.9;
    animation: fire-drift 45s linear infinite reverse;
}

.login-container {
    width: 100%;
    max-width: 900px;
    height: 600px;
    background: rgba(26, 34, 54, 0.95);
    border-radius: 30px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(239, 68, 68, 0.2);
    position: relative;
    z-index: 5;
    border: 1px solid rgba(239, 68, 68, 0.2);
    backdrop-filter: blur(10px);
}

/* Info Side (Fiery Red) */
.login-info-side {
    width: 45%;
    background: #000 url('images/bg.jpg') center/cover no-repeat;
    padding: 3rem 2.5rem;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 10;
}

.login-info-side > * {
    animation: fade-in-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.login-info-side > *:nth-child(1) { animation-delay: 0.1s; }
.login-info-side > *:nth-child(2) { animation-delay: 0.2s; }
.login-info-side > *:nth-child(3) { animation-delay: 0.3s; }
.login-info-side > *:nth-child(4) { animation-delay: 0.4s; }
.login-info-side > *:nth-child(5) { animation-delay: 0.5s; }

.login-info-side::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.9)), radial-gradient(circle at center, rgba(239, 68, 68, 0.2) 0%, transparent 70%);
    z-index: -1;
}

.neon-branding {
    margin: 2.5rem 0;
    transform: rotate(-3deg);
    filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.8));
    animation: neon-glow 4s ease-in-out infinite;
    will-change: filter, opacity, transform;
}

.neon-netos {
    display: block;
    font-size: 5rem;
    font-weight: 800;
    font-style: italic;
    color: #fff;
    text-shadow:
        0 0 5px #fff,
        0 0 10px #fff,
        0 0 20px #ef4444,
        0 0 30px #ef4444,
        0 0 40px #ef4444,
        0 0 55px #ef4444;
    line-height: 0.85;
    margin-bottom: 0.2rem;
    animation: neon-flicker-simple 5s infinite step-end;
}

.neon-barbecue {
    display: block;
    font-size: 2.4rem;
    font-weight: 900;
    color: #fff;
    text-shadow:
        0 0 5px #fff,
        0 0 10px #ef4444,
        0 0 15px #ef4444;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 0 10px;
    animation: neon-flicker-simple 7s infinite step-end reverse;
}

.logo-circle {
    display: none; /* Replaced by neon-branding */
}

.brand-name {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.brand-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.85;
    margin-bottom: 3rem;
    max-width: 280px;
}

.toggle-auth-btn {
    background: white;
    color: #ef4444;
    border: none;
    padding: 0.85rem 3.5rem;
    border-radius: 100px;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.toggle-auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* Form Side (Dark) */
.login-form-side {
    width: 55%;
    background: #1a2236;
    padding: 3.5rem 3rem;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.form-title {
    font-size: 1.85rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    text-align: center;
}

.input-group {
    position: relative;
    margin-bottom: 1.25rem;
}

.input-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #ef4444;
    display: flex;
}

.login-form-side input[type="text"],
.login-form-side input[type="password"] {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1rem 1rem 3.5rem;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: all 0.2s;
}

.login-form-side input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: #ef4444;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    font-size: 0.85rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: #94a3b8;
}

.remember-me input {
    accent-color: #ef4444;
}

.forgot-pass {
    color: #94a3b8;
    text-decoration: none;
}

.forgot-pass:hover {
    color: #ef4444;
}

.form-buttons {
    display: flex;
    gap: 1rem;
}

.submit-btn {
    flex: 1;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}

.submit-btn.main {
    background: #ef4444;
    color: white;
    border: none;
}

.submit-btn.main:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.submit-btn.outline {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-only {
    display: none;
}

.login-demo-accounts {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.login-demo-accounts h4 {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.demo-account-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.demo-chip {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    border-radius: 8px;
    font-size: 0.75rem;
    color: #94a3b8;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.demo-chip:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: white;
}

/* Quick Add Section */
.quick-add-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.4rem;
}

.quick-add-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    padding: 0.75rem 0.5rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    gap: 4px;
    min-height: 80px;
    color: var(--text-primary);
}

.quick-add-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.quick-add-btn.out-of-stock {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(1);
    background: rgba(0, 0, 0, 0.2);
    border-style: dashed;
}

.quick-add-btn.out-of-stock:hover {
    transform: none;
    box-shadow: none;
}

.quick-add-btn span {
    font-size: 0.85rem;
    font-weight: 700;
    color: inherit;
    line-height: 1.2;
}

.quick-add-btn small {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary);
}

/* Attendant Detail Components */
.detail-header-card {
    margin-top: 0.5rem;
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 1.25rem;
}

.attendant-detail-info-card {
    background: rgba(30, 41, 59, 0.5);
    border-radius: 28px;
    padding: 1.5rem 1.25rem;
    border: 1px solid var(--border);
    margin-top: 1.25rem;
}

/* ... existing styles ... */


/* Mobile Responsive */
@media (max-width: 768px) {
    .login-wrapper {
        padding: 1.5rem 1rem;
        align-items: flex-start;
        overflow-y: auto;
    }

    .login-container {
        flex-direction: column;
        height: auto;
        border-radius: 24px;
        max-width: 450px;
    }

    .login-info-side {
        width: 100%;
        padding: 3rem 1.5rem;
        border-bottom-right-radius: 60px;
        background-position: bottom;
    }

    .login-info-side .hello-text {
        font-size: 1.2rem;
    }

    .login-info-side .welcome-text {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .neon-netos {
        font-size: 4rem;
    }

    .neon-barbecue {
        font-size: 1.8rem;
    }

    .login-form-side {
        width: 100%;
        padding: 2.5rem 1.5rem;
    }

    .form-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .form-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .login-info-side .brand-desc {
        display: none;
    }

    .toggle-auth-btn {
        display: none;
    }

    .mobile-only {
        display: block;
    }

    .login-demo-accounts {
        margin-top: 2rem;
    }
}




/* APP MAIN CONTAINER */
#app-wrapper > * {
    margin-top: 0;
    margin-bottom: 0;
}

#app-wrapper {
    display: block;
    width: 100%;
}

.app-header {
    background: rgba(26, 34, 54, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(239, 68, 68, 0.2);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    height: auto !important;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.logo-wrapper-inner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 4px 10px;
    border-radius: 8px;
    background: radial-gradient(circle at center, rgba(239, 68, 68, 0.2) 0%, transparent 80%);
}

.logo-icon {
    color: var(--primary);
    filter: drop-shadow(0 0 6px var(--primary-glow));
    flex-shrink: 0;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
    line-height: 0.9;
}

.logo-main-text.header-neon-netos {
    font-size: 1.4rem;
    font-weight: 900;
    font-style: italic;
    color: #fff;
    text-shadow: 0 0 5px #fff, 0 0 10px #ef4444, 0 0 15px #ef4444;
    line-height: 0.8;
    margin-bottom: 2px;
    letter-spacing: -0.5px;
}

.logo-sub-text.header-neon-barbecue {
    font-size: 0.65rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 5px #ef4444;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.user-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
    flex: 1;
    justify-content: flex-end;
}

.user-info {
    text-align: right;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.floor-indicator {
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.user-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role-badge {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.05em;
}

.logout-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
}

#theme-toggle:hover {
    color: var(--primary);
    background: var(--primary-glow);
    border-color: var(--primary);
}

/* TABS AND VIEWS CONTROLLER */
.tabs-container {
    display: flex;
    background: rgba(26, 34, 54, 0.6);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(239, 68, 68, 0.1);
    padding: 0 1.5rem;
}

.nav-tab {
    padding: 1rem 1.25rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.nav-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.main-content {
    padding: 1.5rem;
    display: block !important;
}

.main-tab-view {
    width: 100%;
    display: block;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.main-tab-view.hidden {
    display: none !important;
}

/* CASHIER DASHBOARD VIEW */
.cashier-view-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 1.5rem;
}

/* Left Panel: Floor and Table Grids */
.billiard-tables-panel {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.floor-nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-secondary);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.floor-selector {
    display: flex;
    gap: 0.5rem;
}

.floor-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.floor-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

.floor-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 10px var(--primary-glow);
}

.legend-indicator-list {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.green { background-color: var(--success); box-shadow: 0 0 6px var(--success); }
.dot.red { background-color: var(--danger); box-shadow: 0 0 6px var(--danger); }
.dot.yellow { background-color: var(--warning); box-shadow: 0 0 6px var(--warning); }

/* Table Grid */
.tables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}

.table-card {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.table-card.available {
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
}

.table-card.occupied {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(239, 68, 68, 0.3);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.table-card.billing {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid var(--warning);
    animation: pulse-yellow 2s infinite;
}

.table-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -10px rgba(0,0,0,0.5);
}

.table-card.active-selected {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
    box-shadow: 0 0 0 2px var(--primary-glow), var(--shadow-md);
}

.table-card.status-changed {
    animation: status-pop 0.4s ease-out;
}

.table-title {
    font-size: 1.25rem;
    font-weight: 500; /* Outfit Medium */
}

.table-subtitle {
    font-size: 0.75rem;
    font-weight: 300; /* Outfit Light */
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-badge {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    letter-spacing: 0.02em;
}

.available .status-badge {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}
.occupied .status-badge {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}
.billing .status-badge {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.card-timer-section {
    margin: 0.75rem 0;
    min-height: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.timer-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.timer-value {
    font-size: 1.35rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.occupied .timer-value { color: var(--danger); }
.billing .timer-value { color: var(--warning); }

.card-bill-summary {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    color: var(--text-secondary);
}

.card-bill-amount {
    font-weight: 700;
    color: var(--text-primary);
}

.attendant-indicator {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.card-btn {
    flex: 1;
    padding: 0.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
}

.card-btn.start {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}
.card-btn.start:hover {
    background: var(--success);
    color: white;
    box-shadow: 0 0 10px var(--success-glow);
}

.card-btn.stop {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}
.card-btn.stop:hover {
    background: var(--danger);
    color: white;
    box-shadow: 0 0 10px var(--danger-glow);
}

/* Right Panel: Side details panel (billing and operations) */
.billing-details-panel {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 150px);
    position: sticky;
    top: 90px;
    box-shadow: var(--shadow-lg);
}

.panel-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--text-muted);
    height: 100%;
    text-align: center;
}

.panel-placeholder svg {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

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

.panel-header h3 {
    font-weight: 800;
    font-size: 1.15rem;
}

.panel-close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.2rem;
}

.panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
}

.section-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    background: var(--bg-surface-subtle);
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.info-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.info-value {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: right;
}

/* Orders List */
.order-list-section {
    margin-bottom: 1.5rem;
}

.order-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.add-food-btn {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.25);
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.2s ease;
}

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

.orders-table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table th {
    text-align: left;
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 0.5rem 0.25rem;
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
}

.orders-table td {
    padding: 0.5rem 0.25rem;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.order-item-title {
    font-weight: 600;
}

.order-item-category {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.order-qty {
    text-align: center;
    font-weight: 600;
}

.order-subtotal {
    text-align: right;
    font-weight: 600;
}

.order-action {
    text-align: right;
}

.delete-order-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.15s ease;
}

.delete-order-btn:hover {
    color: var(--danger);
}

.no-orders-msg {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 1.5rem 0;
    border: 1px dashed var(--border);
    border-radius: 8px;
}

/* Bill breakdown & calculation */
/* Progressive Disclosure Sidebar */
.sidebar-accordion {
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.accordion-header {
    padding: 1rem;
    background: var(--bg-surface-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.accordion-header h4 {
    margin-bottom: 0;
}

.accordion-icon {
    transition: transform 0.3s;
}

.accordion-content {
    padding: 1rem;
    display: none;
    border-top: 1px solid var(--border);
}

.sidebar-accordion.open .accordion-content {
    display: block;
}

.sidebar-accordion.open .accordion-icon {
    transform: rotate(180deg);
}

.sticky-footer-summary {
    position: sticky;
    bottom: 0;
    background: var(--bg-secondary);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    padding: 1.25rem;
    margin-top: auto;
    z-index: 10;
}

.grand-total-display {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.grand-total-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
}

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

.summary-row.total {
    border-top: 1px dashed var(--border);
    padding-top: 0.75rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
}

.discount-override-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border);
    padding: 0.5rem;
    border-radius: 8px;
}

.override-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

.override-inputs {
    display: flex;
    gap: 0.5rem;
}

.override-inputs input {
    flex: 1;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
}

.panel-footer {
    padding: 1.25rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.panel-btn {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.panel-btn.checkout {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.panel-btn.checkout:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px var(--primary-glow);
}

.panel-btn.stop-billing {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.panel-btn.stop-billing:hover {
    background: var(--danger);
    color: white;
    box-shadow: 0 4px 12px var(--danger-glow);
}

.panel-btn.start-session {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.panel-btn.start-session:hover {
    background: var(--success);
    color: white;
    box-shadow: 0 4px 12px var(--success-glow);
}

#cart-summary-mini {
    font-weight: 700;
    color: var(--primary);
}

.footer-buttons {
    display: flex;
    gap: 10px;
}

/* MODAL SYSTEM */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 24px;
    width: 100%;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 2rem);
    overflow: hidden;
}

.modal-card form {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

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

.modal-header h3 {
    font-size: 1.15rem;
    font-weight: 800;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.25rem;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1rem 2rem 1rem;
    scrollbar-gutter: stable;
}

.modal-footer {
    padding: 1.25rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    background: var(--bg-secondary);
    box-shadow: 0 -10px 20px rgba(0,0,0,0.2);
}

.btn {
    padding: 0.65rem 1.25rem;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 0.9rem;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 10px var(--primary-glow);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px var(--primary-glow);
}

/* FOOD CATALOG MODAL STYLES */
.food-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
}

.food-tab-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.food-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.food-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    padding: 0.5rem 0;
}

.food-item-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.food-item-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    background: var(--bg-card-hover);
}

.food-img-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    background: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.food-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.food-item-card:hover .food-img-wrapper img {
    transform: scale(1.1);
}

.food-price-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 900;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.sold-out-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: grayscale(1) blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    font-size: 1.2rem;
    letter-spacing: 2px;
    z-index: 3;
}

.food-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 8px;
}

.food-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8rem;
}

.food-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.food-cat-tag {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 6px;
}

.food-add-btn {
    background: var(--primary);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px var(--primary-glow);
    transition: all 0.2s ease;
}

.food-item-card:hover .food-add-btn {
    transform: scale(1.1);
    background: var(--primary-hover);
}


.food-info-left h4 {
    font-size: 0.95rem;
    font-weight: 600;
}

.food-order-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.qty-val {
    width: 24px;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.food-add-submit-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

.food-add-submit-btn:hover {
    background: var(--primary-hover);
}

/* CHECKOUT SUMMARY MODAL */
.payment-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin: 1rem 0;
}

.payment-option {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    padding: 0.75rem;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.payment-option svg {
    color: var(--text-secondary);
}

.payment-option:hover {
    border-color: var(--text-muted);
}

.payment-option.selected {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.payment-option.selected svg {
    color: var(--primary);
}

/* PRINT RECEIPT STYLING */
#receipt-preview-area {
    background: white;
    color: #000;
    font-family: 'Courier New', Courier, monospace;
    padding: 1.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    line-height: 1.4;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
}

.receipt-header {
    text-align: center;
    margin-bottom: 1rem;
    border-bottom: 1px dashed #000;
    padding-bottom: 0.5rem;
}

.receipt-title {
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
}

.receipt-divider {
    border-top: 1px dashed #000;
    margin: 0.5rem 0;
}

.receipt-items-table {
    width: 100%;
    margin-bottom: 0.5rem;
}

.receipt-items-table th {
    text-align: left;
    border-bottom: 1px dashed #000;
    font-size: 0.8rem;
}

.receipt-items-table td {
    padding: 0.2rem 0;
}

.receipt-footer {
    text-align: center;
    margin-top: 1rem;
    border-top: 1px dashed #000;
    padding-top: 0.5rem;
    font-size: 0.75rem;
}

/* ATTENDANT MOBILE VIEW - THEMED FOR REAL MOBILE DEVICES */
.attendant-layout {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 0 12px 100px 12px; /* Extra bottom padding for thumb reach */
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

#tab-attendant-panel {
    background-color: var(--bg-primary);
    min-height: 100vh;
}

.attendant-header-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 1.75rem 1.5rem;
    text-align: left; /* Mobile users read left-to-right better */
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.attendant-header-card::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.attendant-header-card h3 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.attendant-header-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
    opacity: 0.8;
}

.attendant-floor-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.attendant-floor-btn {
    padding: 0.85rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.attendant-floor-btn.active {
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    border: 1px solid var(--border);
}

.attendant-table-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.attendant-table-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.1s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.attendant-table-card:active {
    transform: scale(0.96);
    background: #1c2331;
}

.attendant-card-left {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.attendant-table-num {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
}

.attendant-table-status {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 100px;
    width: fit-content;
}

.available .attendant-table-status { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.occupied .attendant-table-status { background: rgba(239, 68, 68, 0.1); color: var(--danger); }
.billing .attendant-table-status { background: rgba(245, 158, 11, 0.1); color: var(--warning); }

.attendant-table-timer {
    font-size: 1.25rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--text-primary);
    margin-top: 0.75rem;
    font-family: 'Outfit', sans-serif;
}

.attendant-action-btn {
    width: 110px;
    height: 50px;
    border: none;
    border-radius: 16px;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.attendant-action-btn.start {
    background: var(--primary);
    color: white;
}

.attendant-action-btn.details {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
}

/* Floating Action Button (FAB) Style for Attendant Detail */
.attendant-fab-group {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    z-index: 100;
}

.attendant-back-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: var(--shadow-md);
    transition: all 0.2s ease;
}

.attendant-back-btn:hover {
    background: var(--bg-card-hover);
    transform: translateY(-1px);
}

.mobile-action-btn {
    padding: 1.25rem;
    border-radius: 20px;
    font-weight: 800;
    font-size: 1rem;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-action-btn.primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 6px 12px var(--primary-glow);
}

.mobile-action-btn.danger {
    background: var(--danger);
    color: white;
    box-shadow: 0 6px 12px var(--danger-glow);
}

.mobile-action-btn:active {
    transform: scale(0.95);
}


/* REPORTS & ANALYTICS */
.reports-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.reports-filter-bar {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 0.5rem;
    box-shadow: var(--shadow-md);
}

.filter-inputs {
    display: flex;
    gap: 1.5rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

.analytics-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.analytic-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.analytic-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.analytic-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.analytic-meta {
    display: flex;
    flex-direction: column;
}

.analytic-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.analytic-value {
    font-size: 1.5rem;
    font-weight: 800;
}

.analytics-charts-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .analytics-charts-section {
        grid-template-columns: 1fr;
    }
}

.chart-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.chart-card h4 {
    margin-bottom: 1.25rem;
    font-weight: 800;
    font-size: 1rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

/* DATA TABLE */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-table th {
    text-align: left;
    padding: 0.75rem;
    border-bottom: 2px solid var(--border);
    color: var(--text-secondary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
}

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

.data-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Simple CSS Tables for Chart representations */
.analytics-table {
    width: 100%;
    border-collapse: collapse;
}

.analytics-table th {
    text-align: left;
    padding: 0.65rem 0.5rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.analytics-table td {
    padding: 0.75rem 0.5rem;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

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

.chart-bar-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.chart-bar-label {
    width: 120px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chart-bar-outer {
    flex: 1;
    height: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    overflow: hidden;
}

.chart-bar-inner {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 6px;
    transition: width 1s ease-in-out;
}

.chart-bar-value {
    width: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: right;
}

/* FOOD & DRINKS MENU SPECIAL UI */
.menu-special-container {
    background: #000 url('images/bg.jpg') center/cover no-repeat;
    border-radius: 12px;
    padding: 1.25rem 0.75rem;
    position: relative;
    overflow: hidden;
    color: #fff;
    min-height: auto;
    margin-bottom: 1.5rem;
}

.menu-special-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, rgba(239, 68, 68, 0.4) 100%);
    z-index: 1;
}

.menu-special-content {
    position: relative;
    z-index: 2;
}

.menu-special-header {
    text-align: center;
    margin-bottom: 1rem;
}

.menu-neon-netos {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    font-style: italic;
    color: #fff;
    text-shadow: 0 0 5px #fff, 0 0 10px #ef4444, 0 0 20px #ef4444;
    line-height: 0.9;
}

.menu-neon-barbecue {
    display: block;
    font-size: 1rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 5px #fff, 0 0 10px #ef4444;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.menu-special-subtitle {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #fff;
    margin-top: 3px;
}

.menu-category-title {
    color: #ef4444;
    font-size: 1.5rem;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    letter-spacing: 3px;
}

.menu-items-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

@media (max-width: 700px) {
    .menu-items-columns {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.special-menu-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.2s;
}

.special-menu-item:hover {
    background: rgba(239, 68, 68, 0.15);
    padding-left: 12px;
    padding-right: 12px;
    margin-left: -6px;
    margin-right: -6px;
    border-radius: 12px;
    transform: translateX(4px);
    box-shadow: inset 0 0 20px rgba(239, 68, 68, 0.05);
}

.special-menu-item:hover .special-item-name {
    color: #fff;
    text-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

.special-item-name {
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
}

.special-item-price {
    font-weight: 800;
    white-space: nowrap;
}

.special-item-price::before {
    content: '₱ ';
    font-size: 0.8rem;
    opacity: 0.8;
}

.menu-footer-images {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 0 1rem;
}

@media (max-width: 600px) {
    .app-header {
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
        overflow: hidden;
        width: 100%;
        box-sizing: border-box;
    }

    .logo-section {
        gap: 0.25rem;
        flex-shrink: 0;
    }

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

    .logo-main-text.header-neon-netos {
        font-size: 1rem;
        text-shadow: 0 0 3px #fff, 0 0 8px #ef4444;
    }

    .logo-sub-text.header-neon-barbecue {
        font-size: 0.45rem;
        letter-spacing: 1px;
    }

    .user-section {
        gap: 0.75rem;
        flex: 1;
        min-width: 0;
        justify-content: flex-end;
    }

    .user-info {
        display: none; /* Hide name on very small screens to save space */
    }

    .mobile-hide {
        display: none !important;
    }

    .logout-btn {
        padding: 0.35rem;
        flex-shrink: 0;
    }

    #theme-toggle, #printer-settings-btn {
        padding: 0.35rem;
    }

    .main-content {
        padding: 0.75rem;
    }

    .food-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }

    .food-item-card {
        border-radius: 16px;
        min-height: 220px;
    }

    .food-name {
        font-size: 0.75rem;
    }

    .food-price {
        font-size: 0.8rem;
    }

    .attendant-layout {
        padding: 0 8px 80px 8px;
        gap: 1rem;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }

    .attendant-fab-group {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        width: 100%;
        margin-top: 1.5rem;
        padding: 0 4px;
        box-sizing: border-box;
    }

    .mobile-action-btn {
        padding: 0.85rem 0.1rem;
        font-size: 0.8rem;
        gap: 4px;
        border-radius: 12px;
        width: 100%;
        box-sizing: border-box;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: clip;
    }

    .attendant-header-card {
        padding: 1rem !important;
        border-radius: 20px !important;
    }

    #detail-table-title {
        font-size: 1.6rem !important;
    }

    #detail-table-timer-large {
        font-size: 1.8rem !important;
    }

    #tab-attendant-table-detail .attendant-layout > div[style*="background: rgba(30, 41, 59, 0.5)"] {
        padding: 1.25rem 1rem !important;
        border-radius: 20px !important;
    }

    .tabs-container {
        padding: 0 0.5rem;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none; /* Firefox */
    }

    .tabs-container::-webkit-scrollbar {
        display: none; /* Safari and Chrome */
    }

    .nav-tab {
        padding: 0.75rem 0.75rem;
        font-size: 0.85rem;
        gap: 0.35rem;
        flex-shrink: 0;
    }

    .tables-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 0.75rem;
    }

    .table-card {
        padding: 1rem;
    }

    .table-title {
        font-size: 1.1rem;
    }

    .timer-value {
        font-size: 1.15rem;
    }

    .attendant-table-card {
        padding: 1rem 0.75rem;
    }

    .attendant-table-num {
        font-size: 1.15rem;
    }

    .attendant-action-btn {
        width: 90px;
        height: 44px;
        font-size: 0.8rem;
    }

    .mobile-action-btn {
        padding: 0.85rem 0.2rem; /* Even more compact padding */
        font-size: 0.8rem; /* Slightly smaller font */
        gap: 4px;
        border-radius: 12px;
        width: 100%;
        box-sizing: border-box;
        min-width: 0;
        white-space: nowrap; /* Prevent text wrapping */
    }

    .mobile-action-btn svg {
        width: 16px;
        height: 16px;
    }

    .mobile-action-btn svg {
        width: 18px;
        height: 18px;
    }

    .modal-header {
        padding: 1.25rem 1rem;
        box-sizing: border-box;
    }

    .modal-header h3 {
        font-size: 1.1rem;
        line-height: 1.2;
    }

    .modal-body {
        padding: 0.75rem 0.5rem;
        overflow-x: hidden;
        box-sizing: border-box;
        width: 100%;
    }

    .modal-footer {
        padding: 0.75rem;
        flex-direction: column;
        gap: 8px;
        align-items: center;
        box-sizing: border-box;
        width: 100%;
    }

    .footer-buttons {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .footer-buttons .btn {
        width: 100%;
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }

    #cart-summary-mini {
        width: 100%;
        text-align: center;
        font-size: 0.9rem;
    }

    .menu-special-container {
        padding: 0.75rem 0.5rem;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .menu-neon-netos {
        font-size: 1.25rem;
    }

    .menu-neon-barbecue {
        font-size: 0.7rem;
    }

    .menu-category-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .floor-nav-wrapper {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem;
    }

    .floor-nav-wrapper > div {
        width: 100% !important;
        gap: 0.5rem !important;
        flex-direction: column;
    }

    .floor-selector {
        overflow-x: auto;
        width: 100%;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .floor-selector::-webkit-scrollbar {
        display: none;
    }

    .floor-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .special-menu-item {
        padding: 10px 0;
        gap: 6px;
        margin: 0 !important;
        transform: none !important;
        width: 100%;
        box-sizing: border-box;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .special-menu-item:hover {
        margin: 0 !important;
        transform: none !important;
        padding-left: 0;
        padding-right: 0;
    }

    .special-menu-item > div {
        flex: 1;
        min-width: 0;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .special-item-name {
        font-size: 0.8rem;
        white-space: normal;
        flex: 1;
        line-height: 1.2;
        overflow-wrap: break-word;
        min-width: 0;
    }

    .special-item-price {
        font-size: 0.85rem;
        flex-shrink: 0;
        margin-left: 5px;
    }

    .quick-add-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 5px;
    }

    .quick-add-btn .qa-name {
        font-size: 0.65rem;
    }
}

.menu-food-img {
    width: 100%;
    aspect-ratio: 1.2;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.6));
    transition: transform 0.3s;
}

.menu-food-img:hover {
    transform: scale(1.1) rotate(2deg);
}

.drinks-menu-special { display: none; } /* Deprecated in favor of generic container */

.heatmap-grid {
    display: grid;
    grid-template-columns: repeat(24, 1fr);
    gap: 4px;
}

.heatmap-cell {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
    transition: transform 0.1s;
}

.heatmap-cell:hover {
    transform: scale(1.5);
    z-index: 10;
}

.heatmap-cell:hover::after {
    content: attr(data-label);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    white-space: nowrap;
    z-index: 100;
    border: 1px solid var(--primary);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.5);
}

.heatmap-label-row {
    display: grid;
    grid-template-columns: repeat(24, 1fr);
    gap: 4px;
    margin-top: 8px;
    font-size: 0.6rem;
    color: var(--text-muted);
    text-align: center;
}

/* Print Page overrides */
@media print {
    body * {
        visibility: hidden;
    }

    #receipt-preview-area, #receipt-preview-area * {
        visibility: visible;
    }

    #receipt-preview-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        max-width: 58mm; /* Standard thermal roll width */
        box-shadow: none;
        padding: 0;
        margin: 0;
        font-size: 10pt;
    }

    .receipt-container {
        padding: 5px !important;
        border-radius: 0 !important;
    }

    /* Hide scrollbars and extra spacing */
    html, body {
        height: auto;
        overflow: visible;
    }
}

/* Cashier Grid Responsive Overrides */
@media (max-width: 1024px) {
    .cashier-view-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .billing-details-panel {
        height: auto;
        position: static;
        min-height: 200px;
    }

    #tab-quick-pos .billiard-tables-panel {
        height: auto;
    }

    #pos-menu-grid {
        max-height: 60vh;
    }

    .sticky-footer-summary {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 100;
        box-shadow: 0 -4px 25px rgba(0,0,0,0.5);
        padding: 0.75rem 1rem 1.5rem 1rem; /* Extra bottom padding for safe area */
        background: var(--bg-secondary);
        backdrop-filter: blur(15px);
    }

    .grand-total-display {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }

    .panel-btn {
        padding: 0.85rem;
        font-size: 0.85rem;
    }

    .main-content {
        padding-bottom: 120px; /* Space for fixed footer */
    }
}


/* INVENTORY MANAGEMENT STYLES */
.inventory-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
}

.inventory-table-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1rem;
    overflow-x: auto;
    box-shadow: var(--shadow-md);
}

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

.data-table th {
    text-align: left;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    vertical-align: middle;
}

.data-table tr:hover {
    background: rgba(255, 255, 255, 0.01);
}

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

.floor-group-row td {
    background: rgba(239, 68, 68, 0.03);
    border-bottom: 2px solid var(--primary) !important;
    color: var(--primary);
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.75rem;
    padding: 1rem !important;
}

.add-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s, transform 0.1s;
}

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

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

.modal-card.mini {
    max-width: 450px;
}

.modal-card.wide {
    max-width: 800px;
}

.save-btn {
    transition: background 0.2s, transform 0.1s;
}

.save-btn:hover {
    background: var(--primary-hover) !important;
    transform: translateY(-1px);
}

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

/* Order Status Badges */
.order-status-tag {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 2px;
}
.status-tag-pending { background: rgba(239, 68, 68, 0.15); color: var(--danger); }
.status-tag-preparing { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.status-tag-served { background: rgba(16, 185, 129, 0.15); color: var(--success); }

/* ORDER TOAST NOTIFICATIONS */
.order-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--primary);
    border-left: 4px solid var(--primary);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    min-width: 280px;
    animation: slideInRight 0.3s ease-out;
    transition: all 0.5s ease;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.toast-icon {
    width: 40px;
    height: 40px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-content {
    display: flex;
    flex-direction: column;
}

.toast-title {
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--text-primary);
}

@keyframes blink-border {
    0% { border-color: var(--primary); box-shadow: 0 0 0 0 var(--primary-glow); }
    50% { border-color: #ffffff; box-shadow: 0 0 15px 2px var(--primary-glow); }
    100% { border-color: var(--primary); box-shadow: 0 0 0 0 var(--primary-glow); }
}

.table-card.has-new-order {
    animation: blink-border 1.5s infinite;
    border-width: 2px !important;
    z-index: 10;
}

.new-order-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    text-transform: uppercase;
    animation: pulse-primary 2s infinite;
    z-index: 20;
}

@keyframes pulse-primary {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Floor Plan Visualizer */
.floor-plan-container {
    position: relative;
    width: 100%;
    height: 600px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 20px;
    background-image:
        radial-gradient(circle at 2px 2px, var(--border) 1px, transparent 0);
    background-size: 30px 30px;
    overflow: hidden;
    margin-top: 1rem;
}

.visual-table {
    position: absolute;
    width: 100px;
    height: 140px;
    background: #1e293b;
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: move;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.2s, transform 0.1s;
    user-select: none;
    z-index: 5;
}

.visual-table:hover {
    box-shadow: 0 0 15px var(--primary-glow);
    border-color: var(--primary);
}

.visual-table.occupied {
    border-color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

.visual-table .table-num {
    font-size: 1.2rem;
    font-weight: 800;
}

/* Toast Variants */
.order-toast.success { border-color: var(--success); }
.order-toast.warning { border-color: var(--warning); }
.order-toast.danger { border-color: var(--danger); }

/* Quick POS Specific */
#tab-quick-pos .billiard-tables-panel {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 150px);
}

#pos-menu-grid {
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
    scrollbar-gutter: stable;
}

#pos-cart-container {
    padding: 1rem;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .shift-controls { display: none; }
}
