/* ============================================
   RestoQR Admin Panel - Modern CSS
   ============================================ */

:root {
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 0px;
    --topbar-height: 60px;
    --border-radius: 0.75rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-bs-theme="light"] {
    --sidebar-bg: #1e293b;
    --sidebar-text: #94a3b8;
    --sidebar-active: #ffffff;
    --sidebar-active-bg: rgba(99, 102, 241, 0.15);
    --sidebar-hover: rgba(255,255,255,0.08);
    --sidebar-section: #64748b;
    --content-bg: #f1f5f9;
    --card-bg: #ffffff;
    --topbar-bg: #ffffff;
    --topbar-shadow: 0 1px 3px rgba(0,0,0,0.08);
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --accent-gradient: linear-gradient(135deg, #6366f1, #8b5cf6);
}

[data-bs-theme="dark"] {
    --sidebar-bg: #0f172a;
    --sidebar-text: #94a3b8;
    --sidebar-active: #ffffff;
    --sidebar-active-bg: rgba(99, 102, 241, 0.2);
    --sidebar-hover: rgba(255,255,255,0.05);
    --sidebar-section: #475569;
    --content-bg: #0f172a;
    --card-bg: #1e293b;
    --topbar-bg: #1e293b;
    --topbar-shadow: 0 1px 3px rgba(0,0,0,0.3);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --accent-gradient: linear-gradient(135deg, #6366f1, #8b5cf6);
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
    padding: 0;
    background: var(--content-bg);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ============================================
   Sidebar
   ============================================ */
.admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--sidebar-bg);
    z-index: 1050;
    transition: var(--transition);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.admin-sidebar::-webkit-scrollbar { width: 4px; }
.admin-sidebar::-webkit-scrollbar-track { background: transparent; }
.admin-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; }

.sidebar-header {
    padding: 1.25rem 1.25rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
}

.sidebar-brand i { font-size: 1.5rem; color: #818cf8; }
.sidebar-logo { width: 36px; height: 36px; border-radius: 0.5rem; object-fit: cover; }
.sidebar-close { color: #94a3b8; font-size: 1.2rem; }
.brand-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }

.sidebar-nav { padding: 0.75rem 0; }

.sidebar-nav .nav-section {
    padding: 1.25rem 1.25rem 0.4rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sidebar-section);
    list-style: none;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.25rem;
    color: var(--sidebar-text);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    border-radius: 0;
    margin: 1px 0.5rem;
    border-radius: 0.5rem;
    position: relative;
}

.sidebar-nav .nav-link:hover {
    color: var(--sidebar-active);
    background: var(--sidebar-hover);
}

.sidebar-nav .nav-link.active {
    color: var(--sidebar-active);
    background: var(--sidebar-active-bg);
    font-weight: 600;
}

.sidebar-nav .nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: #6366f1;
    border-radius: 0 3px 3px 0;
}

.sidebar-nav .nav-link i { font-size: 1.1rem; width: 1.25rem; text-align: center; }
.sidebar-nav .nav-link .badge { font-size: 0.7rem; }

/* ============================================
   Main Content Area
   ============================================ */
.admin-main {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: var(--transition);
}

.admin-main.sidebar-collapsed { margin-left: 0; }

/* ============================================
   Top Navbar
   ============================================ */
.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 1040;
    height: var(--topbar-height);
    background: var(--topbar-bg);
    box-shadow: var(--topbar-shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    backdrop-filter: blur(10px);
}

.topbar-title { color: var(--text-primary); font-weight: 600; }
.sidebar-toggle { color: var(--text-secondary); text-decoration: none; }
.sidebar-toggle:hover { color: var(--text-primary); }

/* ============================================
   Content
   ============================================ */
.admin-content { padding: 1.5rem; }

/* ============================================
   Cards
   ============================================ */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
    transition: var(--transition);
    background: var(--card-bg);
}

.card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.card-header { background: transparent; border-bottom: 1px solid var(--bs-border-color); padding: 1rem 1.25rem; }
.card-header h5, .card-header h6 { margin: 0; font-weight: 600; }

