/* ═══════════════════════════════════════════════════════════════
   Solo Cafe Management System - Premium UI
   ═══════════════════════════════════════════════════════════════ */

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

:root {
    --primary: #1b4332;
    --primary-light: #2d6a4f;
    --primary-dark: #0d2818;
    --secondary: #c8a962;
    --secondary-light: #dcc07a;
    --accent: #d4a373;
    --accent-light: #e9c89b;
    --sidebar-bg: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    --sidebar-hover: rgba(0,0,0,0.04);
    --sidebar-active: rgba(220,38,38,0.08);
    --body-bg: #f0f2f5;
    --card-bg: #ffffff;
    --card-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.06);
    --card-hover-shadow: 0 8px 32px rgba(0,0,0,0.12);
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e8ecf1;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--body-bg);
    margin: 0;
    font-size: 14px;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c1c9d4; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #a0aab4; }

/* ═══════════════════════════════════════════════════════════════
   SIDEBAR - Premium Glass Design
   ═══════════════════════════════════════════════════════════════ */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 270px;
    height: 100vh;
    background: var(--sidebar-bg);
    color: #334155;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1050;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 1px solid #e2e8f0;
}

.sidebar-brand {
    padding: 20px 22px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
}

.sidebar-brand::before {
    content: '\f0f4';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 20px;
    color: #fff;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(220,38,38,0.3);
}

.sidebar-brand h3 {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: #1e293b;
    font-weight: 700;
    letter-spacing: 1px;
}

.sidebar-brand small {
    display: block;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 2px;
    font-family: 'Inter', sans-serif;
}

.sidebar-menu { list-style: none; padding: 12px 14px; margin: 0; }

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    color: #475569;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
    border-radius: 10px;
    margin-bottom: 2px;
    position: relative;
    letter-spacing: 0.2px;
}

.sidebar-menu li a:hover {
    background: var(--sidebar-hover);
    color: #1e293b;
    transform: translateX(3px);
}

.sidebar-menu li a.active {
    background: var(--sidebar-active);
    color: var(--secondary-light);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.sidebar-menu li a.active {
    color: #dc2626;
    font-weight: 600;
}

.sidebar-menu li a.active::before {
    content: '';
    position: absolute;
    left: -14px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 22px;
    background: #dc2626;
    border-radius: 0 4px 4px 0;
}

.sidebar-menu li a i {
    width: 22px;
    margin-right: 12px;
    text-align: center;
    font-size: 14px;
    color: #94a3b8;
    transition: var(--transition);
}

.sidebar-menu li a.active i { color: #dc2626; }
.sidebar-menu li a:hover i { color: #475569; }

.menu-header {
    padding: 22px 16px 8px;
    font-size: 10px;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 2px;
    font-weight: 700;
    position: relative;
}

.menu-header::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 16px;
    width: 20px;
    height: 1px;
    background: linear-gradient(90deg, #e2e8f0, transparent);
}

.sidebar-close {
    display: none;
    position: absolute;
    top: 18px;
    right: 16px;
    background: #f1f5f9;
    border: none;
    color: #64748b;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    padding: 4px 8px;
    border-radius: 8px;
    transition: var(--transition);
}

.sidebar-close:hover { background: rgba(255,255,255,0.15); color: #fff; }

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1040;
    backdrop-filter: blur(4px);
}

.sidebar-overlay.active { display: block; }

/* ═══════════════════════════════════════════════════════════════
   MAIN CONTENT & TOP BAR
   ═══════════════════════════════════════════════════════════════ */
.main-content {
    margin-left: 270px;
    min-height: 100vh;
    transition: margin-left 0.3s;
}

.top-bar {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 16px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 999;
}

.top-bar h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.top-bar .user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-bar .user-info > span:first-child {
    background: linear-gradient(135deg, #f8fafc, #eef2f7);
    padding: 7px 16px;
    border-radius: 24px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid rgba(0,0,0,0.05);
}

.user-name-mobile { display: none; }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-primary);
    cursor: pointer;
    padding: 6px 10px;
    margin-right: 12px;
    border-radius: 8px;
    transition: var(--transition);
}

.mobile-menu-btn:hover { background: #f1f5f9; }

.content-area { padding: 28px 30px; }

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD - Welcome Section
   ═══════════════════════════════════════════════════════════════ */
.welcome-banner {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: var(--radius-xl);
    padding: 32px 36px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
    color: #fff;
}

.welcome-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(200,169,98,0.15), transparent 70%);
    border-radius: 50%;
}

.welcome-banner::after {
    content: '';
    position: absolute;
    bottom: -60%;
    left: 20%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(59,130,246,0.08), transparent 70%);
    border-radius: 50%;
}

