/**
 * SHA RESTAURANT - Main Stylesheet
 * Premium Dark SaaS Design 2026
 */

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

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Premium Dark Theme Palette */
    --bg-body: #0f172a;       /* Main Background */
    --bg-sidebar: #111827;    /* Sidebar Background */
    --bg-card: #1e293b;       /* Card Background */
    --bg-hover: #334155;      /* Hover State */
    --bg-input: #1e293b;      /* Input Background */
    
    /* Accents */
    --primary: #6366f1;
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --primary-hover: #4f46e5;
    
    /* Status Colors */
    --success: #10b981;       /* Green */
    --warning: #f59e0b;       /* Amber */
    --danger: #ef4444;        /* Red */
    --info: #3b82f6;          /* Blue */
    
    /* Typography - High Contrast */
    --text-main: #f8fafc;     /* Very Light */
    --text-secondary: #cbd5e1;/* Light Gray */
    --text-muted: #cbd5e1;    /* Muted mapped to Secondary for contrast */
    --text-inverse: #ffffff;
    
    /* Borders & Effects */
    --border-color: #334155;
    --border-light: #475569;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.15);
    --glass: rgba(15, 23, 42, 0.7);
    
    /* Layout */
    --sidebar-width: 260px;
    --header-height: 70px;
    --radius: 0.75rem;
    --radius-sm: 0.5rem;
    --radius-full: 9999px;
    
    /* Spacing System */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    
    /* Animation */
    --transition: 200ms ease;
}

/* ============================================
   BASE STYLES
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-main);
    background-color: var(--bg-body);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-weight: 600;
    color: var(--text-main) !important;
    letter-spacing: -0.025em;
}

/* RTL Support */
[dir="rtl"] body {
    font-family: 'Cairo', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: #818cf8;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    cursor: pointer;
    font-family: inherit;
}

/* ============================================
   LAYOUT
   ============================================ */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-inline-end: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    inset-block: 0;
    inset-inline-start: 0;
    z-index: 100;
    transition: all var(--transition);
}

.sidebar-collapsed .sidebar {
    width: 80px;
}

.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 var(--space-6);
    border-bottom: 1px solid var(--border-color);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text-main);
}

.sidebar-brand-icon {
    width: 32px;
    height: 32px;
    background: var(--primary-gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

.sidebar-brand-text {
    white-space: nowrap;
    overflow: hidden;
    letter-spacing: -0.02em;
}

.sidebar-collapsed .sidebar-brand-text {
    display: none;
}

.sidebar-nav {
    flex: 1;
    padding: var(--space-4);
    overflow-y: auto;
}

.nav-section {
    margin-bottom: var(--space-6);
}

.nav-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: 0 var(--space-3);
    margin-bottom: var(--space-2);
    white-space: nowrap;
}

.sidebar-collapsed .nav-section-title {
    display: none;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    transition: all var(--transition);
    margin-bottom: var(--space-1);
    font-weight: 500;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
}

.nav-item.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.nav-item span {
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-collapsed .nav-item span {
    display: none;
}

.sidebar-footer {
    padding: var(--space-4);
    border-top: 1px solid var(--border-color);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-inline-start: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: all var(--transition);
}

.sidebar-collapsed .main-content {
    margin-inline-start: 80px;
}

/* Header */
.header {
    height: var(--header-height);
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-6);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-left {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex: 1;
}

.header-right {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

/* Search Input */
.header-search {
    position: relative;
    width: 100%;
    max-width: 320px;
}

.header-search input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    color: var(--text-main);
    font-size: 0.875rem;
    transition: all var(--transition);
}

.header-search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.header-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    border: none;
    background: transparent;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    position: relative;
}

.btn-icon:hover {
    background: var(--bg-hover);
    color: var(--text-main);
}

.badge-dot {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    border: 2px solid var(--bg-body);
}

/* Language Selector */
.lang-selector {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius);
    background: var(--bg-hover);
    cursor: pointer;
    transition: background var(--transition);
}

.lang-selector:hover {
    background: var(--border-color);
}

.lang-flag {
    font-size: 1.25rem;
}

/* User Menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius);
    cursor: pointer;
    transition: background var(--transition);
}

.user-menu:hover {
    background: var(--bg-hover);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.user-info {
    line-height: 1.25;
}

.user-name {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.875rem;
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Content Area */
.content {
    flex: 1;
    padding: var(--space-6);
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    overflow: hidden;
    color: var(--text-main);
    transition: transform var(--transition), box-shadow var(--transition);
}

