/* =========================================================
   ZANDYA ADMIN — THEME UPGRADE
========================================================= */

:root {
  --z-green: #10291e;
  --z-green-soft: #1f513a;
  --z-orange: #e38b25;
  --z-mint: #79f2c0;
  --z-line: #e4e9e5;
  --z-shadow: 0 1px 2px rgba(16, 41, 30, .04), 0 8px 24px rgba(16, 41, 30, .06);
}

body {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(227, 139, 37, .07), transparent),
    #f4f7f5;
}

/* SIDEBAR */

.sidebar {
  background: linear-gradient(180deg, #0c2118 0%, #10291e 55%, #123123 100%);
  border-right: 1px solid rgba(255, 255, 255, .05);
  overflow-y: auto;
}

.nav-link {
  position: relative;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.nav-link:hover {
  transform: translateX(2px);
}

.nav-link.active {
  background: linear-gradient(90deg, var(--z-green-soft), rgba(31, 81, 58, .35));
  box-shadow: inset 3px 0 var(--z-orange);
}

.nav-badge {
  margin-left: auto;
  background: var(--z-orange);
  color: #1a1206;
  font-style: normal;
  font-size: .62rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 999px;
}

/* TOPBAR */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--z-line);
}

/* CARDS */

.stat-card,
.panel,
.order-kpi {
  box-shadow: var(--z-shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}

.stat-card:hover,
.order-kpi:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(16, 41, 30, .1);
}

.stat-icon {
  background: linear-gradient(135deg, #edf6ef, #dff0e6);
  font-size: 1.05rem;
}

.welcome h2 {
  background: linear-gradient(90deg, #10291e, #1f7a50);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* BUTTONS */

.mb-primary-btn,
.mb-danger-btn,
.mb-ghost-btn {
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 9px 15px;
  font-size: .74rem;
  font-weight: 800;
  cursor: pointer;
  transition: filter .15s ease, transform .15s ease;
}

.mb-primary-btn { background: #1f7a50; color: #fff; }
.mb-danger-btn  { background: #fdecec; color: #a32121; border-color: #f6d4d4; }
.mb-ghost-btn   { background: #fff; color: #17251e; border-color: var(--z-line); }

.mb-primary-btn:hover,
.mb-danger-btn:hover,
.mb-ghost-btn:hover { filter: brightness(.97); transform: translateY(-1px); }

.mb-primary-btn:disabled,
.mb-danger-btn:disabled { opacity: .6; cursor: default; }

/* MBIKOOYE SECTION */

.mb-admin-stats {
  grid-template-columns: repeat(5, 1fr);
}

.mb-admin-tabs {
  display: flex;
  gap: 6px;
  margin: 0 0 18px;
  border-bottom: 1px solid var(--z-line);
  flex-wrap: wrap;
}

.mb-admin-tab {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 11px 4px 13px;
  margin-right: 20px;
  color: #718078;
  font-size: .82rem;
  font-weight: 800;
  cursor: pointer;
}

.mb-admin-tab.active {
  color: #10291e;
  border-color: var(--z-orange);
}

.mb-moderation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  padding: 20px;
}

.mb-mod-card {
  border: 1px solid var(--z-line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}

.mb-mod-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(16, 41, 30, .12);
}

.mb-mod-thumb {
  position: relative;
  height: 160px;
  background: #f3f6f4;
}

.mb-mod-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mb-mod-noimage {
  height: 100%;
  display: grid;
  place-items: center;
  color: #9aa8a0;
  font-size: .72rem;
}

.mb-mod-thumb .mb-pill {
  position: absolute;
  top: 10px;
  left: 10px;
}

.mb-mod-body {
  padding: 13px 15px;
  flex: 1;
}

.mb-mod-body strong {
  display: block;
  font-size: .87rem;
  margin-bottom: 5px;
}

.mb-mod-meta {
  display: block;
  color: #718078;
  font-size: .7rem;
}

.mb-mod-price {
  margin-top: 9px;
  font-weight: 900;
  font-size: .95rem;
}

.mb-mod-price em {
  font-style: normal;
  font-weight: 700;
  font-size: .64rem;
  color: #718078;
  margin-left: 6px;
  text-transform: uppercase;
}

.mb-mod-actions {
  display: flex;
  gap: 8px;
  padding: 12px 15px;
  border-top: 1px solid #eef2ef;
  flex-wrap: wrap;
}

.mb-pill {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: .62rem;
  font-weight: 900;
  text-transform: capitalize;
  background: #eef2ef;
  color: #59675f;
}

.mb-pill-pending,
.mb-pill-pending_payment { background: #fff4df; color: #a35d00; }
.mb-pill-active,
.mb-pill-paid,
.mb-pill-delivered { background: #e8f6ed; color: #17653e; }
.mb-pill-shipped,
.mb-pill-sold { background: #e8f1ff; color: #245b9c; }
.mb-pill-rejected,
.mb-pill-removed,
.mb-pill-cancelled { background: #fdecec; color: #a32121; }

.mb-detail-gallery {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.mb-detail-gallery img {
  width: 190px;
  height: 190px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
}

.mb-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .76rem;
  font-weight: 700;
  color: #59675f;
}

.mb-flag {
  display: inline-block;
  margin-left: 6px;
  background: #fdecec;
  color: #a32121;
  font-style: normal;
  font-size: .6rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 999px;
}

.mb-order-status {
  border: 1px solid var(--z-line);
  border-radius: 8px;
  padding: 7px 9px;
  font-size: .72rem;
  background: #fff;
}

.care-source-tag {
  display: inline-block;
  margin-left: 6px;
  font-size: .58rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 999px;
  background: #eafaf2;
  color: #12724c;
}

@media (max-width: 1100px) {
  .mb-admin-stats { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
  .mb-admin-stats { grid-template-columns: 1fr 1fr; }
}
