/* ===== Ab3atly Restaurant Dashboard CSS ===== */
:root {
  --primary: #2B6CB0;
  --primary-dark: #1A4A7A;
  --primary-light: #4A9ADE;
  --primary-faded: #E8F0FE;
  --secondary: #E8963A;
  --secondary-dark: #C67A28;
  --secondary-faded: #FFF3E0;
  --bg: #F0F2F7;
  --surface: #FFFFFF;
  --text: #1A1A2E;
  --text-secondary: #6B7280;
  --text-light: #9CA3AF;
  --border: #E5E7EB;
  --success: #10B981;
  --success-light: #D1FAE5;
  --error: #EF4444;
  --error-light: #FEE2E2;
  --warning: #F59E0B;
  --warning-light: #FEF3C7;
  --info: #3B82F6;
  --info-light: #DBEAFE;
  --sidebar-width: 260px;
  --radius: 14px;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Cairo', 'Inter', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }

/* ===== Login ===== */
.login-container {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 60%, #0F2B4A 100%);
  padding: 20px;
}
.login-card {
  background: var(--surface); border-radius: 24px; padding: 48px 40px;
  width: 100%; max-width: 420px; box-shadow: var(--shadow-lg); animation: slideUp 0.5s ease;
}
.login-header { text-align: center; margin-bottom: 32px; }
.login-logo { font-size: 56px; margin-bottom: 8px; }
.login-header h1 { font-size: 32px; font-weight: 800; color: var(--primary); }
.login-header p { color: var(--text-secondary); font-size: 15px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border: none; border-radius: 10px; font-size: 14px;
  font-weight: 700; font-family: inherit; cursor: pointer; transition: all 0.2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--error); color: #fff; }
.btn-outline { background: transparent; border: 2px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-danger-outline { border-color: var(--error); color: var(--error); }
.btn-danger-outline:hover { background: var(--error); color: #fff; }
.btn-full { width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 8px; }

/* ===== Form ===== */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px; border: 2px solid var(--border); border-radius: 12px;
  font-size: 15px; font-family: inherit; color: var(--text); background: var(--bg); transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--primary); background: #fff; }
.form-row { display: flex; gap: 16px; }
.form-row .form-group { flex: 1; }

/* ===== Dashboard Layout ===== */
.dashboard-layout { display: flex; min-height: 100vh; }

/* ===== Sidebar ===== */
.sidebar {
  width: var(--sidebar-width); background: linear-gradient(180deg, var(--primary-dark) 0%, #0F2B4A 100%);
  color: #fff; display: flex; flex-direction: column;
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; transition: transform 0.3s ease;
}
.sidebar-header { padding: 24px 20px; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.1); }
.sidebar-logo { font-size: 40px; margin-bottom: 4px; }
.sidebar-header h2 { font-size: 22px; font-weight: 800; }
.sidebar-badge {
  display: inline-block; background: var(--secondary); color: #fff;
  padding: 2px 12px; border-radius: 20px; font-size: 11px; font-weight: 700; margin-top: 4px;
}
.sidebar-nav { flex: 1; padding: 16px 12px; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px;
  color: rgba(255,255,255,0.7); text-decoration: none; font-size: 15px; font-weight: 600;
  transition: all 0.2s; margin-bottom: 4px; position: relative;
}
.nav-item:hover { background: rgba(255,255,255,0.1); color: #fff; }
.nav-item.active { background: rgba(255,255,255,0.15); color: #fff; }
.nav-item i { width: 20px; text-align: center; font-size: 16px; }
.nav-badge {
  position: absolute; left: 12px; background: var(--error); color: #fff;
  width: 22px; height: 22px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700;
}
.sidebar-footer { padding: 16px 12px; border-top: 1px solid rgba(255,255,255,0.1); }

/* ===== Main Content ===== */
.main-content { flex: 1; margin-right: var(--sidebar-width); min-height: 100vh; }

/* ===== Topbar ===== */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface); padding: 16px 28px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.topbar-left { display: flex; align-items: center; gap: 16px; }
.topbar-left h1 { font-size: 22px; font-weight: 700; }
.topbar-right { display: flex; align-items: center; gap: 24px; }
.menu-toggle { display: none; background: none; border: none; font-size: 20px; cursor: pointer; color: var(--text); }

/* Store Toggle */
.toggle-switch { position: relative; width: 48px; height: 26px; display: inline-block; }
.toggle-switch input { display: none; }
.toggle-slider {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--error); border-radius: 26px; cursor: pointer; transition: 0.3s;
}
.toggle-slider::before {
  content: ''; position: absolute; width: 20px; height: 20px;
  background: #fff; border-radius: 50%; bottom: 3px; left: 3px; transition: 0.3s;
}
.toggle-switch input:checked + .toggle-slider { background: var(--success); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(22px); }
.toggle-switch.mini { width: 38px; height: 22px; }
.toggle-switch.mini .toggle-slider::before { width: 16px; height: 16px; }
.toggle-switch.mini input:checked + .toggle-slider::before { transform: translateX(16px); }

.store-status { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; }
.topbar-user { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.user-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary-faded); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}

/* ===== Page Content ===== */
.page-content { padding: 24px 28px; }
.page { display: none; }
.page.active { display: block; animation: fadeIn 0.3s ease; }

/* ===== Stats Grid ===== */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: var(--surface); border-radius: var(--radius); padding: 20px;
  display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow); transition: transform 0.2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.stat-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.stat-orders .stat-icon { background: var(--primary-faded); color: var(--primary); }