.card-header {
    padding: var(--space-4) var(--space-6);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-main);
}

.card-body {
    padding: var(--space-6);
}

.card-footer {
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
}

/* Stat Cards */
.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: var(--space-6);
    box-shadow: var(--shadow);
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    transition: transform var(--transition), box-shadow var(--transition);
    border: 1px solid var(--border-color);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-icon.primary {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.stat-icon.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary);
}

.stat-icon.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.stat-icon.danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.stat-icon.info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-1);
    font-weight: 500;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.stat-change {
    font-size: 0.75rem;
    margin-top: var(--space-1);
    font-weight: 500;
}

.stat-change.positive {
    color: var(--success);
}

.stat-change.negative {
    color: var(--danger);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-full); /* Pill buttons */
    border: 1px solid transparent;
    transition: all var(--transition);
    white-space: nowrap;
    cursor: pointer;
    line-height: 1.25;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover:not(:disabled) {
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-hover);
    color: var(--text-main);
    border-color: var(--border-color);
}

.btn-secondary:hover:not(:disabled) {
    background: #475569;
    border-color: #475569;
}

.btn-success {
    background: var(--success);
    color: white;
    border-color: var(--success);
}

.btn-success:hover:not(:disabled) {
    background: #059669;
    border-color: #059669;
}

.btn-danger {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}

.btn-danger:hover:not(:disabled) {
    background: #dc2626;
    border-color: #dc2626;
}

.btn-warning {
    background: var(--warning);
    color: white;
    border-color: var(--warning);
}

.btn-warning:hover:not(:disabled) {
    background: #d97706;
    border-color: #d97706;
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover:not(:disabled) {
    background: rgba(99, 102, 241, 0.1);
    color: white;
    border-color: var(--primary);
}

.btn-lg {
    padding: var(--space-3) var(--space-6);
    font-size: 1rem;
}

.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: var(--space-4);
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: var(--space-2);
}

.form-label.required::after {
    content: ' *';
    color: var(--danger);
}

.form-control {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-size: 0.875rem;
    color: var(--text-main);
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control:disabled {
    background: var(--bg-hover);
    cursor: not-allowed;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

[dir="rtl"] select.form-control {
    background-position: left 0.5rem center;
    padding-left: 2.5rem;
    padding-right: var(--space-3);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: var(--space-1);
}

.form-error {
    font-size: 0.75rem;
    color: var(--danger);
    margin-top: var(--space-1);
}

/* Input Groups */
.input-group {
    display: flex;
    align-items: stretch;
}

.input-group .form-control {
    border-radius: 0;
    flex: 1;
}

.input-group .form-control:first-child {
    border-start-start-radius: var(--radius);
    border-end-start-radius: var(--radius);
}

.input-group .form-control:last-child {
    border-start-end-radius: var(--radius);
    border-end-end-radius: var(--radius);
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: var(--space-2) var(--space-3);
    font-size: 0.875rem;
    color: var(--text-secondary);
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
}

.input-group-text:first-child {
    border-start-start-radius: var(--radius);
    border-end-start-radius: var(--radius);
    border-inline-end: none;
}

.input-group-text:last-child {
    border-start-end-radius: var(--radius);
    border-end-end-radius: var(--radius);
    border-inline-start: none;
}

/* ============================================
   TABLES
   ============================================ */
.table-container {
    overflow-x: auto;
}

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

.table th,
.table td {
    padding: var(--space-3) var(--space-4);
    text-align: start;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
}

.table th {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary) !important;
    background: rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

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

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

/* ============================================
   BADGES
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    white-space: nowrap;
    line-height: 1;
}

.badge-primary {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: var(--space-4);
    border-radius: var(--radius);
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* ============================================
   MODALS
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    backdrop-filter: blur(4px);
}

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

.custom-modal {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform var(--transition);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
}

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

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

.custom-modal-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-main);
}

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

.custom-modal-close:hover {
    color: var(--text-main);
}

.custom-modal-body {
    padding: var(--space-6);
    overflow-y: auto;
    max-height: calc(90vh - 140px);
}

.custom-modal-footer {
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: var(--space-3);
    background: rgba(0, 0, 0, 0.2);
}

/* ============================================
   TABLE MANAGEMENT
   ============================================ */
.table-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: var(--space-4);
    padding: var(--space-4);
}

.table-item {
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    position: relative;
    box-shadow: var(--shadow-sm);
    background: var(--bg-card);
}

.table-item.free {
    border-color: var(--success);
    color: var(--success);
}

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

.table-item.reserved {
    border-color: var(--warning);
    color: var(--warning);
}

.table-item.cleaning {
    border-color: var(--info);
    color: var(--info);
}

.table-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.table-item i {
    font-size: 2rem;
}

.table-item .table-number {
    font-weight: 700;
    font-size: 1rem;
}

.table-item .table-capacity {
    font-size: 0.75rem;
    opacity: 0.8;
}

.table-item .table-status {
    position: absolute;
    top: var(--space-2);
    right: var(--space-2);
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background: currentColor;
}

/* ============================================
   KITCHEN DISPLAY
   ============================================ */
.kitchen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-4);
}

