* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: #0f172a;
    color: #f8fafc;
    min-height: 100vh;
}

.glass {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.glass-btn {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(139, 92, 246, 0.9));
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.glass-btn:hover {
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
}

/* Wiggle animation for notification bell on hover */
@keyframes bell-wiggle {
    0%, 100% { transform: rotate(0); }
    15% { transform: rotate(10deg); }
    30% { transform: rotate(-10deg); }
    45% { transform: rotate(5deg); }
    60% { transform: rotate(-5deg); }
    75% { transform: rotate(2deg); }
    85% { transform: rotate(-2deg); }
}

#push-notif-btn:hover i {
    display: inline-block;
    animation: bell-wiggle 0.7s ease-in-out;
    transform-origin: top center;
}

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

.glass-btn-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(185, 28, 28, 0.9));
}
.glass-btn-danger:hover {
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.5);
}

.glass-btn-success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.9), rgba(21, 128, 61, 0.9));
}
.glass-btn-success:hover {
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.5);
}

.header {
    padding: 0.85rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.header-brand {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.header-hotel-name {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #f472b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-sub {
    font-size: 0.68rem;
    font-weight: 500;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 1px;
}


/* ── Premium Unified Custom Scrollbar ── */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: transparent; /* Transparent track preserves modal rounded corners perfectly */
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.4) 0%, rgba(167, 139, 250, 0.4) 100%);
    background-clip: padding-box;
    border: 3px solid transparent; /* Creates an ultra-premium floating/inset scrollbar */
    border-radius: 10px;
    transition: background 0.3s ease;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.75) 0%, rgba(167, 139, 250, 0.75) 100%);
    background-clip: padding-box;
    border: 3px solid transparent;
}
::-webkit-scrollbar-thumb:active {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.95) 0%, rgba(167, 139, 250, 0.95) 100%);
    background-clip: padding-box;
    border: 3px solid transparent;
}

/* Firefox compatibility */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(167, 139, 250, 0.4) transparent;
}

/* Order Confirmation Toast */
#toast {
    visibility: hidden;
    opacity: 0;
    min-width: 300px;
    max-width: 360px;
    background: linear-gradient(135deg, rgba(15, 30, 60, 0.98), rgba(9, 20, 45, 0.99));
    border: 1px solid rgba(34, 197, 94, 0.4);
    border-left: 4px solid #22c55e;
    color: #fff;
    border-radius: 14px;
    padding: 0;
    position: fixed;
    z-index: 99999;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%) translateY(30px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
    backdrop-filter: blur(20px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0s linear 0.4s;
    pointer-events: none;
    overflow: hidden;
}

#toast.show {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0s linear 0s;
    pointer-events: all;
}

.toast-inner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
}

.toast-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
    box-shadow: 0 4px 14px rgba(34,197,94,0.5);
    animation: toast-icon-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

@keyframes toast-icon-pop {
    from { transform: scale(0); }
    to   { transform: scale(1); }
}

.toast-body {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #4ade80;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 3px;
}

.toast-msg {
    font-size: 0.95rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 4px;
}

.toast-sub {
    font-size: 0.78rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toast-progress {
    height: 3px;
    background: rgba(255,255,255,0.06);
    border-radius: 0 0 14px 14px;
    overflow: hidden;
}

.toast-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #4ade80);
    border-radius: 3px;
    animation: toast-progress-shrink 3s linear forwards;
}

@keyframes toast-progress-shrink {
    from { width: 100%; }
    to   { width: 0%; }
}

/* Premium Room Gold Styling - Shared */
.room-premium {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.25)) !important;
    border: 1.5px solid #f59e0b !important;
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.25) !important;
    position: relative;
}
.room-premium::before {
    content: 'PREMIUM';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.55rem;
    font-weight: 800;
    color: #f59e0b;
    letter-spacing: 1px;
    z-index: 10;
}
.room-premium .table-number, 
.room-premium .loc-btn-num {
    color: #fbbf24 !important;
    text-shadow: 0 0 12px rgba(245, 158, 11, 0.6);
}

/* Waiter App Specific Premium button */
.loc-btn.premium {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.2)) !important;
    border: 1px solid rgba(245, 158, 11, 0.4) !important;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.15);
}
.loc-btn.premium.occupied {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.35)) !important;
    border-color: #f59e0b !important;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}
.loc-btn.premium .occ-dot {
    background: #fbbf24 !important;
    box-shadow: 0 0 8px #fbbf24 !important;
}
