/**
 * RestoPOS - Main Stylesheet
 * Modern restaurant POS system design
 */

/* ============================================
   CSS Variables & Theme
   ============================================ */
:root {
    /* Colors - Warm restaurant palette */
    --primary: #d35400;
    --primary-dark: #a84300;
    --primary-light: #e67e22;
    --secondary: #2c3e50;
    --accent: #16a085;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --info: #3498db;
    
    /* Neutrals */
    --bg-dark: #1a1a2e;
    --bg-card: #16213e;
    --bg-light: #f8f9fa;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --text-light: #ecf0f1;
    --border-color: #dfe6e9;
    
    /* Status colors */
    --status-free: #27ae60;
    --status-occupied: #e74c3c;
    --status-bill: #f39c12;
    --status-reserved: #9b59b6;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-xxl: 3rem;
    
    /* Typography */
    --font-main: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Mono', monospace;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-glow: 0 0 20px rgba(211, 84, 0, 0.3);
    
    /* Borders */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 50px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-main);
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
}

/* ============================================
   Navigation
   ============================================ */
.main-nav {
    background: var(--secondary);
    padding: var(--space-md) var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--primary-light);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-brand i {
    font-size: 1.75rem;
}

.nav-links {
    display: flex;
    gap: var(--space-sm);
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 500;
}

.nav-links a:hover {
    background: rgba(255,255,255,0.1);
    color: var(--primary-light);
}

.nav-links a.active {
    background: var(--primary);
    color: white;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.notifications-bell {
    position: relative;
    cursor: pointer;
    color: var(--text-light);
    font-size: 1.25rem;
    padding: var(--space-sm);
    transition: color var(--transition-fast);
}

.notifications-bell:hover {
    color: var(--primary-light);
}

.notifications-bell .badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--danger);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    font-weight: 600;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    color: var(--text-light);
}

.user-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.user-role {
    font-size: 0.75rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-logout {
    color: var(--text-light);
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.btn-logout:hover {
    background: rgba(231, 76, 60, 0.2);
    color: var(--danger);
}

/* ============================================
   Notifications Panel
   ============================================ */
.notifications-panel {
    position: fixed;
    top: 70px;
    right: var(--space-xl);
    width: 360px;
    max-height: 500px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    display: none;
    overflow: hidden;
}

.notifications-panel.active {
    display: block;
    animation: slideDown 0.2s ease;
}

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

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

.notifications-header h3 {
    font-size: 1rem;
    font-weight: 600;
}

.btn-mark-read {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 0.85rem;
}

.notifications-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: var(--space-md);
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.notification-item:hover {
    background: var(--bg-light);
}

.notification-item.unread {
    background: #fff8e1;
}

.notification-item .title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: var(--space-xs);
}

.notification-item .message {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.notification-item .time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: var(--space-xs);
}

/* ============================================
   Main Content
   ============================================ */
.main-content {
    padding: var(--space-xl);
    min-height: calc(100vh - 140px);
}

/* ============================================
   Page Headers
   ============================================ */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
}

.page-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.page-header h1 i {
    color: var(--primary);
}

/* ============================================
   Cards
   ============================================ */
.card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow var(--transition-normal);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

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

.card-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
}

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

.card-footer {
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--border-color);
    background: var(--bg-light);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: all var(--transition-fast);
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-glow);
}

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

.btn-secondary:hover {
    background: #34495e;
}

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

.btn-success:hover {
    background: #219a52;
}

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

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

.btn-danger:hover {
    background: #c0392b;
}

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

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

.btn-sm {
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.8rem;
}

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

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-full);
}

.btn-block {
    width: 100%;
}

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

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: var(--space-md);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

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

select.form-control {
    cursor: pointer;
}

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

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
}

/* ============================================
   Tables Grid (Restaurant Tables)
   ============================================ */
.tables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--space-lg);
}

.table-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.table-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.table-card.free::before {
    background: var(--status-free);
}