.kitchen-order {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    border-inline-start: 4px solid var(--warning);
}

.kitchen-order.preparing {
    border-inline-start-color: var(--info);
}

.kitchen-order.ready {
    border-inline-start-color: var(--success);
}

.kitchen-order-header {
    padding: var(--space-3) var(--space-4);
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kitchen-order-number {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text-main);
}

.kitchen-order-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.kitchen-order-body {
    padding: var(--space-4);
}

.kitchen-order-table {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-3);
}

.kitchen-order-items {
    list-style: none;
}

.kitchen-order-items li {
    padding: var(--space-2) 0;
    border-bottom: 1px dashed var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-main);
}

.kitchen-order-items li:last-child {
    border-bottom: none;
}

.kitchen-order-footer {
    padding: var(--space-3) var(--space-4);
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    gap: var(--space-2);
}

/* ============================================
   ORDER PANEL
   ============================================ */
.order-panel {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: var(--space-6);
    height: calc(100vh - var(--header-height) - var(--space-12));
}

.order-menu {
    overflow-y: auto;
}

.order-categories {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
    overflow-x: auto;
    padding-bottom: var(--space-2);
}

.category-btn {
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    white-space: nowrap;
    transition: all var(--transition);
}

.category-btn:hover,
.category-btn.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

.menu-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--space-4);
}

.menu-item-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
    border: 1px solid var(--border-color);
}

.menu-item-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.menu-item-image {
    aspect-ratio: 4/3;
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 2rem;
}

.menu-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-item-info {
    padding: var(--space-3);
}

.menu-item-name {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: var(--space-1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-main);
}

.menu-item-price {
    color: var(--primary);
    font-weight: 700;
}

.order-summary {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.order-summary-header {
    padding: var(--space-4);
    border-bottom: 1px solid var(--border-color);
}

.order-summary-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-main);
}

.order-items-list {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-3);
}

.order-item-row {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    background: var(--bg-hover);
    border-radius: var(--radius);
    margin-bottom: var(--space-2);
}

.order-item-qty {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.qty-btn {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-sm);
    border: none;
    background: var(--bg-card);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.order-item-details {
    flex: 1;
}

.order-item-name {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-main);
}

.order-item-price {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.order-item-total {
    font-weight: 600;
    color: var(--text-main);
}

.order-item-remove {
    color: var(--danger);
    background: none;
    border: none;
    font-size: 0.875rem;
}

.order-summary-footer {
    padding: var(--space-4);
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
}

.order-totals {
    margin-bottom: var(--space-4);
}

.order-total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-2);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.order-total-row.grand-total {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
    padding-top: var(--space-2);
    border-top: 1px solid var(--border-color);
}

.order-actions {
    display: flex;
    gap: var(--space-2);
}

.order-actions .btn {
    flex: 1;
}

/* ============================================
   LOGIN PAGE
   ============================================ */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-body);
    padding: var(--space-6);
}

.login-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 420px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.login-header {
    padding: var(--space-8) var(--space-6) var(--space-4);
    text-align: center;
}

.login-logo {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-4);
    color: white;
    font-size: 2.5rem;
}

.login-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-2);
    color: var(--text-main);
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.login-body {
    padding: var(--space-6);
}

