/* ===== FRESH SABJI HUB — ADMIN PANEL ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal: #00ACC1;
  --teal-dark: #00838F;
  --teal-light: #E0F7FA;
  --navy: #0D1B2A;
  --navy-mid: #1A2E44;
  --navy-card: #1E3A5F;
  --purple: #7C4DFF;
  --purple-light: #EDE7F6;
  --orange: #FF6D00;
  --orange-light: #FFF3E0;
  --green: #00C853;
  --green-light: #E8F5E9;
  --red: #FF1744;
  --white: #FFFFFF;
  --text-white: rgba(255,255,255,0.95);
  --text-muted: rgba(255,255,255,0.55);
  --bg-dark: #0A1628;
  --card-bg: rgba(255,255,255,0.06);
  --card-border: rgba(255,255,255,0.10);
  --shadow-teal: 0 4px 20px rgba(0,172,193,0.25);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.3);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --font-main: 'Plus Jakarta Sans', sans-serif;
  --font-display: 'Bricolage Grotesque', sans-serif;
}

body {
  background: #0A1628;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  font-family: var(--font-main);
}

/* Phone Shell */
.phone-shell {
  width: 390px;
  height: 844px;
  background: var(--bg-dark);
  border-radius: 48px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 10px #111, 0 0 0 12px #222;
  overflow: hidden;
  position: relative;
}

.app-screen {
  width: 100%;
  height: 100%;
  background: var(--bg-dark);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
}
.app-screen::-webkit-scrollbar { display: none; }

/* Status Bar */
.status-bar {
  background: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px 8px;
  flex-shrink: 0;
}
.time { color: white; font-size: 13px; font-weight: 700; }
.status-icons { display: flex; gap: 6px; align-items: center; }

/* Admin Header */
.admin-header {
  background: linear-gradient(135deg, #0D1B2A 0%, #1A2E44 100%);
  padding: 16px 20px 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.admin-badge {
  display: inline-block;
  background: rgba(0,172,193,0.2);
  color: var(--teal);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(0,172,193,0.3);
  margin-bottom: 6px;
}
.header-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.2;
}
.header-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.notif-btn {
  width: 38px;
  height: 38px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
}
.notif-dot {
  position: absolute;
  top: 7px; right: 7px;
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
  border: 1.5px solid var(--navy);
}
.admin-avatar {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: white;
  box-shadow: var(--shadow-teal);
}

/* Overview Card */
.overview-section {
  padding: 16px 20px 8px;
  flex-shrink: 0;
}
.overview-card {
  background: linear-gradient(135deg, #0D2137 0%, #0E2D4A 50%, #0A2240 100%);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid rgba(0,172,193,0.2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
}
.overview-card::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(0,172,193,0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.overview-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}
.overview-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.3px;
}
.overview-date {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}
.live-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(0,200,83,0.15);
  border: 1px solid rgba(0,200,83,0.3);
  color: #00C853;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 20px;
}
.live-dot {
  width: 6px; height: 6px;
  background: #00C853;
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.overview-metrics {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 18px;
}
.metric-block {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}
.metric-divider {
  width: 1px;
  height: 50px;
  background: rgba(255,255,255,0.1);
  margin: 0 16px;
}
.metric-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sales-icon { background: rgba(0,188,212,0.15); border: 1px solid rgba(0,188,212,0.25); }
.orders-icon { background: rgba(124,77,255,0.15); border: 1px solid rgba(124,77,255,0.25); }
.metric-value {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.1;
}
.metric-label {
  display: block;
  font-size: 10.5px;
  color: var(--text-muted);
  margin-top: 2px;
}
.metric-trend {
  display: block;
  font-size: 10px;
  font-weight: 700;
  margin-top: 3px;
}
.metric-trend.up { color: #00C853; }
.metric-trend.down { color: var(--red); }

/* Mini Chart */
.mini-chart { position: relative; z-index: 1; }
.chart-label {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 500;
}
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 50px;
}
.bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
  justify-content: flex-end;
}
.bar {
  width: 100%;
  background: rgba(0,172,193,0.35);
  border-radius: 4px 4px 0 0;
  transition: height 0.5s ease;
}
.bar.active { background: linear-gradient(180deg, var(--teal), var(--teal-dark)); box-shadow: 0 0 10px rgba(0,172,193,0.4); }
.bar.dim { background: rgba(255,255,255,0.08); }
.bar-wrap span {
  font-size: 9px;
  color: var(--text-muted);
  font-weight: 600;
}

/* Quick Stats */
.quick-stats {
  display: flex;
  gap: 8px;
  padding: 12px 20px;
  flex-shrink: 0;
}
.stat-pill {
  flex: 1;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
}
.stat-num.teal { color: var(--teal); }
.stat-num.purple { color: #9C6FFF; }
.stat-num.green { color: #00C853; }
.stat-num.orange { color: #FF9100; }
.stat-lbl {
  font-size: 9.5px;
  color: var(--text-muted);
  font-weight: 600;
}

/* Section Header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px 10px;
  flex-shrink: 0;
}
.section-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-white);
}
.see-all {
  font-size: 12px;
  font-weight: 600;
  color: var(--teal);
  cursor: pointer;
}

/* Actions Grid */
.actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 20px 16px;
  flex-shrink: 0;
}
.action-card {
  border-radius: var(--radius-md);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.2s ease;
  position: relative;
  overflow: hidden;
}
.action-card::after {
  content: '';
  position: absolute;
  top: -20px; right: -20px;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.action-card:active { transform: scale(0.97); }
.user-card { background: linear-gradient(135deg, #006064, #00838F); }
.order-card { background: linear-gradient(135deg, #4527A0, #6A1B9A); }
.inventory-card { background: linear-gradient(135deg, #E65100, #BF360C); }
.report-card { background: linear-gradient(135deg, #1A237E, #283593); }

.action-icon-wrap {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.action-title {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  color: white;
  line-height: 1.2;
}
.action-desc {
  font-size: 10.5px;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}
.action-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}
.action-count {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.12);
  padding: 2px 8px;
  border-radius: 20px;
}
.action-count.warn { color: #FFD54F; background: rgba(255,213,79,0.15); }
.action-arrow {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  font-weight: 700;
}

/* Orders List */
.orders-list {
  padding: 0 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}
.order-row {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.order-avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}
.teal-av { background: linear-gradient(135deg, #00ACC1, #00838F); }
.purple-av { background: linear-gradient(135deg, #7C4DFF, #5E35B1); }
.orange-av { background: linear-gradient(135deg, #FF6D00, #E65100); }
.order-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.order-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-white);
}
.order-items {
  font-size: 10.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.order-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.order-amount {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-white);
  font-family: var(--font-display);
}
.order-status {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}
.order-status.delivered { background: rgba(0,200,83,0.15); color: #00C853; }
.order-status.transit { background: rgba(0,172,193,0.15); color: var(--teal); }
.order-status.pending-s { background: rgba(255,109,0,0.15); color: #FF9100; }

/* Bottom Nav */
.bottom-nav {
  background: #0D1B2A;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 12px 8px 22px;
  border-top: 1px solid rgba(255,255,255,0.07);
  position: sticky;
  bottom: 0;
  flex-shrink: 0;
  margin-top: auto;
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 4px 14px;
  border-radius: 12px;
}
.nav-item span {
  font-size: 10px;
  font-weight: 600;
  color: #607D8B;
}
.nav-item.active span { color: var(--teal); }