.table-card.occupied::before {
    background: var(--status-occupied);
}

.table-card.bill_requested::before {
    background: var(--status-bill);
}

.table-card.reserved::before {
    background: var(--status-reserved);
}

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

.table-card.free:hover {
    border-color: var(--status-free);
}

.table-card.occupied:hover {
    border-color: var(--status-occupied);
}

.table-card.bill_requested:hover {
    border-color: var(--status-bill);
}

.table-card .table-number {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: var(--space-sm);
}

.table-card .table-capacity {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
}

.table-card .table-status {
    margin-top: var(--space-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    display: inline-block;
}

.table-card.free .table-status {
    background: rgba(39, 174, 96, 0.1);
    color: var(--status-free);
}

.table-card.occupied .table-status {
    background: rgba(231, 76, 60, 0.1);
    color: var(--status-occupied);
}

.table-card.bill_requested .table-status {
    background: rgba(243, 156, 18, 0.1);
    color: var(--status-bill);
}

/* ============================================
   Room Tabs
   ============================================ */
.room-tabs {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.room-tab {
    padding: var(--space-sm) var(--space-lg);
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.room-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.room-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* ============================================
   Menu Categories
   ============================================ */
.categories-nav {
    display: flex;
    gap: var(--space-sm);
    overflow-x: auto;
    padding-bottom: var(--space-md);
    margin-bottom: var(--space-lg);
}

.category-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-md);
    min-width: 100px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.category-btn i {
    font-size: 1.5rem;
    margin-bottom: var(--space-xs);
}

.category-btn span {
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
}

.category-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

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

/* ============================================
   Menu Items Grid
   ============================================ */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-md);
}

