/* GOLDEN WILLOW - Admin Control Panel Stylesheet */

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

/* ===== THEME SYSTEM ===== */

/* Default: Dark Theme */
:root,
[data-theme="dark"] {
  --admin-bg: #0f1117;
  --admin-sidebar-bg: #161922;
  --admin-card-bg: #1c202e;
  --admin-border: #282d3f;
  --admin-text: #e2e8f0;
  --admin-muted: #94a3b8;
  --admin-gold: #d4af37;
  --admin-accent: #3b82f6;
  --admin-success: #10b981;
  --admin-warning: #f59e0b;
  --admin-danger: #ef4444;
  --theme-switcher-bg: rgba(255,255,255,0.06);
  --theme-switcher-hover: rgba(255,255,255,0.12);
}

/* Light Theme */
[data-theme="light"] {
  --admin-bg: #f0f4f8;
  --admin-sidebar-bg: #ffffff;
  --admin-card-bg: #ffffff;
  --admin-border: #d1dce8;
  --admin-text: #1a202c;
  --admin-muted: #64748b;
  --admin-gold: #b8860b;
  --admin-accent: #2563eb;
  --admin-success: #059669;
  --admin-warning: #d97706;
  --admin-danger: #dc2626;
  --theme-switcher-bg: rgba(0,0,0,0.05);
  --theme-switcher-hover: rgba(0,0,0,0.10);
}

/* Green Theme */
[data-theme="green"] {
  --admin-bg: #051a0f;
  --admin-sidebar-bg: #07200f;
  --admin-card-bg: #0c2a18;
  --admin-border: #164d28;
  --admin-text: #d4f5e0;
  --admin-muted: #6bb880;
  --admin-gold: #4ade80;
  --admin-accent: #22d3ee;
  --admin-success: #16a34a;
  --admin-warning: #ca8a04;
  --admin-danger: #ef4444;
  --theme-switcher-bg: rgba(255,255,255,0.06);
  --theme-switcher-hover: rgba(255,255,255,0.12);
}



*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.admin-body {
  font-family: 'Inter', sans-serif;
  background-color: var(--admin-bg);
  color: var(--admin-text);
  display: flex;
  min-height: 100vh;
}

/* Sidebar Layout */
.admin-sidebar {
  width: 260px;
  background: var(--admin-sidebar-bg);
  border-right: 1px solid var(--admin-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
}

.sidebar-header {
  height: 70px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  border-bottom: 1px solid var(--admin-border);
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--admin-gold);
}

.sidebar-menu {
  list-style: none;
  padding: 20px 12px;
  flex: 1;
  overflow-y: auto;
}

.sidebar-menu li {
  margin-bottom: 4px;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--admin-muted);
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sidebar-menu a:hover, .sidebar-menu a.active {
  background: rgba(212, 175, 55, 0.12);
  color: var(--admin-gold);
}

.sidebar-menu a i {
  font-size: 1.1rem;
  width: 20px;
}

/* Main Content Area */
.admin-main {
  margin-left: 260px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.admin-header {
  height: 70px;
  background: var(--admin-sidebar-bg);
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
}

.admin-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-content {
  padding: 30px;
  flex: 1;
}

/* Metrics / Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: var(--admin-card-bg);
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.15);
  color: var(--admin-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.stat-info h4 {
  font-size: 0.85rem;
  color: var(--admin-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.stat-info .value {
  font-size: 1.5rem;
  font-weight: 700;
}

/* Admin Tables */
.admin-card {
  background: var(--admin-card-bg);
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th, .admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--admin-border);
}

