/* Admin console — Swiggy-style operations dashboard (extends admin.css) */
:root {
  --ap-orange: #fc8019;
  --ap-orange-d: #ea580c;
  --ap-sidebar-deep: #0b1220;
  --ap-soft: rgba(252, 128, 25, 0.12);
}

body.ad-console.ad-body {
  background: #f1f5f9;
}

body.ad-console .ad-sidebar {
  background: linear-gradient(180deg, var(--ap-sidebar-deep) 0%, #111827 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

body.ad-console .ad-brand span {
  background: linear-gradient(145deg, var(--ap-orange) 0%, var(--ap-orange-d) 100%);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(252, 128, 25, 0.3);
}

body.ad-console .ad-nav a {
  border-radius: 8px;
  margin: 1px 8px;
  font-weight: 600;
  font-size: 0.875rem;
}
body.ad-console .ad-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
body.ad-console .ad-nav a.active {
  background: var(--ap-soft);
  border-left-color: var(--ap-orange) !important;
  color: #fff;
}

body.ad-console .ad-nav-section {
  color: #64748b;
  font-weight: 700;
  letter-spacing: 0.06em;
}

body.ad-console .ad-topbar {
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}
body.ad-console .ad-topbar h1 {
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
}

body.ad-console .ad-content {
  padding: 1.5rem 1.75rem 2.5rem;
  max-width: 1440px;
}

body.ad-console .ad-card {
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

body.ad-console .ad-btn-primary {
  background: linear-gradient(145deg, var(--ap-orange), var(--ap-orange-d));
  border: none;
}
body.ad-console .ad-btn-outline:hover {
  background: #fff7ed;
  border-color: var(--ap-orange);
  color: var(--ap-orange-d);
}

body.ad-console .ad-stat {
  border-radius: 14px;
}
body.ad-console .ad-stat .value.accent {
  color: var(--ap-orange-d);
}

/* Page chrome */
.ap-page-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.ap-page-head h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
}
.ap-page-head p {
  margin: 0.35rem 0 0;
  color: #64748b;
  font-size: 0.9rem;
  max-width: 640px;
  line-height: 1.5;
}
.ap-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.ap-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
  margin-bottom: 1.25rem;
  padding: 1rem 1.15rem;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.06);
}
.ap-toolbar .ad-form-group {
  margin: 0;
  flex: 1 1 160px;
  min-width: 140px;
}

.ap-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin: 0 0 0.75rem;
}

.ap-badge {
  display: inline-block;
  min-width: 1.25rem;
  padding: 0 6px;
  height: 20px;
  line-height: 20px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  text-align: center;
  vertical-align: middle;
}

.ap-pill {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ap-pill--ok {
  background: #ecfdf5;
  color: #047857;
}
.ap-pill--off {
  background: #fef2f2;
  color: #b91c1c;
}
.ap-pill--warn {
  background: #fffbeb;
  color: #b45309;
}
.ap-pill--muted {
  background: #f1f5f9;
  color: #475569;
}
.ap-pill--veg {
  background: #e8f5e9;
  color: #2e7d32;
}
.ap-pill--non {
  background: #ffebee;
  color: #c62828;
}

.ap-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: #e2e8f0;
}

.ap-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 960px) {
  .ap-split {
    grid-template-columns: 1fr;
  }
}

.ap-sidebar-foot {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  color: #94a3b8;
}
.ap-sidebar-foot a {
  color: #94a3b8;
}
.ap-sidebar-foot a:hover {
  color: #e2e8f0;
}

/* Order detail */
.ap-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.ap-detail-box {
  padding: 1rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  font-size: 0.9rem;
}
.ap-detail-box strong {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.ap-line-items {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}
.ap-line-item {
  display: flex;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.9rem;
}
.ap-line-item:last-child {
  border-bottom: none;
}

/* Login */
.ap-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(145deg, #0f172a 0%, #1e3a5f 45%, #431407 100%);
}
.ap-login-box {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 18px;
  padding: 2.25rem;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}
.ap-login-box h1 {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.ap-login-sub {
  color: #64748b;
  font-size: 0.9rem;
  margin: 0 0 1.5rem;
}
.ap-login-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.ap-login-logo span {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--ap-orange), var(--ap-orange-d));
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

body.ad-console .ad-table th {
  background: #f8fafc;
  color: #64748b;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