.login-footer {
    padding: var(--space-4) var(--space-6);
    background: rgba(0, 0, 0, 0.2);
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ============================================
   GRID SYSTEM
   ============================================ */
.grid {
    display: grid;
    gap: var(--space-6);
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
.grid-cols-6 { grid-template-columns: repeat(6, 1fr); }

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-start { text-align: start; }
.text-end { text-align: end; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.font-normal { font-weight: 400; }

.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }

.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-muted { color: var(--text-muted); }

.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }

.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }

.p-0 { padding: 0; }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    [dir="rtl"] .sidebar {
        transform: translateX(100%);
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-inline-start: 0;
    }
    
    .order-panel {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .order-summary {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        max-height: 50vh;
        z-index: 100;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
    
    .grid-cols-4,
    .grid-cols-5,
    .grid-cols-6 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-cols-2,
    .grid-cols-3 {
        grid-template-columns: 1fr;
    }
    
    .header {
        padding: 0 var(--space-4);
    }
    
    .user-info {
        display: none;
    }
    
    .content {
        padding: var(--space-4);
    }
    
    .stat-card {
        padding: var(--space-4);
    }
    
    .table-layout {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .table-layout {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .kitchen-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

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

.animate-fade-in {
    animation: fadeIn var(--transition);
}

.animate-slide-in {
    animation: slideIn var(--transition);
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Print Styles */
@media print {
    .sidebar,
    .header,
    .btn,
    .no-print {
        display: none !important;
    }
    
    .main-content {
        margin-inline-start: 0 !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ============================================
   BOOTSTRAP OVERRIDES (DARK MODE FIXES)
   ============================================ */
.bg-light {
    background-color: var(--bg-hover) !important;
    color: var(--text-main) !important;
}

.bg-white {
    background-color: var(--bg-card) !important;
    color: var(--text-main) !important;
}

.text-dark {
    color: var(--text-main) !important;
}

.text-black {
    color: var(--text-main) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.text-muted {
    color: var(--text-secondary) !important;
}

.text-body {
    color: var(--text-main) !important;
}

.border, .border-top, .border-bottom, .border-end, .border-start {
    border-color: var(--border-color) !important;
}

.list-group-item {
    background-color: var(--bg-card);
    color: var(--text-main);
    border-color: var(--border-color);
}

/* Tables */
.table-light {
    background-color: var(--bg-hover) !important;
    color: var(--text-main) !important;
}

.table-light th, .table-light td {
    background-color: var(--bg-hover) !important;
    color: var(--text-main) !important;
    border-color: var(--border-color) !important;
}

.table > :not(caption) > * > * {
    background-color: transparent !important;
    color: var(--text-main) !important;
    border-bottom-color: var(--border-color) !important;
}

.table-hover > tbody > tr:hover > * {
    box-shadow: inset 0 0 0 9999px rgba(255,255,255,0.02) !important;
    color: var(--text-main) !important;
}

/* Modals */
.modal-content {
    background-color: var(--bg-card) !important;
    color: var(--text-main) !important;
    border: 1px solid var(--border-color) !important;
}

/* Fix for modal z-index issues */
.modal { z-index: 1055 !important; }
.modal-backdrop { z-index: 1050 !important; }
/* Ensure modals are not affected by parent transforms */
.modal.show { transform: none !important; }

.modal-header, .modal-footer {
    border-color: var(--border-color) !important;
}

.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Forms & Inputs */
.form-control, .form-select {
    background-color: var(--bg-input) !important;
    border-color: var(--border-color) !important;
    color: var(--text-main) !important;
}

.form-control:focus, .form-select:focus {
    background-color: var(--bg-input) !important;
    border-color: var(--primary) !important;
    color: var(--text-main) !important;
    box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.25) !important;
}

.form-control::placeholder {
    color: var(--text-secondary) !important;
    opacity: 0.7;
}

.input-group-text {
    background-color: var(--bg-hover) !important;
    border-color: var(--border-color) !important;
    color: var(--text-main) !important;
}

/* Dropdowns */
.dropdown-menu {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    box-shadow: var(--shadow-lg) !important;
}

.dropdown-item {
    color: var(--text-main) !important;
}

.dropdown-item:hover, .dropdown-item:focus {
    background-color: var(--bg-hover) !important;
    color: var(--text-main) !important;
}

/* Fix for browser autofill */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px var(--bg-input) inset !important;
    -webkit-text-fill-color: var(--text-main) !important;
    transition: background-color 5000s ease-in-out 0s;
}

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

/* ============================================
   POS DASHBOARD - FULL-SCREEN TOUCH TILE GRID
   Large, square, touch-optimized tiles
   ============================================ */

/* Full-screen POS page wrapper */
.pos-dashboard-page {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100%;
    background: #0b0f1a;
    overflow: hidden;
    position: fixed;
    inset: 0;
}

/* Top bar - compact, professional */
.pos-topbar {
    width: 100%;
    height: 60px;
    background: linear-gradient(135deg, #0f1f5c 0%, #1a3a8f 50%, #1565c0 100%);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    box-shadow: 0 3px 12px rgba(0,0,0,0.4);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    gap: 1rem;
}

.pos-topbar .fw-bold {
    font-size: 1.3rem !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 800 !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* Main tile area - fills all available height */
.pos-tile-area {
    flex: 1;
    padding: 1.25rem 1.5rem;
    overflow-y: auto;
    display: flex;
    align-items: flex-start;
}

/* The grid of square tiles - fills entire width */
.pos-tile-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    width: 100%;
    align-content: start;
}

/* Individual square tile - perfectly square, large touch targets */
.pos-tile {
    aspect-ratio: 1 / 1;
    background: #1a2340;
    border: 1px solid #2a3a5e;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 1rem;
    text-decoration: none;
    color: #e2e8f0;
    position: relative;
    overflow: hidden;
    /* Subtle inner glow */
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 4px 12px rgba(0,0,0,0.3);
    /* Touch feedback */
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

/* Subtle top-edge shimmer line */
.pos-tile::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99,102,241,0.4), transparent);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.pos-tile:hover::before,
.pos-tile:active::before {
    opacity: 1;
}

.pos-tile:hover {
    background: #1e3060;
    border-color: #6366f1;
    box-shadow: 0 0 0 1px rgba(99,102,241,0.5), 0 8px 24px rgba(99,102,241,0.2), inset 0 1px 0 rgba(255,255,255,0.08);
    transform: translateY(-3px) scale(1.02);
    color: #fff;
    text-decoration: none;
    z-index: 2;
}

.pos-tile:active {
    transform: translateY(0) scale(0.97);
    background: #162a54;
    transition: all 0.08s ease;
}

.pos-tile:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.4);
}

/* Tile icon wrapper */
.pos-tile-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
    transition: transform 0.22s ease, color 0.22s ease;
}

.pos-tile-icon i {
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: #818cf8;
    filter: drop-shadow(0 2px 6px rgba(99,102,241,0.35));
    transition: color 0.22s ease, filter 0.22s ease, transform 0.22s ease;
}

.pos-tile:hover .pos-tile-icon i {
    color: #c7d2fe;
    filter: drop-shadow(0 2px 10px rgba(165,180,252,0.6));
    transform: scale(1.1) translateY(-2px);
}

/* Tile label text */
.pos-tile-label {
    font-size: clamp(0.7rem, 1.2vw, 1rem);
    font-weight: 700;
    text-align: center;
    line-height: 1.25;
    word-break: break-word;
    hyphens: auto;
    color: #94a3b8;
    transition: color 0.22s ease;
    max-width: 100%;
    letter-spacing: 0.01em;
}

.pos-tile:hover .pos-tile-label {
    color: #e2e8f0;
}

/* Bottom status bar */
.pos-statusbar {
    display: flex;
    align-items: stretch;
    border-top: 1px solid #1e2d4a;
    background: #101826;
    flex-shrink: 0;
    min-height: 52px;
}

.pos-statusbar-cell {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 10px 16px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    border-inline-end: 1px solid #1e2d4a;
    background: transparent;
    transition: background 150ms ease, color 150ms ease;
}

.pos-statusbar-cell:last-child {
    border-inline-end: none;
}

/* Logout cell styling */
.pos-statusbar-cell.logout {
    cursor: pointer;
    color: #f87171;
    font-weight: 700;
    gap: 0.5rem;
    text-decoration: none;
}

.pos-statusbar-cell.logout:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

/* -----------------------------------------------
   FULLSCREEN POS MODE
   ----------------------------------------------- */
.pos-fullscreen-mode .sidebar,
.pos-fullscreen-mode .header {
    display: none !important;
}

.pos-fullscreen-mode .main-content {
    margin-inline-start: 0 !important;
}

.pos-fullscreen-mode .content {
    padding: 0 !important;
}

/* -----------------------------------------------
   RESPONSIVE TILE GRID
   ----------------------------------------------- */

/* Large screens: 7 columns */
@media (min-width: 1600px) {
    .pos-tile-grid {
        grid-template-columns: repeat(7, 1fr);
    }
}

/* Medium screens: 5 columns */
@media (max-width: 1280px) {
    .pos-tile-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Tablets: 4 columns */
@media (max-width: 1024px) {
    .pos-tile-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.85rem;
    }
    .pos-tile-area {
        padding: 1rem;
    }
}

/* Small tablets: 3 columns */
@media (max-width: 768px) {
    .pos-tile-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    .pos-topbar {
        height: 52px;
    }
}

/* Mobile: 2 columns */
@media (max-width: 480px) {
    .pos-tile-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
    .pos-tile-area {
        padding: 0.75rem;
    }
    .pos-statusbar-cell {
        font-size: 0.75rem;
        padding: 8px 6px;
    }
}

/* ============================================
   BENTO GRID DASHBOARD
   ============================================ */
.bento-body {
    background-color: var(--bg-body);
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cairo', 'Segoe UI', sans-serif;
}

.bento-container {
    background-color: var(--bg-card);
    width: 96%;
    height: 96%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.bento-header {
    background-color: #00acc1;
    color: white;
    padding: 12px 24px;
    text-align: center;
    flex-shrink: 0;
}

.bento-header h1 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: white !important;
}

.bento-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(4, 1fr);
    padding: 20px;
    gap: 15px;
    overflow: auto;
}

.bento-tile {
    aspect-ratio: 1 / 1;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    cursor: pointer;
    padding: 15px;
    text-align: center;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.2s ease-in-out;
}

.bento-tile:hover {
    background-color: var(--bg-hover);
    border-color: #0277bd;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 119, 189, 0.15);
    text-decoration: none;
    color: var(--text-main);
}

.bento-tile i {
    font-size: 3.5rem;
    line-height: 1;
}

.bento-tile span {
    font-size: 1rem;
    font-weight: 700;
}

.bento-tile.empty {
    background-color: rgba(255,255,255,0.05);
    border-style: dashed;
    pointer-events: none;
}

.bento-footer {
    display: flex;
    flex-shrink: 0;
    background-color: var(--bg-card);
    border-top: 1px solid #e0e0e0;
}

.bento-status-box {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #0277bd;
    background-color: var(--bg-hover);
    border-right: 1px solid #b3e5fc;
    text-decoration: none;
}

.bento-status-box:last-child {
    border-right: none;
}

.bento-status-box.logout:hover {
    background-color: #b3e5fc;
}

/* ============================================
   UNIFIED DASHBOARD LAYOUT (New Design)
   ============================================ */

/* Page Wrapper */
.dash-page {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
    background: var(--bg-body);
    position: fixed;
    inset: 0;
    overflow: hidden;
}

/* Top Bar */
.dash-topbar {
    background: linear-gradient(135deg, #0d47a1, #1976d2);
    color: #fff;
    height: 56px;
    min-height: 56px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    z-index: 100;
}

.dash-topbar-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: white !important;
    text-decoration: none;
    display: flex;
    align-items: center;
}

/* Content Area */
.dash-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    position: relative;
}

/* Status Bar */
.dash-statusbar {
    display: flex;
    height: 50px;
    min-height: 50px;
    flex-shrink: 0;
    background: #fff;
    border-top: 2px solid #1976d2;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
    z-index: 100;
}

.dash-status-cell {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #0d47a1;
    border-right: 1px solid #dde3ec;
    background: #e8f0fe;
    padding: 0 12px;
    text-decoration: none;
    transition: background 0.15s ease;
}

.dash-status-cell:last-child {
    border-right: none;
}

.dash-status-cell i {
    font-size: 1rem;
    opacity: 0.75;
}

.dash-status-cell:hover {
    background: #d0e0fc;
    color: #0d47a1;
}

.dash-status-cell.logout {
    background: #fce4ec;
    color: #c62828;
}

.dash-status-cell.logout:hover {
    background: #ef9a9a !important;
    color: #b71c1c;
}

/* Bootstrap Overrides for this layout */
.dropdown-toggle::after { display: none; }