.admin-table th {
  background: rgba(255, 255, 255, 0.02);
  color: var(--admin-muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* Badges */
.badge-status {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-active, .badge-paid, .badge-delivered {
  background: rgba(16, 185, 129, 0.15);
  color: var(--admin-success);
}

.badge-pending, .badge-processing {
  background: rgba(245, 158, 11, 0.15);
  color: var(--admin-warning);
}

.badge-inactive, .badge-failed, .badge-cancelled {
  background: rgba(239, 68, 68, 0.15);
  color: var(--admin-danger);
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--admin-text);
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  background: var(--admin-bg);
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  color: var(--admin-text);
  font-size: 0.95rem;
  outline: none;
}

.form-control:focus {
  border-color: var(--admin-gold);
}

/* ── Utility Helpers ───────────────── */
.text-gold  { color: var(--admin-gold) !important; }
.me-1 { margin-right:  4px; }
.me-2 { margin-right:  8px; }
.me-3 { margin-right: 12px; }
.ms-1 { margin-left:   4px; }
.ms-2 { margin-left:   8px; }
.ms-3 { margin-left:  12px; }

/* ── Base btn class for admin forms ─ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════
   ADMIN CARD LIST DESIGN SYSTEM
═══════════════════════════════════════════════════════ */

/* Grid container for cards */
.admin-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 20px;
}

.admin-card-grid.cols-2 {
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
}

.admin-card-grid.cols-3 {
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}

/* Base Card Style */
.admin-list-card {
  background: var(--admin-card-bg);
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.admin-list-card:hover {
  border-color: rgba(212, 175, 55, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.admin-list-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.6), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.admin-list-card:hover::before {
  opacity: 1;
}

/* Card Header */
.list-card-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.list-card-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: var(--admin-bg);
  border: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.list-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.list-card-thumb i {
  font-size: 1.4rem;
  color: var(--admin-gold);
}

.list-card-main {
  flex: 1;
  min-width: 0;
}

.list-card-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--admin-text);
  line-height: 1.3;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-card-sku {
  font-family: monospace;
  font-size: 0.78rem;
  color: var(--admin-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
}

/* Card Metadata Rows */
.list-card-body {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.list-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
}

.list-meta-label {
  color: var(--admin-muted);
}

.list-meta-value {
  font-weight: 600;
  color: var(--admin-text);
}

.list-price-tag {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--admin-gold);
}

/* Card Action Footer */
.list-card-footer {
  border-top: 1px solid var(--admin-border);
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.card-btn-outline {
  background: transparent;
  border-color: var(--admin-border);
  color: var(--admin-text);
}

.card-btn-outline:hover {
  border-color: var(--admin-gold);
  color: var(--admin-gold);
  background: rgba(212, 175, 55, 0.08);
}

.card-btn-gold {
  background: var(--admin-gold);
  color: #000;
}

.card-btn-gold:hover {
  background: #e6c34e;
}

/* Order Specific Cards */
.order-number-badge {
  font-family: monospace;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--admin-gold);
  background: rgba(212, 175, 55, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  display: inline-block;
}

.avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  color: var(--admin-gold);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Coupon Ticket Style Card */
.coupon-ticket {
  border-left: 4px solid var(--admin-gold);
  background: linear-gradient(135deg, var(--admin-card-bg) 0%, rgba(212, 175, 55, 0.04) 100%);
}

.coupon-code-pill {
  font-family: monospace;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--admin-gold);
  background: rgba(212, 175, 55, 0.12);
  border: 1px dashed rgba(212, 175, 55, 0.4);
  padding: 6px 12px;
  border-radius: 6px;
  display: inline-block;
}

/* Horizontal Orders List Card (One Order Card per Row) */
.admin-orders-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-order-row-card {
  background: var(--admin-card-bg);
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-order-row-card:hover {
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

.order-col-id {
  flex: 0 0 160px;
}

.order-col-customer {
  flex: 1 1 240px;
  min-width: 200px;
}

.order-col-summary {
  flex: 0 0 210px;
}

.order-col-actions {
  flex: 0 0 210px;
}

@media (max-width: 992px) {
  .admin-order-row-card {
    flex-wrap: wrap;
    gap: 16px;
  }
  .order-col-id { flex: 1 1 45%; }
  .order-col-customer { flex: 1 1 45%; }
  .order-col-summary { flex: 1 1 45%; }
  .order-col-actions { flex: 1 1 45%; }
}

@media (max-width: 640px) {
  .admin-order-row-card {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .order-col-id, .order-col-customer, .order-col-summary, .order-col-actions {
    flex: 1 1 100%;
    width: 100%;
  }
}

/* New Order Label for Today's Orders */
.badge-new-order {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
  vertical-align: middle;
}

.pulse-dot-green {
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
  display: inline-block;
  animation: dot-pulse 1.5s infinite;
}

@keyframes dot-pulse {
  0% { transform: scale(0.85); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.5; }
  100% { transform: scale(0.85); opacity: 1; }
}

/* Horizontal Product Row Card (One Card per Row) */
.admin-products-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-product-row-card {
  border: 1px solid var(--admin-border);
  background: var(--admin-card-bg);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-product-row-card:hover {
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

.prod-thumb-img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--admin-border);
  background: #18181b;
  flex-shrink: 0;
}

.prod-col-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 200px;
  min-width: 160px;
}

.prod-col-pricing {
  flex: 0 0 130px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.prod-col-stock {
  flex: 0 0 110px;
}

.prod-col-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .admin-product-row-card {
    flex-wrap: wrap;
    gap: 14px;
  }
  .prod-col-info { flex: 1 1 100%; }
  .prod-col-pricing { flex: 1 1 45%; }
  .prod-col-stock { flex: 1 1 45%; }
  .prod-col-actions { flex: 1 1 100%; justify-content: flex-start; }
}

/* Horizontal Customer Row Card (One Card per Row) */
.admin-customers-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-customer-row-card {
  background: var(--admin-card-bg);
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-customer-row-card:hover {
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

.cust-col-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 240px;
  min-width: 180px;
}

.cust-col-contact {
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cust-col-metrics {
  flex: 0 0 180px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cust-col-actions {
  flex: 0 0 160px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 900px) {
  .admin-customer-row-card {
    flex-wrap: wrap;
    gap: 14px;
  }
  .cust-col-identity { flex: 1 1 100%; }
  .cust-col-contact { flex: 1 1 45%; }
  .cust-col-metrics { flex: 1 1 45%; }
  .cust-col-actions { flex: 1 1 100%; justify-content: flex-start; }
}




/* ===== THEME SWITCHER BUTTON GROUP ===== */
.theme-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--theme-switcher-bg);
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  padding: 4px;
}

.theme-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: var(--admin-muted);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.theme-btn:hover {
  background: var(--theme-switcher-hover);
  color: var(--admin-text);
}

.theme-btn.active {
  background: var(--admin-gold);
  color: #000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.theme-btn .theme-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.theme-dot-dark  { background: #1c202e; border: 1.5px solid #4a5568; }
.theme-dot-light { background: #ffffff; border: 1.5px solid #94a3b8; }
.theme-dot-green { background: #4ade80; border: 1.5px solid #16a34a; }

/* ===== LIGHT THEME - Extra Overrides for contrast ===== */
[data-theme="light"] body.admin-body {
  background-color: var(--admin-bg);
  color: var(--admin-text);
}

[data-theme="light"] .admin-sidebar {
  box-shadow: 2px 0 12px rgba(0,0,0,0.08);
}

[data-theme="light"] .sidebar-menu a:hover,
[data-theme="light"] .sidebar-menu a.active {
  background: rgba(184, 134, 11, 0.10);
}

[data-theme="light"] .admin-header {
  box-shadow: 0 1px 8px rgba(0,0,0,0.07);
}

[data-theme="light"] .admin-card {
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

[data-theme="light"] .form-control {
  background: #f8fafc;
  color: #1a202c;
  border-color: #cbd5e1;
}

[data-theme="light"] .form-control:focus {
  border-color: #b8860b;
  background: #fff;
}

[data-theme="light"] .admin-order-row-card,
[data-theme="light"] .admin-product-row-card,
[data-theme="light"] .admin-customer-row-card {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* ===== GREEN THEME - Extra Overrides ===== */
[data-theme="green"] .sidebar-menu a:hover,
[data-theme="green"] .sidebar-menu a.active {
  background: rgba(74, 222, 128, 0.12);
}

[data-theme="green"] .admin-card {
  box-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

[data-theme="green"] .badge-new-order {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}


/* =====================================================
   MOBILE RESPONSIVE — ADMIN PANEL
   Full mobile-first responsive system for all screens
   ===================================================== */

/* ── Hamburger Button (hidden on desktop) ── */
.hamburger-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 8px;
  color: var(--admin-gold);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.hamburger-btn:hover {
  background: rgba(212, 175, 55, 0.22);
}

/* ── Sidebar Close Button (hidden on desktop) ── */
.sidebar-close-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 6px;
  color: var(--admin-danger);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: auto;
  flex-shrink: 0;
}

.sidebar-close-btn:hover {
  background: rgba(239, 68, 68, 0.25);
}

/* ── Mobile Overlay ── */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 99;
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.overlay-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ── Admin Header Left Grouping ── */
.admin-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

/* ── Admin User Info Classes ── */
.admin-user-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--admin-gold);
  white-space: nowrap;
}

.admin-logout-link {
  color: var(--admin-danger);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

/* ══════════════════════════════════════════════
   TABLET BREAKPOINT — 768px to 1024px
   ══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .admin-sidebar {
    width: 220px;
  }
  .admin-main {
    margin-left: 220px;
  }
  .admin-header {
    padding: 0 20px;
  }
  .admin-content {
    padding: 20px;
  }
  .theme-label {
    display: none;
  }
  .theme-btn {
    padding: 6px 8px;
  }
  .admin-name-text {
    display: none;
  }
}

/* ══════════════════════════════════════════════
   MOBILE BREAKPOINT — up to 768px
   ══════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Show hamburger, hide sidebar by default */
  .hamburger-btn {
    display: flex;
  }

  /* Sidebar becomes a slide-over drawer */
  .admin-sidebar {
    width: 280px;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 200;
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.5);
  }

  .admin-sidebar.sidebar-open {
    transform: translateX(0);
  }

  /* Show close button inside sidebar on mobile */
  .sidebar-close-btn {
    display: flex;
  }

  /* Overlay is always in DOM, pointer-events controls interactability */

  /* Main area takes full width */
  .admin-main {
    margin-left: 0;
    width: 100%;
  }

  /* Header adjustments */
  .admin-header {
    padding: 0 14px;
    height: 60px;
    gap: 8px;
  }

  .admin-title {
    font-size: 1.05rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
  }

  .admin-user {
    gap: 8px;
    flex-shrink: 0;
  }

  /* Theme switcher: dots only on mobile */
  .theme-label {
    display: none;
  }

  .theme-btn {
    padding: 5px 7px;
  }

  /* Hide admin name text on mobile */
  .admin-name-text {
    display: none;
  }

  /* Content padding */
  .admin-content {
    padding: 14px;
  }

  /* Stats grid — 2 columns on mobile */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
  }

  .stat-card {
    padding: 14px;
    gap: 10px;
  }

  .stat-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    flex-shrink: 0;
  }

  .stat-info .value {
    font-size: 1.2rem;
  }

  .stat-info h4 {
    font-size: 0.75rem;
  }

  /* Admin cards */
  .admin-card {
    padding: 16px;
  }

  .card-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  /* Admin card grids */
  .admin-card-grid,
  .admin-card-grid.cols-2,
  .admin-card-grid.cols-3 {
    grid-template-columns: 1fr;
  }

  /* Order row cards */
  .admin-order-row-card {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    gap: 12px;
  }

  .order-col-id,
  .order-col-customer,
  .order-col-summary,
  .order-col-actions {
    flex: 1 1 100%;
    width: 100%;
    min-width: unset;
  }

  .order-col-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  /* Product row cards */
  .admin-product-row-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px;
    gap: 10px;
  }

  .prod-col-info {
    flex: 1 1 100%;
    width: 100%;
  }

  .prod-col-pricing,
  .prod-col-stock {
    flex: 1 1 45%;
  }

  .prod-col-actions {
    flex: 1 1 100%;
    justify-content: flex-start;
    width: 100%;
  }

  /* Customer row cards */
  .admin-customer-row-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px;
    gap: 12px;
  }

  .cust-col-identity,
  .cust-col-contact,
  .cust-col-metrics,
  .cust-col-actions {
    flex: 1 1 100%;
    width: 100%;
    min-width: unset;
  }

  .cust-col-actions {
    justify-content: flex-start;
  }

  /* Table responsive */
  .admin-table th,
  .admin-table td {
    padding: 10px 12px;
    font-size: 0.82rem;
  }

  /* Form adjustments */
  .form-control {
    font-size: 0.92rem;
  }

  /* Btn tweaks */
  .btn {
    padding: 9px 16px;
    font-size: 0.85rem;
  }

  .card-btn {
    padding: 6px 10px;
    font-size: 0.78rem;
  }
}

/* ══════════════════════════════════════════════
   SMALL MOBILE — up to 480px
   ══════════════════════════════════════════════ */
@media (max-width: 480px) {

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .stat-card {
    padding: 12px;
  }

  .admin-title {
    max-width: 120px;
    font-size: 0.95rem;
  }

  .admin-content {
    padding: 10px;
  }

  .admin-card {
    padding: 14px;
  }

  /* Hide logout text, show only icon on tiny screens */
  .logout-text {
    display: none;
  }

  .admin-user {
    gap: 6px;
  }

  .theme-switcher {
    padding: 3px;
    gap: 2px;
  }

  .theme-btn {
    padding: 5px 6px;
  }

  .theme-dot {
    width: 9px;
    height: 9px;
  }

  .order-number-badge {
    font-size: 0.82rem;
  }

  .avatar-circle {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
}