.stat-revenue .stat-icon { background: var(--success-light); color: var(--success); }
.stat-rating .stat-icon { background: var(--warning-light); color: var(--warning); }
.stat-pending .stat-icon { background: var(--error-light); color: var(--error); }
.stat-value { font-size: 24px; font-weight: 800; display: block; }
.stat-label { font-size: 13px; color: var(--text-secondary); }

/* ===== Card ===== */
.card {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  margin-bottom: 24px; overflow: hidden;
}
.card-header { padding: 18px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.card-header h3 { font-size: 17px; font-weight: 700; }
.card-body { padding: 24px; }
.cards-row { display: flex; gap: 24px; }
.flex-1 { flex: 1; }

/* ===== Table ===== */
.table-container { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { text-align: right; padding: 12px 16px; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--text-light); background: var(--bg); border-bottom: 2px solid var(--border); }
.data-table td { padding: 14px 16px; font-size: 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tr:hover { background: var(--bg); }
.order-id { font-weight: 700; color: var(--primary); font-size: 13px; }
.link { color: var(--primary); text-decoration: none; font-weight: 600; font-size: 14px; cursor: pointer; }

/* ===== Badges ===== */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.badge-warning { background: var(--warning-light); color: var(--warning); }
.badge-info { background: var(--info-light); color: var(--info); }
.badge-success { background: var(--success-light); color: var(--success); }
.badge-danger { background: var(--error-light); color: var(--error); }

/* Status Badges */
.status-badge { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.status-pending { background: var(--warning-light); color: #92400E; }
.status-confirmed { background: var(--info-light); color: var(--info); }
.status-assigned { background: #EDE9FE; color: #7C3AED; }
.status-preparing { background: #EDE9FE; color: #7C3AED; }
.status-prepared { background: #FEF3C7; color: #92400E; }
.status-ready { background: var(--success-light); color: #065F46; }
.status-handed_to_driver { background: #CFFAFE; color: #0E7490; }
.status-picked_up { background: #DBEAFE; color: #1D4ED8; }
.status-on_the_way { background: #DBEAFE; color: #1D4ED8; }
.status-delivered { background: var(--success-light); color: var(--success); }
.status-cancelled { background: var(--error-light); color: var(--error); }

/* ===== Popular Items ===== */
.popular-items { padding: 16px 24px; }
.popular-item { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.popular-rank {
  width: 28px; height: 28px; border-radius: 8px; background: var(--primary-faded); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px;
}
.popular-rank.gold { background: #FEF3C7; color: #92400E; }
.popular-rank.silver { background: #E5E7EB; color: #374151; }
.popular-rank.bronze { background: #FED7AA; color: #9A3412; }
.popular-name { flex: 0 0 100px; font-weight: 600; font-size: 14px; }
.popular-bar { flex: 1; height: 8px; background: var(--bg); border-radius: 8px; overflow: hidden; }
.popular-bar-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-light)); border-radius: 8px; }
.popular-count { font-weight: 700; font-size: 14px; color: var(--text-secondary); min-width: 40px; text-align: left; }

/* ===== Mini Chart ===== */
.chart-placeholder { padding: 16px 24px; }
.mini-chart { display: flex; justify-content: space-around; align-items: flex-end; height: 140px; padding-bottom: 8px; }
.chart-bar {
  width: 32px; background: linear-gradient(180deg, var(--primary-light), var(--primary));
  border-radius: 8px 8px 0 0; display: flex; flex-direction: column; align-items: center;
  justify-content: flex-end; padding-bottom: 8px; transition: all 0.3s; cursor: pointer; opacity: 0.6;
}
.chart-bar span { color: var(--text-light); font-size: 11px; font-weight: 600; margin-top: 8px; }
.chart-bar:hover, .chart-bar.active { opacity: 1; transform: scaleX(1.1); }
.chart-bar.active { background: linear-gradient(180deg, var(--secondary), var(--secondary-dark)); }
.chart-total { text-align: center; margin-top: 20px; }
.chart-total-value { display: block; font-size: 24px; font-weight: 800; color: var(--primary); }
.chart-total-label { font-size: 13px; color: var(--text-secondary); }

/* ===== Orders Grid ===== */
.page-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.tab-group { display: flex; gap: 6px; flex-wrap: wrap; }
.tab {
  padding: 8px 18px; border: 2px solid var(--border); border-radius: 10px; background: var(--surface);
  font-size: 13px; font-weight: 600; font-family: inherit; cursor: pointer; transition: all 0.2s; color: var(--text-secondary);
}
.tab:hover { border-color: var(--primary); color: var(--primary); }
.tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.orders-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.order-card {
  background: var(--surface); border-radius: var(--radius); padding: 18px;
  box-shadow: var(--shadow); border-right: 4px solid transparent; transition: all 0.2s;
}
.order-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.order-card.pending { border-right-color: var(--warning); }
.order-card.preparing { border-right-color: var(--info); }
.order-card.ready { border-right-color: var(--success); }
.order-card.delivered { border-right-color: var(--success); opacity: 0.7; }
.order-card.cancelled { border-right-color: var(--error); opacity: 0.5; }
.order-card.hidden { display: none; }
.order-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.order-card-customer { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.order-card-customer i { color: var(--primary); }
.order-time { margin-right: auto; font-size: 12px; color: var(--text-light); font-weight: 400; }
.order-card-items { background: var(--bg); border-radius: 10px; padding: 12px; margin-bottom: 12px; }
.order-item { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; }
.order-item span { font-weight: 700; color: var(--primary); }
.order-card-footer { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 14px; }
.order-total { font-size: 15px; }
.order-total strong { color: var(--primary); }
.order-payment { color: var(--text-light); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.order-card-actions { display: flex; gap: 8px; }

/* ===== Menu Grid ===== */
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.menu-card {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; position: relative; transition: all 0.2s;
}
.menu-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.menu-card.hidden { display: none; }
.menu-card.popular { border: 2px solid var(--secondary); }
.menu-popular-badge {
  position: absolute; top: 10px; right: 10px; background: var(--secondary); color: #fff;
  padding: 2px 10px; border-radius: 8px; font-size: 11px; font-weight: 700; z-index: 2;
}
.menu-card-image {
  height: 100px; display: flex; align-items: center; justify-content: center;
  font-size: 48px; background: linear-gradient(135deg, var(--bg), var(--primary-faded));
}
.menu-card-content { padding: 14px; }
.menu-card-content h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.menu-card-content p { font-size: 13px; color: var(--text-secondary); margin-bottom: 10px; }
.menu-card-footer { display: flex; justify-content: space-between; align-items: center; }
.menu-price { font-size: 18px; font-weight: 800; color: var(--primary); }
.menu-card-actions { display: flex; gap: 6px; padding: 0 14px 14px; }

/* ===== Reviews ===== */
.reviews-summary { text-align: center; padding: 32px; background: var(--surface); border-radius: var(--radius); margin-bottom: 24px; box-shadow: var(--shadow); }
.rating-big .rating-number { font-size: 56px; font-weight: 800; color: var(--primary); display: block; }
.rating-big .rating-stars { font-size: 24px; margin: 8px 0; }
.rating-big .rating-count { font-size: 15px; color: var(--text-secondary); }
.reviews-list { display: flex; flex-direction: column; gap: 12px; }
.review-card { background: var(--surface); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.review-user { display: flex; align-items: center; gap: 10px; }
.review-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--primary-faded); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.review-text { font-size: 14px; line-height: 1.7; color: var(--text-secondary); margin-bottom: 8px; }
.review-footer { display: flex; justify-content: space-between; align-items: center; }
.review-date { font-size: 12px; color: var(--text-light); }
.review-reply-box { margin-top: 12px; display: flex; gap: 8px; }
.review-reply-box input { flex: 1; padding: 8px 14px; border: 2px solid var(--border); border-radius: 10px; font-family: inherit; font-size: 13px; }
.review-reply-box input:focus { outline: none; border-color: var(--primary); }
.review-reply-sent { margin-top: 10px; padding: 10px 14px; background: var(--primary-faded); border-radius: 10px; font-size: 13px; color: var(--primary); border-right: 3px solid var(--primary); }

/* ===== Settings ===== */
.settings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 24px; }

/* ===== Modal ===== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000;
  display: none; align-items: center; justify-content: center;
  backdrop-filter: blur(4px); padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal-card {
  background: var(--surface); border-radius: 20px; width: 90%; max-width: 500px;
  padding: 0; box-shadow: var(--shadow-lg); animation: slideIn 0.3s ease-out;
  max-height: 80vh; display: flex; flex-direction: column;
}
.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; border-bottom: 1px solid var(--border); text-align: center;
}
.modal-header h2 { font-size: 18px; font-weight: 800; flex: 1; }
.modal-header .modal-icon { font-size: 48px; animation: ring 0.5s infinite; }
.modal-close-btn {
  background: none; border: none; font-size: 26px; cursor: pointer; color: var(--text-light);
  width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
}
.modal-close-btn:hover { background: var(--bg); color: var(--error); }
.modal-body { padding: 20px 24px; overflow-y: auto; flex: 1; text-align: right; background: var(--bg); }
.modal-actions { display: flex; flex-direction: column; gap: 10px; padding: 16px 24px; }

/* ===== Image Upload ===== */
.img-upload-zone {
  border: 2px dashed var(--border); border-radius: 14px;
  background: var(--surface); cursor: pointer; transition: all 0.2s;
  overflow: hidden; position: relative;
}
.img-upload-zone:hover { border-color: var(--primary); background: var(--primary-faded); }
.img-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 28px; color: var(--text-light);
}
.img-placeholder i { font-size: 36px; color: var(--primary-light); }
.img-placeholder span { font-size: 14px; font-weight: 600; color: var(--text-secondary); }
.img-placeholder small { font-size: 11px; color: var(--text-light); }
.img-preview { width: 100%; height: 180px; object-fit: cover; display: block; }
.img-remove-btn {
  position: absolute; bottom: 8px; left: 8px; background: var(--error); color: #fff;
  border: none; border-radius: 8px; padding: 6px 12px; font-size: 12px; font-weight: 600;
  cursor: pointer; font-family: inherit; display: flex; align-items: center; gap: 4px;
}
.img-remove-btn:hover { background: #dc2626; }
.menu-card-image img { width: 100%; height: 100px; object-fit: cover; }
.menu-extras { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.menu-extra-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 600;
  background: rgba(59, 130, 246, 0.1); color: #3b82f6;
}
.menu-extra-badge.addon { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.menu-extra-badge i { font-size: 10px; }

/* Menu Status Badges */
.menu-status-badge {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  padding: 2px 10px; border-radius: 8px; font-size: 11px; font-weight: 700;
}
.menu-status-badge.approved { background: #dcfce7; color: #16a34a; }
.menu-status-badge.rejected { background: #fee2e2; color: #dc2626; }

/* Rejection reason on card */
.menu-reject-reason {
  display: flex; align-items: flex-start; gap: 6px;
  padding: 8px 10px; margin-top: 6px; border-radius: 8px;
  background: #fef2f2; color: #dc2626; font-size: 11px; line-height: 1.4;
}
.menu-reject-reason i { margin-top: 2px; flex-shrink: 0; }

/* Rejected card styling */
.menu-card.rejected { border: 1px solid #fecaca; }
.menu-card.approved { border: 1px solid #bbf7d0; }
.review-notice {
  display: flex; align-items: center; gap: 8px; padding: 12px; margin-top: 8px;
  background: var(--info-light); border-radius: 10px; font-size: 13px; color: var(--info);
}
.review-notice i { font-size: 16px; }
.menu-pending-badge {
  position: absolute; top: 10px; left: 10px; background: var(--warning);
  color: #fff; padding: 2px 10px; border-radius: 8px; font-size: 11px; font-weight: 700; z-index: 2;
}

/* ===== Dynamic Sections (Sizes / Add-ons) ===== */
.dynamic-section {
  border: 1px solid var(--border); border-radius: 12px; padding: 16px;
  background: var(--surface); margin-top: 8px;
}
.dynamic-section-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px;
}
.dynamic-section-header h4 {
  margin: 0; font-size: 14px; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.dynamic-section-header h4 i { color: var(--primary); font-size: 16px; }
.dynamic-section-hint {
  font-size: 11px; color: var(--text-light); margin-bottom: 10px;
}
.dynamic-rows { display: flex; flex-direction: column; gap: 8px; }
.dynamic-row {
  display: flex; align-items: center; gap: 8px;
  animation: slideInRow 0.2s ease;
}
.dynamic-row input {
  flex: 1; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px;
  font-family: inherit; font-size: 13px; background: #fff; transition: border 0.2s;
}
.dynamic-row input:focus { border-color: var(--primary); outline: none; }
.dynamic-row .price-input { max-width: 100px; text-align: center; }
.dynamic-row .remove-row-btn {
  background: none; border: none; color: var(--error); cursor: pointer;
  font-size: 16px; padding: 4px 8px; border-radius: 6px; transition: background 0.2s;
  flex-shrink: 0;
}
.dynamic-row .remove-row-btn:hover { background: rgba(239, 68, 68, 0.1); }
.dynamic-row .row-label { font-size: 11px; color: var(--text-light); white-space: nowrap; }
@keyframes slideInRow { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* ===== Restaurant Image Upload ===== */
.card-full-width { grid-column: 1 / -1; }
.card-header { display: flex; align-items: center; justify-content: space-between; }
.rest-img-section { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.rest-img-preview {
  width: 280px; height: 180px; border-radius: 16px; overflow: hidden; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.rest-img-placeholder { display: flex; flex-direction: column; align-items: center; gap: 8px; color: #fff; }
.rest-img-placeholder i { font-size: 48px; opacity: 0.8; }
.rest-img-placeholder span { font-size: 16px; font-weight: 700; }
.rest-img-display { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; }
.rest-img-controls { flex: 1; display: flex; flex-direction: column; gap: 12px; min-width: 200px; }
.rest-img-hint { font-size: 12px; color: var(--text-light); display: flex; align-items: center; gap: 6px; }
.rest-img-hint i { color: var(--text-light); }
.rest-img-pending {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(245, 158, 11, 0.9); color: #fff; text-align: center;
  padding: 6px; font-size: 12px; font-weight: 700;
}

/* ===== Toast ===== */
.toast-container {
  position: fixed; bottom: 24px; left: 24px; z-index: 2000;
  display: flex; flex-direction: column-reverse; gap: 10px;
}
.toast {
  background: var(--surface); border-radius: 12px; padding: 14px 20px;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px;
  animation: slideIn 0.3s ease; min-width: 280px; border-right: 4px solid var(--success);
}
.toast.error { border-right-color: var(--error); }
.toast.info { border-right-color: var(--info); }
.toast-icon { font-size: 20px; }
.toast:not(.error):not(.info) .toast-icon { color: var(--success); }
.toast.error .toast-icon { color: var(--error); }
.toast.info .toast-icon { color: var(--info); }
.toast-msg { font-size: 14px; font-weight: 600; flex: 1; }
.toast-dismiss { background: none; border: none; cursor: pointer; color: var(--text-light); font-size: 16px; }

/* ===== Animations ===== */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideIn { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes ring { 0% { transform: rotate(0); } 25% { transform: rotate(10deg); } 50% { transform: rotate(-10deg); } 75% { transform: rotate(10deg); } 100% { transform: rotate(0); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-row { flex-direction: column; }
  .settings-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .sidebar { transform: translateX(100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-right: 0; }
  .menu-toggle { display: block; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .topbar-user span { display: none; }
  .page-content { padding: 16px; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .orders-grid { grid-template-columns: 1fr; }
}