/* Stat Cards */
.stat-card {
    border-radius: var(--border-radius);
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-card .stat-value { font-size: 1.75rem; font-weight: 700; line-height: 1.2; }
.stat-card .stat-label { font-size: 0.8rem; color: var(--text-secondary); font-weight: 500; }
.stat-card .stat-change { font-size: 0.75rem; font-weight: 600; }
.stat-card .stat-change.up { color: #10b981; }
.stat-card .stat-change.down { color: #ef4444; }

/* ============================================
   Tables
   ============================================ */
.table { vertical-align: middle; }
.table thead th {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-secondary);
    border-bottom-width: 1px;
    padding: 0.75rem;
    white-space: nowrap;
}

.table tbody td { padding: 0.75rem; font-size: 0.875rem; }
.table-hover tbody tr:hover { background: rgba(99, 102, 241, 0.04); }

/* ============================================
   Badges
   ============================================ */
.badge { font-weight: 500; font-size: 0.75rem; padding: 0.35em 0.65em; border-radius: 0.5rem; }

/* ============================================
   Buttons
   ============================================ */
.btn { border-radius: 0.5rem; font-weight: 500; font-size: 0.875rem; transition: var(--transition); }
.btn-primary { background: var(--accent-gradient); border: none; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(99,102,241,0.3); }
.btn-sm { font-size: 0.8rem; padding: 0.35rem 0.75rem; }
.btn-icon { width: 36px; height: 36px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }

/* ============================================
   Forms
   ============================================ */
.form-control, .form-select {
    border-radius: 0.5rem;
    font-size: 0.875rem;
    padding: 0.6rem 0.875rem;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

.form-label { font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 0.35rem; }

/* ============================================
   Notifications
   ============================================ */
.notification-dropdown { border-radius: var(--border-radius); overflow: hidden; }
.notification-item {
    padding: 0.75rem 1rem !important;
    border-bottom: 1px solid var(--bs-border-color);
    transition: var(--transition);
    white-space: normal;
}
.notification-item.unread { background: rgba(99,102,241,0.05); }
.notification-item:hover { background: rgba(99,102,241,0.08); }
.smaller { font-size: 0.7rem; }

/* ============================================
   Language Switcher
   ============================================ */
.language-switcher .dropdown-toggle { display: flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; }
.language-switcher .dropdown-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; }
.language-switcher .fi { font-size: 1rem; }

/* ============================================
   Table Plan (Masa Planı)
   ============================================ */
.table-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; }
.table-card {
    border-radius: var(--border-radius);
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    border: 2px solid transparent;
}
.table-card:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.table-card.empty { background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.3); }
.table-card.occupied { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.3); }
.table-card.reserved { background: rgba(59,130,246,0.1); border-color: rgba(59,130,246,0.3); }
.table-card .table-number { font-size: 1.5rem; font-weight: 700; }
.table-card .table-status { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.table-card .table-info { font-size: 0.75rem; color: var(--text-secondary); margin-top: 0.25rem; }

/* ============================================
   Kitchen Screen
   ============================================ */
.kitchen-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    border-left: 4px solid;
    transition: var(--transition);
}
.kitchen-card.status-pending { border-left-color: #f59e0b; }
.kitchen-card.status-preparing { border-left-color: #3b82f6; }
.kitchen-card.status-ready { border-left-color: #10b981; }
.kitchen-card .kitchen-header { padding: 0.75rem 1rem; font-weight: 600; font-size: 0.85rem; }
.kitchen-card .kitchen-items { padding: 0.5rem 1rem; }
.kitchen-card .kitchen-item { padding: 0.35rem 0; border-bottom: 1px solid var(--bs-border-color); font-size: 0.85rem; }
.kitchen-card .kitchen-item:last-child { border-bottom: none; }
.kitchen-card .kitchen-footer { padding: 0.5rem 1rem; }
.kitchen-timer { font-size: 0.8rem; font-weight: 600; }
.kitchen-timer.urgent { color: #ef4444; animation: pulse 1s infinite; }

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

/* ============================================
   Order Detail
   ============================================ */
.order-item-row { 
    padding: 0.5rem 0; 
    border-bottom: 1px solid var(--bs-border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.order-item-row:last-child { border-bottom: none; }
.order-item-name { font-weight: 500; }
.order-item-extras { font-size: 0.78rem; color: var(--text-secondary); }
.order-item-price { font-weight: 600; white-space: nowrap; }

/* ============================================
   Charts
   ============================================ */
.chart-container { position: relative; height: 300px; }

/* ============================================
   Empty State
   ============================================ */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}
.empty-state i { font-size: 3rem; opacity: 0.3; }
.empty-state h5 { margin-top: 1rem; font-weight: 600; color: var(--text-primary); }
.empty-state p { font-size: 0.9rem; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 991.98px) {
    .admin-sidebar {
        transform: translateX(-100%);
        box-shadow: none;
    }
    .admin-sidebar.show {
        transform: translateX(0);
        box-shadow: 5px 0 25px rgba(0,0,0,0.15);
    }
    .admin-main { margin-left: 0 !important; }
    .admin-content { padding: 1rem; }
    .topbar-title { font-size: 1rem; }
    .stat-card .stat-value { font-size: 1.35rem; }
}

@media (max-width: 575.98px) {
    .admin-content { padding: 0.75rem; }
    .admin-topbar { padding: 0 0.75rem; }
    .table-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 0.5rem; }
    .stat-card { padding: 1rem; }
    .chart-container { height: 220px; }
    .card-header { padding: 0.75rem 1rem; }
    h4 { font-size: 1.15rem; }
    h5 { font-size: 1rem; }
    .table-responsive { font-size: 0.8rem; }
    .table-responsive .btn-sm { font-size: 0.7rem; padding: 0.2rem 0.5rem; }
    .modal-dialog { margin: 0.5rem; }
}

/* Sidebar overlay on mobile */
@media (max-width: 991.98px) {
    .admin-sidebar.show::before {
        content: '';
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: -1;
    }
}

/* ============================================
   Print
   ============================================ */
@media print {
    .admin-sidebar, .admin-topbar, .btn, .dropdown { display: none !important; }
    .admin-main { margin-left: 0 !important; }
    .admin-content { padding: 0; }
    .card { box-shadow: none; border: 1px solid #ddd; }
}

/* ============================================
   Animations
   ============================================ */
.fade-in { animation: fadeIn 0.3s ease-in-out; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in { animation: slideIn 0.3s ease-out; }
@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Smooth scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.25); }

/* ============================================
   Utility
   ============================================ */
.cursor-pointer { cursor: pointer; }
.text-gradient { background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.border-dashed { border-style: dashed !important; }
.shadow-sm-hover:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rounded-xl { border-radius: var(--border-radius) !important; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }

/* ============================================
   Kitchen Screen
   ============================================ */
.kitchen-card { border: 2px solid transparent; transition: var(--transition); overflow: hidden; }
.kitchen-card.status-pending { border-color: #f59e0b; }
.kitchen-card.status-preparing { border-color: #6366f1; animation: kitchenPulse 2s infinite; }
@keyframes kitchenPulse { 0%,100%{box-shadow:none;} 50%{box-shadow:0 0 15px rgba(99,102,241,0.3);} }
.kitchen-header { padding: 0.75rem 1rem; font-size: 0.9rem; border-bottom: 1px solid var(--bs-border-color); }
.kitchen-items { padding: 0; }
.kitchen-item { padding: 0.6rem 1rem; border-bottom: 1px solid rgba(0,0,0,0.05); font-size: 0.9rem; }
.kitchen-item:last-child { border-bottom: none; }
.kitchen-footer { padding: 0.5rem; border-top: 1px solid var(--bs-border-color); }
.kitchen-timer { font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); }
.kitchen-timer.urgent { color: #ef4444; animation: urgentBlink 1s infinite; }
@keyframes urgentBlink { 0%,100%{opacity:1;} 50%{opacity:0.4;} }

/* ============================================
   Empty State
   ============================================ */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--text-secondary); }
.empty-state i { font-size: 3rem; display: block; margin-bottom: 1rem; opacity: 0.5; }
.empty-state h5 { margin-bottom: 0.5rem; }

/* ============================================
   Stat Cards
   ============================================ */
.stat-card { padding: 1.25rem; border-radius: var(--border-radius); transition: var(--transition); border-left: 3px solid var(--bs-primary); }
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.stat-label { font-size: 0.8rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.25rem; }
.stat-value { font-size: 1.5rem; font-weight: 700; color: var(--text-primary); }

/* ============================================
   Notification Items
   ============================================ */
.notification-item { padding: 0.75rem 1rem; border-bottom: 1px solid rgba(0,0,0,0.05); }
.notification-item.unread { background: rgba(99,102,241,0.05); }
.notification-item:hover { background: rgba(0,0,0,0.03); }
.notification-icon { width: 32px; text-align: center; }
.smaller { font-size: 0.75rem; }

/* ============================================
   Table Grid
   ============================================ */
.table-card { border-radius: var(--border-radius); cursor: pointer; transition: var(--transition); text-align: center; padding: 1rem; border: 2px solid transparent; min-height: 100px; }
.table-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.table-card.table-empty { border-color: #10b981; background: rgba(16,185,129,0.05); }
.table-card.table-occupied { border-color: #ef4444; background: rgba(239,68,68,0.05); }
.table-card.table-reserved { border-color: #6366f1; background: rgba(99,102,241,0.05); }
.table-number { font-size: 1.5rem; font-weight: 700; }

/* ============================================
   Demo Mode
   ============================================ */
.text-success.bi-shield-fill-check { filter: drop-shadow(0 0 4px rgba(16,185,129,0.4)); }

/* ============================================
   Print
   ============================================ */
@media print {
    .admin-sidebar, .admin-topbar, .btn, .modal, nav, .no-print { display: none !important; }
    .admin-main { margin: 0 !important; padding: 0 !important; }
    .admin-content { padding: 0 !important; }
    .card { border: none !important; box-shadow: none !important; }
}

/* ============================================
   Btn Icon
   ============================================ */
.btn-icon { width: 30px; height: 30px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 0.375rem; }

.product-actions-cell,
.product-actions-wrap {
    position: relative;
    z-index: 6;
    pointer-events: auto;
}

/* Notification Alert Popup */
.notification-alert-popup {
    border-top: 5px solid #dc3545 !important;
    animation: shakeAlert 0.5s ease-in-out;
}

@keyframes shakeAlert {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
    20%, 40%, 60%, 80% { transform: translateX(4px); }
}

/* Notification item unread highlight */
.notification-item.unread {
    background: rgba(99, 102, 241, 0.08);
    border-left: 3px solid var(--bs-primary, #6366f1);
}

.notification-item {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--bs-border-color, #dee2e6);
    transition: background 0.2s;
}

.notification-item:hover {
    background: rgba(99, 102, 241, 0.05);
}

/* ============================================
   Persistent Notification Panel
   Garson çağrısı / hesap isteği bildirimleri
   Birden fazla bildirim aynı anda görünür
   ============================================ */
.persistent-notif-panel {
    position: fixed;
    top: 70px;
    right: 16px;
    z-index: 9999;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 4px;
    scrollbar-width: thin;
}

.persistent-notif-panel::-webkit-scrollbar { width: 4px; }
.persistent-notif-panel::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.2); border-radius: 10px; }

.persistent-notif-card {
    width: 380px;
    pointer-events: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    opacity: 0;
    transform: translateX(100%) scale(0.9);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-left: 5px solid #6366f1;
}

.persistent-notif-card.show {
    opacity: 1;
    transform: translateX(0) scale(1);
    animation: notifShake 0.6s ease-in-out 0.4s;
}

.persistent-notif-card.hide {
    opacity: 0;
    transform: translateX(100%) scale(0.8);
    transition: all 0.3s ease-in;
}

/* Color coding */
.persistent-notif-card.notif-waiter {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
}

.persistent-notif-card.notif-bill {
    border-left-color: #0d6efd;
    background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 100%);
}

.persistent-notif-card.notif-order {
    border-left-color: #6366f1;
    background: linear-gradient(135deg, #f5f3ff 0%, #ffffff 100%);
}

/* Dark theme */
[data-bs-theme="dark"] .persistent-notif-card {
    background: #1e293b;
}
[data-bs-theme="dark"] .persistent-notif-card.notif-waiter {
    background: linear-gradient(135deg, #2d1b1b 0%, #1e293b 100%);
}
[data-bs-theme="dark"] .persistent-notif-card.notif-bill {
    background: linear-gradient(135deg, #1b2336 0%, #1e293b 100%);
}
[data-bs-theme="dark"] .persistent-notif-card.notif-order {
    background: linear-gradient(135deg, #1f1b36 0%, #1e293b 100%);
}

.notif-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px 6px;
}

.notif-card-icon {
    font-size: 1.8rem;
    line-height: 1;
    animation: iconBounce 0.8s ease infinite alternate;
}

.notif-card-title {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--text-primary, #1e293b);
}

.notif-waiter .notif-card-title { color: #dc3545; }
.notif-bill .notif-card-title { color: #0d6efd; }
.notif-order .notif-card-title { color: #6366f1; }

.notif-card-body {
    padding: 4px 16px 10px;
}

.notif-card-table {
    font-size: 1.6rem;
    font-weight: 900;
    color: #dc3545;
    letter-spacing: 0.05em;
    padding: 4px 0 2px;
    animation: messagePulse 0.8s ease infinite alternate;
}

.notif-card-message {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--text-primary, #1e293b);
    animation: messagePulse 1s ease infinite alternate;
}

.notif-card-time {
    font-size: 0.78rem;
    color: var(--text-secondary, #64748b);
    margin-top: 2px;
}

.notif-card-dismiss {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border: none;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.03em;
}

.notif-waiter .notif-card-dismiss {
    background: #dc3545;
    color: #fff;
}
.notif-waiter .notif-card-dismiss:hover {
    background: #bb2d3b;
}

.notif-bill .notif-card-dismiss {
    background: #0d6efd;
    color: #fff;
}
.notif-bill .notif-card-dismiss:hover {
    background: #0b5ed7;
}

.notif-dismiss-order {
    background: #6366f1;
    color: #fff;
}
.notif-dismiss-order:hover {
    background: #4f46e5;
}

/* Animations */
@keyframes notifShake {
    0%, 100% { transform: translateX(0); }
    15%, 45%, 75% { transform: translateX(-6px); }
    30%, 60%, 90% { transform: translateX(6px); }
}

@keyframes iconBounce {
    from { transform: scale(1); }
    to { transform: scale(1.15); }
}

@keyframes messagePulse {
    from { transform: scale(1); }
    to { transform: scale(1.02); }
}

/* Responsive - Mobile */
@media (max-width: 575.98px) {
    .persistent-notif-panel {
        top: 60px;
        right: 8px;
        left: 8px;
        max-height: 75vh;
    }
    
    .persistent-notif-card {
        width: 100%;
    }
    
    .notif-card-message {
        font-size: 1.1rem;
    }
}

@media (max-width: 991.98px) {
    .persistent-notif-panel {
        right: 10px;
    }
    
    .persistent-notif-card {
        width: min(380px, calc(100vw - 32px));
    }
}

/* ============================================
   BahaLabs Signature Footer
   ============================================ */
.bahalabs-signature {
    text-align: center;
    padding: 28px 16px 22px;
    margin-top: 40px;
    border-top: 1px solid rgba(99, 102, 241, 0.12);
    background: linear-gradient(180deg, transparent 0%, rgba(99, 102, 241, 0.03) 100%);
}

.bahalabs-signature a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-secondary, #64748b);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px 18px;
    border-radius: 50px;
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.bahalabs-signature a:hover {
    color: #6366f1;
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.15);
}

.bahalabs-signature .sig-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 5px;
    flex-shrink: 0;
}

.bahalabs-signature .sig-icon svg {
    width: 12px;
    height: 12px;
}

.bahalabs-signature .sig-domain {
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   Variation / Extra Item Cards (responsive)
   ============================================ */
.extra-item-card,
.variation-option-card {
    border: 1px solid var(--bs-border-color, #e5e7eb);
    border-radius: 0.6rem;
    padding: 0.6rem 0.7rem;
    background: var(--card-bg, #fff);
}

[data-bs-theme="dark"] .extra-item-card,
[data-bs-theme="dark"] .variation-option-card {
    background: rgba(255,255,255,0.02);
    border-color: rgba(255,255,255,0.08);
}

.variation-group-card .card-body {
    background: rgba(99,102,241,0.04);
    border-radius: 0.5rem;
}

[data-bs-theme="dark"] .variation-group-card .card-body {
    background: rgba(99,102,241,0.08);
}

.extra-item-card .form-label,
.variation-option-card .form-label,
.variation-group-card .form-label {
    margin-bottom: 0.15rem;
    font-size: 0.72rem;
    color: var(--text-secondary, #64748b);
}

.extra-item-card input.form-control-sm,
.variation-option-card input.form-control-sm {
    font-size: 0.85rem;
}

/* Language-translation tab buttons stay readable on mobile */
.nav-tabs-sm .nav-link {
    padding: 0.35rem 0.6rem;
    font-size: 0.8rem;
}

@media (max-width: 575.98px) {
    .extra-item-card,
    .variation-option-card { padding: 0.5rem; }
    .extra-item-card .form-label,
    .variation-option-card .form-label { font-size: 0.7rem; }
    .variation-group-card .card-body { padding: 0.5rem !important; }
    /* Ensure inputs never collapse below readable width */
    .extra-item-card input.form-control,
    .variation-option-card input.form-control,
    .variation-group-card input.form-control { min-width: 0; }
}

