/* ==========================================================================
   فراخ آل عمر | ADMIN DASHBOARD STYLES
   ========================================================================== */

/* ============================================================
   ADMIN SETTINGS BUTTON IN HEADER
   ============================================================ */
.admin-settings-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: #94a3b8;
  border: 1.5px solid #334155;
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 18px;
  position: relative;
  overflow: hidden;
}
.admin-settings-btn:hover {
  background: linear-gradient(135deg, #C8102E 0%, #A00C24 100%);
  color: #fff;
  border-color: #C8102E;
  transform: rotate(60deg) scale(1.1);
  box-shadow: 0 0 20px rgba(200, 16, 46, 0.4);
}

/* ============================================================
   ADMIN LOGIN MODAL
   ============================================================ */
#admin-login-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 16px;
  direction: rtl;
}
#admin-login-modal.active {
  display: flex;
}

.admin-login-container {
  background: #fff;
  border-radius: 24px;
  padding: 40px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 32px 80px rgba(0,0,0,0.35);
  position: relative;
  animation: adminModalIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes adminModalIn {
  from { opacity: 0; transform: scale(0.85) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.admin-login-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #C8102E 0%, #A00C24 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px rgba(200, 16, 46, 0.35);
}

.admin-login-title {
  font-size: 22px;
  font-weight: 900;
  color: #1e293b;
  text-align: center;
  margin-bottom: 6px;
}

.admin-login-sub {
  font-size: 13px;
  color: #64748b;
  text-align: center;
  margin-bottom: 28px;
}

.admin-login-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 15px;
  font-family: 'Cairo', sans-serif;
  direction: ltr;
  text-align: center;
  letter-spacing: 4px;
  outline: none;
  transition: border-color 0.2s;
  margin-bottom: 12px;
  box-sizing: border-box;
}
.admin-login-input:focus {
  border-color: #C8102E;
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}

.admin-login-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #dc2626;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}

.admin-login-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #C8102E 0%, #A00C24 100%);
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  font-family: 'Cairo', sans-serif;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 10px;
}
.admin-login-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.admin-login-btn.shake-error { animation: shakeBtn 0.4s ease; }

@keyframes shakeBtn {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}

.admin-login-cancel {
  width: 100%;
  padding: 10px;
  background: #f1f5f9;
  color: #475569;
  font-weight: 700;
  font-size: 13px;
  font-family: 'Cairo', sans-serif;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s;
}
.admin-login-cancel:hover { background: #e2e8f0; }

/* ============================================================
   ADMIN DASHBOARD OVERLAY
   ============================================================ */
#admin-dashboard {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 8500;
  background: #f0f4f8;
  direction: rtl;
  flex-direction: column;
  overflow: hidden;
}
#admin-dashboard.active { display: flex; }

/* Admin Top Bar */
.admin-topbar {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 64px;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  gap: 16px;
}

.admin-topbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-topbar-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #D4AF37;
  object-fit: cover;
}

.admin-topbar-title {
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
}

.admin-topbar-subtitle {
  font-size: 10px;
  color: #D4AF37;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.admin-close-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.admin-close-btn:hover {
  background: #C8102E;
  border-color: #C8102E;
}

/* Admin Layout */
.admin-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* Sidebar Navigation */
.admin-sidebar {
  width: 220px;
  background: #1e293b;
  flex-shrink: 0;
  overflow-y: auto;
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  color: #94a3b8;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 14px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-align: right;
  width: 100%;
  border-right: 3px solid transparent;
}
.admin-nav-btn:hover {
  background: rgba(255,255,255,0.06);
  color: #e2e8f0;
}
.admin-nav-btn.active {
  background: rgba(200, 16, 46, 0.15);
  color: #fff;
  border-right-color: #C8102E;
}
.admin-nav-icon { font-size: 18px; flex-shrink: 0; }

/* Main Content Area */
.admin-main {
  flex: 1;
  overflow-y: auto;
  padding: 28px;
  position: relative;
}