.menu-item {
    background: white;
    border-radius: var(--radius-md);
    padding: var(--space-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
}

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

.menu-item .item-name {
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.menu-item .item-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.menu-item .item-price {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 700;
}

/* ============================================
   Order Panel
   ============================================ */
.order-panel {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    height: calc(100vh - 140px);
    position: sticky;
    top: 90px;
}

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

.order-header h3 {
    font-size: 1.1rem;
    margin-bottom: var(--space-xs);
}

.order-header .order-info {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

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

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: var(--space-md);
    border-bottom: 1px solid var(--border-color);
    gap: var(--space-md);
}

.order-item:last-child {
    border-bottom: none;
}

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

.order-item .item-name {
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

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

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

.order-item .item-qty button {
    width: 28px;
    height: 28px;
    border: none;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
}

.order-item .item-qty button:hover {
    background: var(--primary);
    color: white;
}

.order-item .item-qty span {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
}

.order-item .item-total {
    font-weight: 600;
    min-width: 70px;
    text-align: right;
}

.order-totals {
    padding: var(--space-lg);
    border-top: 1px solid var(--border-color);
    background: var(--bg-light);
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-sm);
    font-size: 0.95rem;
}

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

.order-actions {
    padding: var(--space-lg);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: var(--space-sm);
}

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

/* ============================================
   Kitchen Display
   ============================================ */
.kitchen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.kitchen-ticket {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--warning);
}

.kitchen-ticket.in-progress {
    border-left-color: var(--info);
}

.kitchen-ticket.ready {
    border-left-color: var(--success);
}

.ticket-header {
    padding: var(--space-md);
    background: var(--bg-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ticket-header .table-info {
    font-weight: 700;
    font-size: 1.1rem;
}

.ticket-header .time {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.ticket-header .time.urgent {
    color: var(--danger);
    font-weight: 600;
}

.ticket-items {
    padding: var(--space-md);
}

.ticket-item {
    padding: var(--space-sm) 0;
    border-bottom: 1px dashed var(--border-color);
}

.ticket-item:last-child {
    border-bottom: none;
}

.ticket-item .qty {
    font-weight: 700;
    color: var(--primary);
    margin-right: var(--space-sm);
}

.ticket-item .mods {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: var(--space-xs);
    padding-left: var(--space-lg);
}

.ticket-actions {
    padding: var(--space-md);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: var(--space-sm);
}

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

/* ============================================
   Cashier / Payment View
   ============================================ */
.payment-summary {
    background: var(--secondary);
    color: white;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
}

.payment-summary h2 {
    margin-bottom: var(--space-md);
    font-size: 1.5rem;
}

.payment-amount {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--primary-light);
    margin-bottom: var(--space-md);
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.payment-method {
    padding: var(--space-lg);
    background: white;
    border-radius: var(--radius-md);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 3px solid transparent;
}

.payment-method:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.payment-method.selected {
    border-color: var(--primary);
    background: rgba(211, 84, 0, 0.05);
}

.payment-method i {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: var(--space-sm);
    display: block;
}

.payment-method span {
    font-weight: 600;
    color: var(--text-primary);
}

/* ============================================
   Data Tables
   ============================================ */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background: var(--bg-light);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

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

/* ============================================
   Modals
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

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

.modal {
    background: white;
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform var(--transition-normal);
}

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

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

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

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: var(--space-xs);
}

.modal-close:hover {
    color: var(--danger);
}

.modal-body {
    padding: var(--space-lg);
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    padding: var(--space-lg);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: var(--space-sm);
}

/* ============================================
   Toast Notifications
   ============================================ */
.toast-container {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.toast {
    padding: var(--space-md) var(--space-lg);
    background: var(--secondary);
    color: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    animation: slideIn 0.3s ease;
    max-width: 350px;
}

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

.toast.success {
    background: var(--success);
}

.toast.error {
    background: var(--danger);
}

.toast.warning {
    background: var(--warning);
}

.toast.info {
    background: var(--info);
}

/* ============================================
   Badges & Status Indicators
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: rgba(211, 84, 0, 0.1);
    color: var(--primary);
}

.badge-success {
    background: rgba(39, 174, 96, 0.1);
    color: var(--success);
}

.badge-warning {
    background: rgba(243, 156, 18, 0.1);
    color: var(--warning);
}

.badge-danger {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger);
}

.badge-info {
    background: rgba(52, 152, 219, 0.1);
    color: var(--info);
}

/* ============================================
   Stats Cards
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.stat-card .stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-card .stat-icon.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.stat-card .stat-icon.success {
    background: linear-gradient(135deg, var(--success), #2ecc71);
}

.stat-card .stat-icon.warning {
    background: linear-gradient(135deg, var(--warning), #f1c40f);
}

.stat-card .stat-icon.info {
    background: linear-gradient(135deg, var(--info), #74b9ff);
}

.stat-card .stat-value {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--secondary);
}

.stat-card .stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ============================================
   Login Page
   ============================================ */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary) 0%, #1a1a2e 100%);
}

.login-container {
    background: white;
    padding: var(--space-xxl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
}

.login-logo {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.login-logo i {
    font-size: 3rem;
    color: var(--primary);
}

.login-logo h1 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--secondary);
    margin-top: var(--space-sm);
}

.login-form .form-group {
    position: relative;
}

.login-form .form-group i {
    position: absolute;
    left: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.login-form .form-control {
    padding-left: 45px;
}

.login-error {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    font-size: 0.9rem;
}

/* ============================================
   Footer
   ============================================ */
.main-footer {
    text-align: center;
    padding: var(--space-lg);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ============================================
   Utilities
   ============================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-muted { color: var(--text-secondary); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

.d-flex { display: flex; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }

.hidden { display: none !important; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .main-nav {
        flex-wrap: wrap;
        gap: var(--space-md);
    }
    
    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
    }
    
    .main-content {
        padding: var(--space-md);
    }
    
    .page-header {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
    
    .tables-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .order-panel {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: auto;
        max-height: 50vh;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        z-index: 100;
    }
    
    .modal {
        max-width: 95%;
        margin: var(--space-md);
    }
}
