/* ============================================================
   African Delight Restaurant — Main Stylesheet
   Brand Colors: Deep Red, Gold/Amber, Dark Green
   ============================================================ */

:root {
    --primary: #8B1A1A;
    --primary-dark: #6B0F0F;
    --primary-light: #A52A2A;
    --secondary: #DAA520;
    --secondary-light: #F4C430;
    --accent: #1B5E20;
    --accent-light: #2E7D32;
    --bg-dark: #1a1a2e;
    --bg-darker: #0f0f1a;
    --bg-light: #f5f0e8;
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    --text-dark: #1a1a1a;
    --text-medium: #555555;
    --text-light: #f5f0e8;
    --text-muted: #888888;
    --border: #e0d6ca;
    --border-light: #f0e8dc;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.15);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---- Hero Slideshow ---- */
.hero-bg-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    z-index: 0;
}
.hero-bg-slide.active {
    opacity: 1;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; color: var(--text-dark); }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-accent { color: var(--accent) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* ---- Layout Containers ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-fluid { width: 100%; padding: 0 20px; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 20px; }

/* ---- Grid ---- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---- Flex Utilities ---- */
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

/* ---- Spacing ---- */
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.p-1 { padding: 8px; } .p-2 { padding: 16px; } .p-3 { padding: 24px; } .p-4 { padding: 32px; }
.py-1 { padding-top: 8px; padding-bottom: 8px; }
.py-2 { padding-top: 16px; padding-bottom: 16px; }
.py-3 { padding-top: 24px; padding-bottom: 24px; }
.py-4 { padding-top: 32px; padding-bottom: 32px; }
.px-2 { padding-left: 16px; padding-right: 16px; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 24px; border: none; border-radius: var(--radius);
    font-family: var(--font-body); font-size: 0.95rem; font-weight: 600;
    cursor: pointer; transition: var(--transition); text-decoration: none;
    line-height: 1.4;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); color: white; }