/* Loading Overlay */
#admin-loader {
  position: absolute;
  inset: 0;
  background: rgba(240, 244, 248, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  z-index: 10;
  display: none;
}

.admin-loader-spinner {
  width: 52px;
  height: 52px;
  border: 5px solid #e2e8f0;
  border-top-color: #C8102E;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.admin-loader-text {
  font-size: 15px;
  font-weight: 700;
  color: #475569;
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.admin-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.admin-section-header h2 {
  font-size: 22px;
  font-weight: 900;
  color: #1e293b;
}

/* ============================================================
   ADMIN BUTTONS
   ============================================================ */
.admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 10px;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 13px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
}
.admin-btn:hover { background: #f8fafc; border-color: #cbd5e1; }

.admin-btn-primary {
  background: linear-gradient(135deg, #C8102E 0%, #A00C24 100%);
  color: #fff;
  border-color: transparent;
}
.admin-btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }

.admin-btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border-color: transparent;
}
.admin-btn-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  border-color: transparent;
}
.admin-btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  border-color: transparent;
}
.admin-btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 8px; }
.admin-btn-lg { padding: 14px 28px; font-size: 15px; }
.admin-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }

/* ============================================================
   PRODUCTS GRID
   ============================================================ */
.admin-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.admin-product-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  border: 1.5px solid #e2e8f0;
  transition: all 0.25s;
}
.admin-product-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.12); transform: translateY(-3px); }
.admin-product-card.inactive { opacity: 0.55; filter: grayscale(0.5); }

.admin-product-img-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f1f5f9;
}

.admin-product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.admin-product-card:hover .admin-product-img { transform: scale(1.05); }

.admin-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
}

.admin-product-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.25s;
}
.admin-product-card:hover .admin-product-overlay { opacity: 1; }

.apo-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}
.apo-btn:hover { transform: scale(1.15); }
.apo-btn.danger { background: rgba(239, 68, 68, 0.9); }