.welcome-banner h2 {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 6px;
    position: relative;
    z-index: 1;
}

.welcome-banner p {
    color: rgba(255,255,255,0.6);
    margin: 0;
    font-size: 13.5px;
    position: relative;
    z-index: 1;
}

.welcome-banner .welcome-date {
    position: absolute;
    top: 32px;
    right: 36px;
    text-align: right;
    z-index: 1;
}

.welcome-banner .welcome-date .date-day {
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
    color: var(--secondary);
}

.welcome-banner .welcome-date .date-month {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════
   STAT CARDS - Modern Glass Style
   ═══════════════════════════════════════════════════════════════ */
.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-hover-shadow);
}

.stat-card .stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    flex-shrink: 0;
    position: relative;
}

.stat-card .stat-icon::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 16px;
    opacity: 0.15;
}

.stat-card .stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.stat-card .stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
}

.stat-card.blue::before { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.stat-card.green::before { background: linear-gradient(90deg, #10b981, #34d399); }
.stat-card.orange::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.stat-card.red::before { background: linear-gradient(90deg, #ef4444, #f87171); }
.stat-card.purple::before { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }

.stat-card.blue .stat-icon { background: linear-gradient(135deg, #3b82f6, #2563eb); box-shadow: 0 4px 14px rgba(59,130,246,0.35); }
.stat-card.green .stat-icon { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 4px 14px rgba(16,185,129,0.35); }
.stat-card.orange .stat-icon { background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 4px 14px rgba(245,158,11,0.35); }
.stat-card.red .stat-icon { background: linear-gradient(135deg, #ef4444, #dc2626); box-shadow: 0 4px 14px rgba(239,68,68,0.35); }
.stat-card.purple .stat-icon { background: linear-gradient(135deg, #8b5cf6, #7c3aed); box-shadow: 0 4px 14px rgba(139,92,246,0.35); }

/* ═══════════════════════════════════════════════════════════════
   QUICK ACTIONS
   ═══════════════════════════════════════════════════════════════ */
.quick-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.quick-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.quick-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    color: var(--text-primary);
}

.quick-action-btn i {
    font-size: 16px;
}

.quick-action-btn.btn-pos { border-color: rgba(16,185,129,0.3); }
.quick-action-btn.btn-pos i { color: var(--success); }
.quick-action-btn.btn-pos:hover { background: #ecfdf5; border-color: var(--success); }

.quick-action-btn.btn-booking { border-color: rgba(59,130,246,0.3); }
.quick-action-btn.btn-booking i { color: var(--info); }
.quick-action-btn.btn-booking:hover { background: #eff6ff; border-color: var(--info); }

.quick-action-btn.btn-menu { border-color: rgba(139,92,246,0.3); }
.quick-action-btn.btn-menu i { color: #8b5cf6; }
.quick-action-btn.btn-menu:hover { background: #f5f3ff; border-color: #8b5cf6; }

.quick-action-btn.btn-reports { border-color: rgba(245,158,11,0.3); }
.quick-action-btn.btn-reports i { color: var(--warning); }
.quick-action-btn.btn-reports:hover { background: #fffbeb; border-color: var(--warning); }

/* ═══════════════════════════════════════════════════════════════
   CARDS - Premium Style
   ═══════════════════════════════════════════════════════════════ */
.card-custom {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
    overflow: hidden;
    transition: var(--transition);
}

.card-custom:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.card-custom .card-header {
    background: linear-gradient(180deg, #fafbfc, #f8f9fa);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 22px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.card-custom .card-header i { margin-right: 8px; }
.card-custom .card-body { padding: 22px; }

/* ─── Tables ─── */
.table-custom {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
}

.table-custom thead th {
    background: #f8fafc;
    padding: 12px 16px;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    white-space: nowrap;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.table-custom tbody td {
    padding: 13px 16px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    color: var(--text-primary);
}

.table-custom tbody tr { transition: background 0.2s; }
.table-custom tbody tr:hover { background: #f8fafc; }
.table-custom tbody tr:last-child td { border-bottom: none; }

/* ─── Badges ─── */
.badge-active { background:#ecfdf5; color:#065f46; padding:4px 12px; border-radius:20px; font-size:11px; font-weight:600; display:inline-block; }
.badge-expired { background:#fef2f2; color:#991b1b; padding:4px 12px; border-radius:20px; font-size:11px; font-weight:600; display:inline-block; }
.badge-pending { background:#fffbeb; color:#92400e; padding:4px 12px; border-radius:20px; font-size:11px; font-weight:600; display:inline-block; }
.badge-suspended { background:#f1f5f9; color:#475569; padding:4px 12px; border-radius:20px; font-size:11px; font-weight:600; display:inline-block; }

/* ─── Buttons ─── */
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-color: var(--primary); font-weight: 500; border-radius: var(--radius-sm); transition: var(--transition); }
.btn-primary:hover { background: linear-gradient(135deg, var(--primary-light), var(--primary)); border-color: var(--primary-light); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(27,67,50,0.3); }
.btn-sm { font-size: 12px; padding: 6px 14px; font-weight: 500; border-radius: var(--radius-sm); }
.btn-action { padding: 5px 10px; font-size: 12px; border: none; border-radius: var(--radius-sm); cursor: pointer; margin: 0 2px; transition: var(--transition); }
.btn-action:hover { transform: translateY(-1px); }
.btn-outline-primary { color: var(--primary); border-color: var(--primary); border-radius: var(--radius-sm); }
.btn-outline-primary:hover { background: var(--primary); border-color: var(--primary); }

/* ─── Forms ─── */
.form-label { font-weight: 600; font-size: 12px; color: var(--text-secondary); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.3px; }
.form-control, .form-select { font-size: 13px; border-radius: var(--radius-sm); border-color: #e2e8f0; padding: 9px 14px; transition: var(--transition); color: var(--text-primary); }
.form-control:focus, .form-select:focus { border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(45,106,79,0.12); }
.form-control::placeholder { color: var(--text-muted); }
.input-group-text { background: #f8fafc; border-color: #e2e8f0; color: var(--text-muted); font-size: 13px; }

/* ─── Modals ─── */
.modal-content { border: none; border-radius: var(--radius-lg); box-shadow: 0 25px 80px rgba(0,0,0,0.2); }
.modal-header { border-bottom: 1px solid var(--border-color); padding: 20px 24px; }
.modal-header .modal-title { font-weight: 700; font-size: 16px; }
.modal-body { padding: 24px; }
.modal-footer { border-top: 1px solid var(--border-color); padding: 14px 24px; }

/* ─── Alerts ─── */
.alert-custom { border-radius: var(--radius-md); padding: 14px 20px; margin-bottom: 20px; border: none; font-size: 13px; font-weight: 500; }
.alert-success { background: #ecfdf5; color: #065f46; border-left: 4px solid var(--success); }
.alert-danger { background: #fef2f2; color: #991b1b; border-left: 4px solid var(--danger); }
.alert-warning { background: #fffbeb; color: #92400e; border-left: 4px solid var(--warning); }

/* ═══════════════════════════════════════════════════════════════
   LOGIN PAGE
   ═══════════════════════════════════════════════════════════════ */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(200,169,98,0.12), transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
}

.login-container::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59,130,246,0.08), transparent 70%);
    bottom: -100px;
    left: -100px;
    border-radius: 50%;
}

.login-card {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 48px 44px;
    width: 420px;
    max-width: 92vw;
    box-shadow: 0 25px 80px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.login-card h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 4px;
    font-size: 26px;
    letter-spacing: 0.5px;
}

.login-card .subtitle { color: var(--text-muted); font-size: 13px; margin-bottom: 32px; }
.login-card .btn-primary { padding: 12px; font-size: 14px; font-weight: 600; letter-spacing: 0.3px; border-radius: 10px; }
.login-card .form-control { padding: 11px 14px; font-size: 14px; border-radius: 10px; }

/* ═══════════════════════════════════════════════════════════════
   POS
   ═══════════════════════════════════════════════════════════════ */
.pos-container { display: flex; height: calc(100vh - 56px); }
.pos-menu { flex: 1; overflow-y: auto; padding: 16px; background: var(--body-bg); }
.pos-cart { width: 380px; background: var(--card-bg); border-left: 1px solid var(--border-color); display: flex; flex-direction: column; box-shadow: -2px 0 12px rgba(0,0,0,0.04); }
.pos-cart-header { padding: 16px 18px; border-bottom: 1px solid var(--border-color); font-weight: 700; font-size: 15px; background: #f8fafc; }
.pos-cart-items { flex: 1; overflow-y: auto; padding: 10px; }
.pos-cart-footer { padding: 16px 18px; border-top: 1px solid var(--border-color); background: #f8fafc; }

.food-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 10px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.food-card:hover { border-color: var(--primary-light); box-shadow: 0 4px 16px rgba(0,0,0,0.08); transform: translateY(-2px); }
.food-card .food-name { font-size: 12px; font-weight: 600; margin-bottom: 6px; color: var(--text-primary); line-height: 1.3; }
.food-card .food-price { font-size: 15px; color: var(--primary); font-weight: 800; }

.food-card .veg-badge { display: inline-block; width: 14px; height: 14px; border: 1.5px solid; border-radius: 3px; position: relative; }
.food-card .veg-badge.veg { border-color: #16a34a; }
.food-card .veg-badge.veg::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #16a34a; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.food-card .veg-badge.nonveg { border-color: #dc2626; }
.food-card .veg-badge.nonveg::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #dc2626; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); }

.category-tab { padding: 8px 18px; border: 1px solid var(--border-color); border-radius: 24px; background: var(--card-bg); cursor: pointer; font-size: 12px; font-weight: 600; transition: var(--transition); white-space: nowrap; color: var(--text-secondary); }
.category-tab:hover, .category-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 2px 8px rgba(27,67,50,0.3); }

.cart-item { display: flex; align-items: center; padding: 10px 8px; border-bottom: 1px solid #f1f5f9; font-size: 12.5px; }
.cart-item .item-name { flex: 1; font-weight: 500; color: var(--text-primary); }
.cart-item .item-qty { width: 90px; text-align: center; }
.cart-item .item-total { width: 80px; text-align: right; font-weight: 700; color: var(--primary); }

.qty-btn { width: 26px; height: 26px; border: 1px solid #e2e8f0; background: var(--card-bg); border-radius: var(--radius-sm); cursor: pointer; font-size: 14px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; transition: var(--transition); font-weight: 700; color: var(--text-secondary); }
.qty-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ─── Calendar ─── */
.calendar-day { min-height: 90px; border: 1px solid var(--border-color); padding: 6px; font-size: 12px; vertical-align: top; transition: background 0.15s; cursor: pointer; }
.calendar-day:hover { background: #f0f7ff; }
.calendar-day.today { background: #eff6ff; border-color: var(--info); }
.calendar-day .day-num { font-weight: 700; color: var(--text-primary); margin-bottom: 4px; font-size: 13px; }

.booking-chip { background: var(--primary); color: #fff; padding: 2px 8px; border-radius: 4px; font-size: 10px; margin: 2px 0; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.booking-chip.checkout { background: var(--warning); color: #333; }
.booking-chip.cancelled { background: var(--danger); }

/* ─── Pagination ─── */
.pagination .page-link { font-size: 12.5px; padding: 6px 12px; color: var(--text-secondary); border-color: var(--border-color); font-weight: 500; border-radius: var(--radius-sm); margin: 0 2px; }
.pagination .page-item.active .page-link { background: var(--primary); border-color: var(--primary); font-weight: 600; }

/* ─── Utility ─── */
.text-muted { color: var(--text-muted) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: #d97706 !important; }
a { color: var(--primary); }
a:hover { color: var(--primary-light); }
.fw-bold { font-weight: 700 !important; }
strong { font-weight: 600; }
.badge.bg-secondary { background: #f1f5f9 !important; color: var(--text-secondary); font-weight: 600; font-size: 10.5px; padding: 4px 10px; border-radius: 12px; }
.badge.bg-primary { background: #dbeafe !important; color: #1e40af; font-weight: 600; font-size: 10.5px; padding: 4px 10px; }
.badge.bg-success { background: #ecfdf5 !important; color: #065f46; font-weight: 600; }
.badge.bg-warning { background: #fffbeb !important; color: #92400e; font-weight: 600; }

/* ─── Print ─── */
@media print {
    .sidebar, .top-bar, .no-print, .sidebar-overlay { display: none !important; }
    .main-content { margin-left: 0 !important; }
    .content-area { padding: 0 !important; }
    body { font-size: 12px; background: #fff; }
    .stat-card, .card-custom { box-shadow: none; border: 1px solid #ddd; }
    .welcome-banner { display: none; }
}

/* ─── Tablet ─── */
@media (max-width: 1024px) {
    .sidebar { width: 250px; }
    .main-content { margin-left: 250px; }
    .content-area { padding: 20px; }
    .pos-cart { width: 320px; }
    .welcome-banner { padding: 24px 28px; }
    .welcome-banner h2 { font-size: 22px; }
}

/* ─── Mobile ─── */
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); width: 280px; box-shadow: 4px 0 24px rgba(0,0,0,0.2); }
    .sidebar.open { transform: translateX(0); }
    .sidebar-close { display: block; }
    .main-content { margin-left: 0; }
    .mobile-menu-btn { display: inline-flex; }

    /* Top bar mobile fix */
    .top-bar { padding: 10px 14px; gap: 8px; flex-wrap: nowrap; }
    .top-bar h5 { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
    .top-bar .user-info { gap: 6px; flex-shrink: 0; }
    /* User info mobile */
    .user-name-full { display: none !important; }
    .user-name-mobile {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
        font-size: 15px;
        color: var(--text-secondary);
    }
    .user-role-badge { display: none !important; }

    /* Theme switcher mobile */
    .theme-toggle-btn { width: 32px; height: 32px; font-size: 13px; border-radius: 8px; }
    .theme-dropdown { right: -10px; width: 250px; padding: 12px; }
    .theme-options { gap: 6px; }
    .theme-option { padding: 6px 8px; font-size: 11px; }
    .theme-preview { width: 20px; height: 20px; border-radius: 5px; }

    .content-area { padding: 14px; }

    /* Stat cards - 2 columns on mobile */
    .stat-card { padding: 14px; }
    .stat-card .stat-value { font-size: 20px; }
    .stat-card .stat-label { font-size: 10px; }
    .stat-card .stat-icon { width: 40px; height: 40px; font-size: 16px; border-radius: 10px; }

    /* Welcome banner */
    .welcome-banner { padding: 18px; margin-bottom: 18px; }
    .welcome-banner h2 { font-size: 18px; }
    .welcome-banner p { font-size: 12px; }
    .welcome-banner .welcome-date {
        position: static;
        text-align: left;
        margin-top: 10px;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .welcome-banner .welcome-date .date-day { font-size: 22px; }
    .welcome-banner .welcome-date .date-month { font-size: 11px; }

    /* Quick actions - scroll horizontally */
    .quick-actions {
        gap: 8px;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
        margin-bottom: 18px;
    }
    .quick-action-btn {
        padding: 8px 14px;
        font-size: 12px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Cards & Tables */
    .card-custom { margin-bottom: 16px; }
    .card-custom .card-header { padding: 12px 14px; font-size: 13px; }
    .card-custom .card-body { padding: 14px; }
    .card-custom .card-body.p-0 { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .table-custom { min-width: 500px; }

    /* POS mobile */
    .pos-container { flex-direction: column; height: auto; }
    .pos-menu { max-height: 50vh; overflow-y: auto; padding: 12px; }
    .pos-cart { width: 100%; border-left: none; border-top: 1px solid var(--border-color); max-height: 50vh; }
    .pos-cart-header { padding: 12px 14px; }
    .pos-cart-footer { padding: 12px 14px; }

    /* Calendar */
    .calendar-day { min-height: 60px; padding: 3px; font-size: 10px; }
    .booking-chip { font-size: 8px; padding: 1px 4px; }

    .modal-dialog { margin: 8px; max-width: calc(100vw - 16px); }
    .hide-mobile { display: none; }

    /* Filter forms on mobile */
    .card-custom .card-body form .col-md-2,
    .card-custom .card-body form .col-md-3,
    .card-custom .card-body form .col-md-4 {
        margin-bottom: 4px;
    }
}

/* ─── Small mobile ─── */
@media (max-width: 480px) {
    .login-card { padding: 28px 22px; margin: 12px; }
    .login-card h3 { font-size: 20px; }

    .top-bar h5 { font-size: 13px; max-width: 110px; }
    .content-area { padding: 10px; }

    /* Stack stat cards vertically */
    .stat-card .stat-value { font-size: 18px; }
    .stat-card .stat-icon { width: 36px; height: 36px; font-size: 14px; }
    .stat-card .stat-label { font-size: 9px; letter-spacing: 0.5px; }
    .stat-card small { font-size: 10px; }

    .welcome-banner { padding: 16px; border-radius: var(--radius-md); }
    .welcome-banner h2 { font-size: 16px; }
    .welcome-banner p { font-size: 11px; }
    .welcome-banner .welcome-date .date-day { font-size: 20px; }

    .quick-action-btn { padding: 7px 12px; font-size: 11px; }
    .quick-action-btn i { font-size: 13px; }

    .table-custom { font-size: 12px; min-width: 450px; }
    .table-custom thead th { padding: 8px 10px; font-size: 10px; }
    .table-custom tbody td { padding: 8px 10px; }

    .card-custom .card-header { padding: 10px 12px; font-size: 12px; }
    .card-custom .card-header .btn { font-size: 10px; padding: 4px 10px; }

    /* Theme dropdown smaller */
    .theme-dropdown { width: 220px; padding: 10px; right: -50px; }
    .theme-dropdown-title { font-size: 10px; margin-bottom: 8px; }
    .theme-option { padding: 5px 7px; font-size: 10px; gap: 6px; }
    .theme-preview { width: 18px; height: 18px; }

    /* Badges smaller */
    .badge { font-size: 10px !important; padding: 3px 8px !important; }
}

/* ═══════════════════════════════════════════════════════════════
   THEME SWITCHER
   ═══════════════════════════════════════════════════════════════ */
.theme-switcher {
    position: relative;
}

.theme-toggle-btn {
    background: linear-gradient(135deg, #f8fafc, #eef2f7);
    border: 1px solid rgba(0,0,0,0.06);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.theme-toggle-btn:hover {
    background: linear-gradient(135deg, #eef2f7, #e2e8f0);
    color: var(--text-primary);
    transform: scale(1.05);
}

.theme-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    padding: 16px;
    width: 280px;
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.theme-dropdown-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.theme-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--card-bg);
    cursor: pointer;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
}

.theme-option:hover {
    border-color: var(--text-muted);
    background: #f8fafc;
}

.theme-option.active {
    border-color: var(--primary);
    background: #f0fdf4;
    color: var(--text-primary);
    box-shadow: 0 0 0 1px var(--primary);
}

.theme-preview {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    flex-shrink: 0;
    border: 1px solid rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .theme-dropdown {
        width: 240px;
        right: -40px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.stat-card { animation: fadeInUp 0.5s ease both; }
.stat-card:nth-child(1) { animation-delay: 0.05s; }
.stat-card:nth-child(2) { animation-delay: 0.1s; }
.stat-card:nth-child(3) { animation-delay: 0.15s; }
.stat-card:nth-child(4) { animation-delay: 0.2s; }

.welcome-banner { animation: fadeInUp 0.4s ease both; }
.quick-actions { animation: fadeInUp 0.45s ease both; }

.card-custom {
    animation: fadeInUp 0.5s ease both;
    animation-delay: 0.25s;
}

/* ══════ Petpooja-Style Running Orders Section ══════ */
.pp-running-section {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    animation: fadeInUp 0.5s ease both;
    animation-delay: 0.12s;
}
.pp-running-header {
    padding: 16px 20px 0;
    border-bottom: 1px solid #f1f5f9;
}
.pp-running-tabs {
    display: flex;
    align-items: center;
    gap: 0;
}
.pp-tab {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    padding: 10px 18px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}
.pp-tab.active {
    color: #dc2626;
    border-bottom-color: #dc2626;
}
.pp-tab:hover:not(.active) { color: #334155; }
.pp-tab-divider {
    width: 1px;
    height: 20px;
    background: #e2e8f0;
    margin: 0 4px;
}
.pp-running-body {
    padding: 20px;
}

/* Summary Cards */
.pp-summary-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}
.pp-summary-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.pp-summary-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    flex-shrink: 0;
}
.pp-summary-value {
    font-size: 24px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.2;
}
.pp-summary-value small {
    font-size: 14px;
    font-weight: 500;
    color: #94a3b8;
}
.pp-summary-label {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Order Type Cards */
.pp-type-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.2s;
    height: 100%;
}
.pp-type-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transform: translateY(-1px);
}
.pp-type-card-alert {
    border-color: #fecaca;
    background: #fef2f2;
}
.pp-type-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}
.pp-type-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}
.pp-type-icon.dine-in { background: #dbeafe; color: #2563eb; }
.pp-type-icon.pickup { background: #fef3c7; color: #d97706; }
.pp-type-icon.delivery { background: #fee2e2; color: #dc2626; }
.pp-type-icon.parcel { background: #cffafe; color: #0891b2; }
.pp-type-icon.room-service { background: #d1fae5; color: #059669; }
.pp-type-icon.not-ready { background: #fee2e2; color: #dc2626; }
.pp-type-body {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.pp-type-stat {
    display: flex;
    flex-direction: column;
}
.pp-type-count {
    font-size: 28px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
}
.pp-type-label {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}
.pp-type-amount {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}
.pp-type-link {
    font-size: 12px;
    font-weight: 600;
    color: #dc2626;
    text-decoration: none;
    transition: color 0.2s;
}
.pp-type-link:hover { color: #b91c1c; }
.pp-type-link i { margin-left: 4px; font-size: 10px; }

/* Today's Order Breakdown */
.pp-today-type {
    padding: 14px 8px;
    border-radius: 10px;
    transition: background 0.2s;
}
.pp-today-type:hover { background: #f8fafc; }
.pp-today-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin: 0 auto 8px;
}
.pp-today-count {
    font-size: 22px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
}
.pp-today-label {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.pp-today-amount {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    margin-top: 4px;
}

@media (max-width: 768px) {
    .pp-summary-card { padding: 12px 14px; }
    .pp-summary-value { font-size: 20px; }
    .pp-summary-icon { width: 40px; height: 40px; font-size: 16px; }
    .pp-type-count { font-size: 22px; }
    .pp-today-count { font-size: 18px; }
    .pp-today-icon { width: 36px; height: 36px; font-size: 15px; }
}

/* ══════ Petpooja-Style Menu Tabs ══════ */
.pp-menu-tabs {
    display: flex;
    gap: 0;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow-x: auto;
    padding: 4px;
}
.pp-menu-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    border-radius: 8px;
    white-space: nowrap;
    transition: all 0.2s;
}
.pp-menu-tab:hover { color: #1e293b; background: #f8fafc; }
.pp-menu-tab.active {
    color: #dc2626;
    background: #fef2f2;
}
.pp-menu-tab i { font-size: 14px; }
@media (max-width: 768px) {
    .pp-menu-tab { padding: 8px 12px; font-size: 12px; }
}