.btn-secondary { background: var(--secondary); color: var(--text-dark); }
.btn-secondary:hover { background: var(--secondary-light); }
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { background: var(--accent-light); color: white; }
.btn-success { background: var(--success); color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-warning { background: var(--warning); color: var(--text-dark); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-ghost { background: transparent; color: var(--text-medium); }
.btn-ghost:hover { background: rgba(0,0,0,0.05); }
.btn-lg { padding: 14px 32px; font-size: 1.1rem; }
.btn-sm { padding: 6px 14px; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: 50%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ---- Cards ---- */
.card {
    background: var(--bg-card); border-radius: var(--radius-lg);
    box-shadow: var(--shadow); overflow: hidden; transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); }
.card-header { padding: 16px 20px; border-bottom: 1px solid var(--border-light); font-weight: 600; }
.card-body { padding: 20px; }
.card-footer { padding: 16px 20px; border-top: 1px solid var(--border-light); background: #fafaf7; }
.card-img { width: 100%; height: 200px; object-fit: cover; }

/* ---- Forms ---- */
.form-group { margin-bottom: 16px; }
.form-label { display: block; margin-bottom: 4px; font-weight: 600; font-size: 0.9rem; color: var(--text-medium); }
.form-control {
    width: 100%; padding: 10px 14px; border: 1px solid var(--border);
    border-radius: var(--radius); font-family: var(--font-body);
    font-size: 0.95rem; transition: var(--transition); background: white;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(139,26,26,0.1); }
.form-control.error { border-color: var(--danger); }
.form-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: 0.8rem; color: var(--danger); margin-top: 4px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23555' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-row { display: flex; gap: 16px; }
.form-row .form-group { flex: 1; }

@media (max-width: 768px) { .form-row { flex-direction: column; } }

/* ---- Tables ---- */
.table-responsive { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
table th, table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border-light); }
table th { font-weight: 600; color: var(--text-medium); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; background: #fafaf7; }
table tbody tr:hover { background: rgba(218,165,32,0.05); }

/* ---- Badges / Status ---- */
.badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-primary { background: rgba(139,26,26,0.1); color: var(--primary); }
.badge-success { background: rgba(40,167,69,0.1); color: var(--success); }
.badge-warning { background: rgba(255,193,7,0.15); color: #b8860b; }
.badge-danger { background: rgba(220,53,69,0.1); color: var(--danger); }
.badge-info { background: rgba(23,162,184,0.1); color: var(--info); }

/* Order status badge colors */
.badge-status-pending { background: rgba(255,152,0,0.12); color: #e65100; }
.badge-status-confirmed { background: rgba(33,150,243,0.12); color: #1565c0; }
.badge-status-preparing { background: rgba(156,39,176,0.12); color: #7b1fa2; }
.badge-status-ready { background: rgba(76,175,80,0.15); color: #2e7d32; }
.badge-status-dispatched { background: rgba(0,188,212,0.12); color: #00838f; }
.badge-status-delivered { background: rgba(40,167,69,0.12); color: #1b5e20; }
.badge-status-completed { background: rgba(40,167,69,0.12); color: #1b5e20; }
.badge-status-cancelled { background: rgba(244,67,54,0.12); color: #c62828; }
.badge-status-default { background: rgba(158,158,158,0.12); color: #616161; }

/* ---- Toggle Switch ---- */
.toggle-switch { position: relative; display: inline-flex; align-items: center; cursor: pointer; gap: 8px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-switch .toggle-track { position: relative; width: 44px; height: 24px; background: #ccc; border-radius: 12px; transition: background 0.25s ease; flex-shrink: 0; }
.toggle-switch .toggle-track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; background: #fff; border-radius: 50%; transition: transform 0.25s ease; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.toggle-switch input:checked + .toggle-track { background: var(--success); }
.toggle-switch input:checked + .toggle-track::after { transform: translateX(20px); }
.toggle-switch .toggle-label { font-size: 0.85rem; color: var(--text-medium); user-select: none; }

.status-pending { background: rgba(255,193,7,0.15); color: #b8860b; }
.status-confirmed { background: rgba(23,162,184,0.1); color: var(--info); }
.status-preparing { background: rgba(139,26,26,0.1); color: var(--primary); }
.status-ready { background: rgba(40,167,69,0.15); color: var(--success); }
.status-dispatched { background: rgba(23,162,184,0.15); color: var(--info); }
.status-delivered { background: rgba(40,167,69,0.1); color: var(--success); }
.status-cancelled { background: rgba(220,53,69,0.1); color: var(--danger); }

/* ---- Alerts / Toast ---- */
.alert { padding: 14px 20px; border-radius: var(--radius); margin-bottom: 16px; font-size: 0.9rem; }
.alert-success { background: rgba(40,167,69,0.1); color: var(--success); border-left: 4px solid var(--success); }
.alert-danger { background: rgba(220,53,69,0.1); color: var(--danger); border-left: 4px solid var(--danger); }
.alert-warning { background: rgba(255,193,7,0.1); color: #856404; border-left: 4px solid var(--warning); }
.alert-info { background: rgba(23,162,184,0.1); color: var(--info); border-left: 4px solid var(--info); }

.toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast {
    padding: 14px 20px; border-radius: var(--radius); color: white; font-size: 0.9rem;
    box-shadow: var(--shadow-lg); animation: slideIn 0.3s ease, fadeOut 0.5s ease 3.5s forwards;
    min-width: 280px; max-width: 400px;
}
.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
.toast-warning { background: #e67e22; }

@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; transform: translateX(100%); } }

/* ---- Modal ---- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 1000; display: none;
    align-items: center; justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal {
    background: white; border-radius: var(--radius-lg); max-width: 500px;
    width: 90%; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg);
}
.modal-header { padding: 20px; border-bottom: 1px solid var(--border-light); display: flex; justify-content: space-between; align-items: center; }
.modal-header h3 { margin: 0; }
.modal-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-muted); }
.modal-body { padding: 20px; }
.modal-footer { padding: 16px 20px; border-top: 1px solid var(--border-light); display: flex; justify-content: flex-end; gap: 10px; }

/* ---- Navigation ---- */
.navbar {
    background: var(--primary-dark); color: var(--text-light); padding: 0 20px;
    display: flex; align-items: center; justify-content: space-between;
    height: 64px; position: sticky; top: 0; z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.navbar-brand {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700;
    color: var(--secondary);
}
.navbar-brand img { height: 40px; width: 40px; border-radius: 50%; }
.navbar-nav { display: flex; align-items: center; gap: 4px; }
.navbar-nav a {
    color: var(--text-light); padding: 8px 14px; border-radius: var(--radius);
    font-size: 0.9rem; transition: var(--transition); opacity: 0.8;
}
.navbar-nav a:hover, .navbar-nav a.active { opacity: 1; background: rgba(255,255,255,0.1); color: var(--secondary); }
.navbar-right { display: flex; align-items: center; gap: 16px; }
.navbar-user { font-size: 0.85rem; opacity: 0.8; }
.navbar-toggle { display: none; background: none; border: none; color: var(--text-light); font-size: 1.5rem; cursor: pointer; }

@media (max-width: 768px) {
    .navbar-toggle { display: block; }
    .navbar-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--primary-dark); flex-direction: column; padding: 10px; }
    .navbar-nav.show { display: flex; }
}

/* ---- Sidebar (Staff Layouts) ---- */
.layout-staff { display: flex; min-height: 100vh; }
.sidebar {
    width: 250px; background: var(--primary-dark); color: var(--text-light);
    padding: 20px 0; display: flex; flex-direction: column; position: fixed;
    top: 0; bottom: 0; left: 0; z-index: 50; overflow-y: auto;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar-brand { padding: 0 20px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.sidebar-brand h3 { font-family: var(--font-heading); color: var(--secondary); font-size: 1.1rem; white-space: nowrap; overflow: hidden; transition: opacity 0.2s; }
.sidebar-brand small { color: rgba(255,255,255,0.5); font-size: 0.75rem; white-space: nowrap; overflow: hidden; transition: opacity 0.2s; }
.sidebar-collapse-btn {
    position: fixed; left: 236px; top: 28px;
    background: var(--primary-dark); border: 2px solid rgba(255,255,255,0.15); color: rgba(255,255,255,0.75);
    width: 28px; height: 28px; border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    padding: 0; z-index: 60; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 2px 0 8px rgba(0,0,0,0.2);
}
.sidebar-collapse-btn svg { transition: transform 0.3s; }
.sidebar-collapse-btn:hover { background: var(--secondary); color: var(--primary-dark); border-color: var(--secondary); transform: scale(1.1); }
.sidebar-is-collapsed .sidebar-collapse-btn { left: 50px; }
.sidebar-is-collapsed .sidebar-collapse-btn svg { transform: rotate(180deg); }
.sidebar-nav { flex: 1; padding: 16px 0; }
.sidebar-nav a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 20px; color: rgba(255,255,255,0.7);
    font-size: 0.9rem; transition: var(--transition); white-space: nowrap; overflow: hidden;
}
.sidebar-nav a:hover, .sidebar-nav a.active {
    color: var(--secondary); background: rgba(255,255,255,0.05);
    border-left: 3px solid var(--secondary);
}
.sidebar-nav a .nav-icon { width: 20px; text-align: center; flex-shrink: 0; }
.sidebar-nav a .nav-label { overflow: hidden; text-overflow: ellipsis; transition: opacity 0.2s; }
.nav-badge {
    margin-left: auto;
    background: var(--danger, #e74c3c);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 10px;
    padding: 0 6px;
    animation: badge-pulse 2s infinite;
    flex-shrink: 0;
}
@keyframes badge-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
.sidebar-footer { padding: 16px 20px; border-top: 1px solid rgba(255,255,255,0.1); overflow: hidden; white-space: nowrap; transition: opacity 0.2s; }
.sidebar-footer a { color: rgba(255,255,255,0.5); font-size: 0.85rem; }

/* Collapsed sidebar (desktop) */
.sidebar.collapsed { width: 64px; }
.sidebar.collapsed .sidebar-brand h3,
.sidebar.collapsed .sidebar-brand small { opacity: 0; width: 0; height: 0; overflow: hidden; }
.sidebar.collapsed .sidebar-brand { padding: 0 10px 20px; text-align: center; }
.sidebar.collapsed .sidebar-nav a { justify-content: center; padding: 12px 0; gap: 0; }
.sidebar.collapsed .sidebar-nav a .nav-label { opacity: 0; width: 0; overflow: hidden; position: absolute; }
.sidebar.collapsed .sidebar-nav a .nav-icon { width: auto; font-size: 1.2rem; }
.sidebar.collapsed .sidebar-nav a:hover, .sidebar.collapsed .sidebar-nav a.active { border-left-width: 3px; }
.sidebar.collapsed .nav-badge { position: absolute; top: 4px; right: 6px; min-width: 16px; height: 16px; line-height: 16px; font-size: 0.6rem; padding: 0 4px; }
.sidebar.collapsed .sidebar-nav a { position: relative; }
.sidebar.collapsed .sidebar-footer { opacity: 0; padding: 8px; height: 0; overflow: hidden; }

/* Sidebar tooltip on collapsed hover */
.sidebar.collapsed .sidebar-nav a[title]:hover::after {
    content: attr(title); position: absolute; left: 68px; top: 50%; transform: translateY(-50%);
    background: var(--primary-dark); color: #fff; padding: 6px 12px; border-radius: 6px;
    font-size: 0.82rem; white-space: nowrap; z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3); pointer-events: none;
}

.main-content { flex: 1; margin-left: 250px; padding: 20px; min-height: 100vh; transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.layout-staff.sidebar-is-collapsed .main-content { margin-left: 64px; }
.page-header { margin-bottom: 24px; }
.page-header h1 { font-size: 1.75rem; }
.page-header p { color: var(--text-muted); }

/* Prevent horizontal overflow on all screen sizes */
.main-content { overflow-x: hidden; box-sizing: border-box; max-width: calc(100vw - 250px); }
.layout-staff.sidebar-is-collapsed .main-content { max-width: calc(100vw - 64px); }

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); transition: transform 0.3s ease, width 0.3s ease; width: 250px !important; }
    .sidebar.show { transform: translateX(0); }
    .sidebar.collapsed { width: 250px !important; }
    .sidebar.collapsed .sidebar-brand h3,
    .sidebar.collapsed .sidebar-brand small { opacity: 1; width: auto; height: auto; }
    .sidebar.collapsed .sidebar-brand { padding: 0 20px 20px; justify-content: space-between; }
    .sidebar.collapsed .sidebar-nav a { justify-content: flex-start; padding: 10px 20px; gap: 10px; }
    .sidebar.collapsed .sidebar-nav a .nav-label { opacity: 1; width: auto; position: static; }
    .sidebar.collapsed .sidebar-footer { opacity: 1; padding: 16px 20px; height: auto; }
    .sidebar-collapse-btn { display: none; }
    .main-content { margin-left: 0 !important; }
}

/* ---- Stat Cards (Dashboard) ---- */
.stat-card {
    background: white; border-radius: var(--radius-lg); padding: 20px;
    box-shadow: var(--shadow); display: flex; align-items: center; gap: 16px;
}
.stat-icon {
    width: 50px; height: 50px; border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
}
.stat-icon.bg-primary { background: rgba(139,26,26,0.1); color: var(--primary); }
.stat-icon.bg-success { background: rgba(40,167,69,0.1); color: var(--success); }
.stat-icon.bg-warning { background: rgba(255,193,7,0.15); color: #b8860b; }
.stat-icon.bg-info { background: rgba(23,162,184,0.1); color: var(--info); }
.stat-info h4 { font-size: 1.5rem; font-family: var(--font-body); }
.stat-info p { font-size: 0.8rem; color: var(--text-muted); }

/* ---- Order Cards ---- */
.order-card {
    background: white; border-radius: var(--radius); padding: 16px;
    border-left: 4px solid var(--secondary); box-shadow: var(--shadow);
    margin-bottom: 12px; transition: var(--transition);
}
.order-card:hover { box-shadow: var(--shadow-lg); }
.order-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.order-id { font-size: 1.25rem; font-weight: 700; color: var(--primary); font-family: var(--font-heading); }
.order-time { font-size: 0.8rem; color: var(--text-muted); }
.order-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.order-items-list { font-size: 0.9rem; color: var(--text-medium); }
.order-total { font-weight: 700; color: var(--primary); margin-top: 8px; }
.order-actions { display: flex; gap: 8px; margin-top: 12px; }

/* Time urgency borders for kitchen */
.order-card.urgency-green { border-left-color: var(--success); }
.order-card.urgency-yellow { border-left-color: var(--warning); }
.order-card.urgency-red { border-left-color: var(--danger); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.8; } }

/* ---- Pagination ---- */
.pagination { display: flex; gap: 4px; justify-content: center; margin-top: 20px; }
.pagination a, .pagination span {
    padding: 8px 14px; border-radius: var(--radius); font-size: 0.9rem; color: var(--text-medium);
    border: 1px solid var(--border);
}
.pagination a:hover { background: var(--primary); color: white; border-color: var(--primary); }
.pagination .active { background: var(--primary); color: white; border-color: var(--primary); }

/* ---- Loading / Spinner ---- */
.spinner { display: inline-block; width: 24px; height: 24px; border: 3px solid rgba(0,0,0,0.1); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255,255,255,0.9); display: flex; align-items: center; justify-content: center; z-index: 9999; }

/* ---- Empty State ---- */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state .icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state h3 { color: var(--text-medium); margin-bottom: 8px; }

/* ---- Utility ---- */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.shadow { box-shadow: var(--shadow); }
.w-full { width: 100%; }
.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- Print ---- */
@media print {
    .no-print { display: none !important; }
    .sidebar, .navbar { display: none !important; }
    .main-content { margin: 0; padding: 0; }
    body { background: white; }
}