.admin-product-info {
  padding: 14px;
}
.ap-name { font-size: 15px; font-weight: 800; color: #1e293b; margin-bottom: 4px; }
.ap-sub { font-size: 11px; color: #64748b; line-height: 1.4; margin-bottom: 8px; }
.ap-price { font-size: 14px; font-weight: 900; color: #C8102E; margin-bottom: 10px; }
.ap-actions { display: flex; gap: 8px; }

/* ============================================================
   PRODUCT MODAL
   ============================================================ */
#admin-product-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
  direction: rtl;
}
#admin-product-modal.active { display: flex; }

.admin-modal-container {
  background: #fff;
  border-radius: 20px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,0.25);
  animation: adminModalIn 0.3s ease;
}

.admin-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1.5px solid #e2e8f0;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
  border-radius: 20px 20px 0 0;
}
.admin-modal-header h3 { font-size: 18px; font-weight: 900; color: #1e293b; }
.admin-modal-close { font-size: 22px; color: #94a3b8; cursor: pointer; background: none; border: none; padding: 4px 8px; border-radius: 6px; }
.admin-modal-close:hover { background: #f1f5f9; color: #475569; }

.admin-modal-body {
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 600px) { .admin-modal-body { grid-template-columns: 1fr; } }

.admin-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1.5px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 0 0 20px 20px;
}

/* Image section */
.apm-img-section { display: flex; flex-direction: column; gap: 12px; }
.apm-label { font-size: 12px; font-weight: 800; color: #475569; display: block; margin-bottom: 6px; }
.apm-img-preview {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: #f1f5f9;
  border: 2px dashed #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.apm-img-preview img { width: 100%; height: 100%; object-fit: cover; }
.apm-img-placeholder { text-align: center; font-size: 24px; color: #94a3b8; line-height: 1.8; font-family: 'Cairo', sans-serif; font-size: 12px; }
.apm-img-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.apm-upload-progress { background: #f1f5f9; border-radius: 8px; padding: 10px 12px; }
.apm-progress-bar { height: 6px; background: #e2e8f0; border-radius: 3px; overflow: hidden; margin-bottom: 6px; }
.apm-progress-fill { height: 100%; background: linear-gradient(90deg, #C8102E, #D4AF37); border-radius: 3px; transition: width 0.3s; }
#apm-upload-status { font-size: 11px; color: #475569; font-weight: 700; }

/* Fields */
.apm-fields { display: flex; flex-direction: column; gap: 14px; }
.apm-field { display: flex; flex-direction: column; }
.apm-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.apm-input {
  padding: 10px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  font-family: 'Cairo', sans-serif;
  color: #1e293b;
  outline: none;
  transition: border-color 0.2s;
  background: #f8fafc;
}
.apm-input:focus { border-color: #C8102E; background: #fff; box-shadow: 0 0 0 3px rgba(200,16,46,0.08); }
.apm-textarea { min-height: 80px; resize: vertical; }

/* Toggle */
.apm-toggle-row { display: flex; align-items: center; gap: 10px; }
.apm-toggle { position: relative; display: inline-block; width: 48px; height: 26px; flex-shrink: 0; }
.apm-toggle input { opacity: 0; width: 0; height: 0; }
.apm-toggle-slider {
  position: absolute; inset: 0;
  background: #cbd5e1; border-radius: 13px; cursor: pointer; transition: 0.3s;
}
.apm-toggle-slider:before {
  content: ''; position: absolute; height: 20px; width: 20px;
  left: 3px; bottom: 3px; background: #fff; border-radius: 50%;
  transition: 0.3s; box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.apm-toggle input:checked + .apm-toggle-slider { background: #10b981; }
.apm-toggle input:checked + .apm-toggle-slider:before { transform: translateX(22px); }

/* ============================================================
   SETTINGS SECTION
   ============================================================ */
.admin-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.admin-setting-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.setting-label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #475569;
  margin-bottom: 8px;
}

.setting-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  font-family: 'Cairo', sans-serif;
  color: #1e293b;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
  background: #f8fafc;
}
.setting-input:focus { border-color: #C8102E; background: #fff; }
.setting-textarea { min-height: 72px; resize: vertical; }

.admin-settings-save-bar {
  position: sticky;
  bottom: 0;
  background: #f0f4f8;
  padding: 16px 0;
  border-top: 1.5px solid #e2e8f0;
  text-align: center;
}

/* ============================================================
   ORDERS TABLE
   ============================================================ */
.admin-orders-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.order-stat {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.order-stat-num { font-size: 26px; font-weight: 900; color: #C8102E; }
.order-stat-label { font-size: 12px; font-weight: 700; color: #64748b; margin-top: 4px; }

.admin-orders-table-wrap { overflow-x: auto; background: #fff; border-radius: 14px; border: 1.5px solid #e2e8f0; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.admin-orders-table { width: 100%; border-collapse: collapse; }
.admin-orders-table th {
  background: #f8fafc;
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 800;
  color: #475569;
  text-align: right;
  border-bottom: 1.5px solid #e2e8f0;
  white-space: nowrap;
}
.admin-orders-table td {
  padding: 12px 14px;
  font-size: 13px;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
}
.admin-orders-table tr:last-child td { border-bottom: none; }
.admin-orders-table tr:hover td { background: #f8fafc; }

.order-name { font-weight: 700; color: #1e293b; }
.order-total { font-weight: 900; color: #C8102E; }
.order-date { font-size: 11px; color: #94a3b8; white-space: nowrap; }

.order-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.status-pending { background: #fef3c7; color: #92400e; }
.status-confirmed { background: #d1fae5; color: #065f46; }
.status-delivered { background: #dbeafe; color: #1e3a8a; }
.status-cancelled { background: #fee2e2; color: #7f1d1d; }

.admin-status-select {
  padding: 5px 8px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 11px;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  cursor: pointer;
  background: #f8fafc;
  outline: none;
}
.admin-status-select:focus { border-color: #C8102E; }

/* ============================================================
   EMPTY & ERROR STATES
   ============================================================ */
.admin-empty-state, .admin-error-state, .admin-loading-state {
  text-align: center;
  padding: 60px 24px;
  color: #94a3b8;
  font-size: 15px;
  font-weight: 700;
  grid-column: 1 / -1;
  background: #fff;
  border-radius: 14px;
  border: 1.5px dashed #e2e8f0;
}
.admin-error-state { color: #ef4444; border-color: #fca5a5; background: #fef2f2; }

/* ============================================================
   DB SETUP GUIDE
   ============================================================ */
.admin-setup-guide {
  max-width: 600px;
  margin: 40px auto;
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.setup-icon { font-size: 52px; margin-bottom: 16px; }
.admin-setup-guide h2 { font-size: 20px; font-weight: 900; color: #1e293b; margin-bottom: 12px; }
.admin-setup-guide p { font-size: 14px; color: #475569; line-height: 1.7; margin-bottom: 28px; }
.setup-steps { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; text-align: right; }
.setup-step { display: flex; align-items: flex-start; gap: 12px; background: #f8fafc; border-radius: 10px; padding: 12px; }
.step-num { width: 26px; height: 26px; background: #C8102E; color: #fff; font-weight: 900; font-size: 13px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.setup-step span { font-size: 13px; color: #334155; line-height: 1.6; }

/* Coming Soon */
.admin-coming-soon {
  max-width: 480px;
  margin: 60px auto;
  text-align: center;
  background: #fff;
  border-radius: 20px;
  padding: 48px;
  border: 1.5px dashed #e2e8f0;
}
.cs-icon { font-size: 56px; margin-bottom: 16px; }
.admin-coming-soon h3 { font-size: 22px; font-weight: 900; color: #1e293b; margin-bottom: 10px; }
.admin-coming-soon p { font-size: 14px; color: #64748b; line-height: 1.8; margin-bottom: 24px; }

/* ============================================================
   ADMIN NOTIFICATION TOASTS
   ============================================================ */
.admin-notification {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  padding: 14px 24px;
  border-radius: 14px;
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  font-weight: 800;
  z-index: 99999;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  white-space: nowrap;
  pointer-events: none;
}
.admin-notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.admin-notif-success { background: #10b981; color: #fff; }
.admin-notif-error { background: #ef4444; color: #fff; }
.admin-notif-info { background: #3b82f6; color: #fff; }

/* ============================================================
   EXECUTIVE DASHBOARD KPI CARDS & ANALYTICS VISUALS
   ============================================================ */
.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.kpi-card {
  border-radius: 16px;
  padding: 16px 20px;
  border-width: 1px;
  border-style: solid;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.kpi-icon {
  font-size: 24px;
  margin-bottom: 8px;
}
.kpi-value {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
}
.kpi-label {
  font-size: 12px;
  font-weight: 700;
  opacity: 0.85;
  margin-top: 4px;
}

/* Order Status Badges & Action Buttons */
.admin-btn-xs {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s ease;
}
.admin-btn-xs:hover {
  background: #e2e8f0;
}
.admin-btn-xs.active-status {
  background: #C8102E;
  color: #fff;
  border-color: #C8102E;
  box-shadow: 0 2px 8px rgba(200, 16, 46, 0.3);
}

.status-pending { background: #fef3c7; color: #92400e; }
.status-confirmed { background: #dcfce7; color: #166534; }
.status-preparing { background: #ffedd5; color: #9a3412; }
.status-out_for_delivery { background: #dbeafe; color: #1e40af; }
.status-delivered { background: #d1fae5; color: #065f46; }
.status-cancelled { background: #fee2e2; color: #991b1b; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .admin-sidebar { width: 60px; padding: 16px 0; }
  .admin-nav-btn span:not(.admin-nav-icon) { display: none; }
  .admin-nav-btn { justify-content: center; padding: 14px; }
  .admin-main { padding: 16px; }
  .admin-topbar-subtitle { display: none; }
  .admin-orders-stats { grid-template-columns: 1fr; }
  .admin-settings-grid { grid-template-columns: 1fr; }
  .admin-kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

