/* ============================================================
   admin.css — NETAGOBO SHOPPING v7.2
   Tema escuro profissional para o painel administrativo
   Cores: bg #0d1117 | cards #161b22 | accent #fbc02d
   ============================================================ */

/* ── VARIÁVEIS ─────────────────────────────────────────────── */
:root {
  --adm-bg:        #0d1117;
  --adm-card:      #161b22;
  --adm-card2:     #1c2128;
  --adm-border:    #30363d;
  --adm-txt:       #e6edf3;
  --adm-txt2:      #8b949e;
  --adm-txt3:      #6e7681;
  --adm-accent:    #fbc02d;
  --adm-accent-dk: #c49000;
  --adm-accent-lt: rgba(251,192,45,0.12);
  --adm-purple:    #8b5cf6;
  --adm-blue:      #3b82f6;
  --adm-green:     #22c55e;
  --adm-cyan:      #06b6d4;
  --adm-red:       #ef4444;
  --adm-orange:    #f97316;
  --adm-sidebar-w: 230px;
  --adm-topbar-h:  64px;
  --adm-radius:    10px;
  --adm-shadow:    0 2px 8px rgba(0,0,0,0.4);
}

/* ── RESET DENTRO DO ADMIN ─────────────────────────────────── */
#page-admin * {
  box-sizing: border-box;
}

/* ── PÁGINA ADMIN ──────────────────────────────────────────── */
#page-admin {
  background: var(--adm-bg) !important;
  min-height: 100vh;
  padding: 0 !important;
  font-family: 'Inter', sans-serif;
}

/* ── LAYOUT PRINCIPAL ──────────────────────────────────────── */
.adm-wrap {
  display: flex;
  min-height: 100vh;
  background: var(--adm-bg);
  position: relative;
}

/* ══════════════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════════════ */
.adm-sidebar {
  width: var(--adm-sidebar-w);
  min-height: 100vh;
  background: var(--adm-card);
  border-right: 1px solid var(--adm-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 200;
  transition: transform 0.25s ease;
  overflow-y: auto;
}

.adm-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 199;
}

/* Logo */
.adm-sb-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 16px 16px;
  border-bottom: 1px solid var(--adm-border);
  flex-shrink: 0;
}

.adm-sb-brand {
  display: flex;
  flex-direction: column;
}

.adm-sb-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--adm-accent);
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.adm-sb-sub {
  font-size: 9px;
  color: var(--adm-txt3);
  letter-spacing: 1px;
  margin-top: 2px;
}

/* Group label */
.adm-sb-group-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--adm-txt3);
  letter-spacing: 1.2px;
  padding: 16px 16px 6px;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* Nav */
.adm-sb-nav {
  flex: 1;
  padding: 4px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.adm-sb-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--adm-txt2);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  position: relative;
  white-space: nowrap;
  user-select: none;
}

.adm-sb-link i {
  width: 18px;
  text-align: center;
  font-size: 14px;
  flex-shrink: 0;
}

.adm-sb-link:hover {
  background: rgba(255,255,255,0.04);
  color: var(--adm-txt);
}

.adm-sb-link.active {
  background: var(--adm-accent-lt);
  color: var(--adm-accent);
  font-weight: 600;
}

.adm-sb-link.active i {
  color: var(--adm-accent);
}

/* Badge no menu */
.adm-sb-badge {
  background: var(--adm-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  margin-left: auto;
}

/* Botão sair */
.adm-sb-exit {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  margin: 10px;
  border-radius: 8px;
  background: rgba(239,68,68,0.1);
  color: var(--adm-red);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(239,68,68,0.25);
  cursor: pointer;
  transition: background 0.15s;
  flex-shrink: 0;
}

.adm-sb-exit:hover {
  background: rgba(239,68,68,0.2);
}

/* ══════════════════════════════════════════════════
   MAIN CONTENT
══════════════════════════════════════════════════ */
.adm-main {
  flex: 1;
  margin-left: var(--adm-sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--adm-bg);
}

/* ══════════════════════════════════════════════════
   TOP BAR
══════════════════════════════════════════════════ */
.adm-topbar {
  height: var(--adm-topbar-h);
  background: var(--adm-card);
  border-bottom: 1px solid var(--adm-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
}

.adm-topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.adm-burger {
  display: none;
  background: none;
  border: none;
  color: var(--adm-txt2);
  font-size: 18px;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
}

.adm-burger:hover { color: var(--adm-txt); }

.adm-page-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--adm-txt);
  margin: 0;
}

.adm-page-sub {
  font-size: 12px;
  color: var(--adm-txt3);
  margin: 0;
}

.adm-topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.adm-date-range {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--adm-card2);
  border: 1px solid var(--adm-border);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 13px;
  color: var(--adm-txt2);
  cursor: pointer;
  transition: border-color 0.15s;
}

.adm-date-range:hover { border-color: var(--adm-accent); color: var(--adm-txt); }
.adm-date-range i { font-size: 12px; }

.adm-topbar-icon {
  position: relative;
  background: var(--adm-card2);
  border: 1px solid var(--adm-border);
  border-radius: 8px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--adm-txt2);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.adm-topbar-icon:hover { border-color: var(--adm-accent); color: var(--adm-accent); }

.adm-notif-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--adm-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

.adm-profile-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.15s;
}

.adm-profile-wrap:hover { background: var(--adm-card2); }

.adm-profile-avatar {
  width: 36px;
  height: 36px;
  background: var(--adm-accent-lt);
  border: 2px solid var(--adm-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--adm-accent);
  font-size: 15px;
}

.adm-profile-info {
  display: flex;
  flex-direction: column;
}

.adm-profile-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--adm-txt);
  line-height: 1.2;
}

.adm-profile-role {
  font-size: 11px;
  color: var(--adm-txt3);
}

.adm-profile-arrow {
  color: var(--adm-txt3);
  font-size: 10px;
}

/* Notif panel */
.adm-notif-panel {
  position: absolute;
  top: calc(var(--adm-topbar-h) + 6px);
  right: 80px;
  width: 320px;
  background: var(--adm-card);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  box-shadow: var(--adm-shadow);
  z-index: 300;
}

.adm-notif-panel.hidden { display: none; }

.adm-notif-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--adm-border);
  font-size: 14px;
  font-weight: 600;
  color: var(--adm-txt);
}

.adm-notif-clear {
  background: none;
  border: none;
  color: var(--adm-txt3);
  font-size: 12px;
  cursor: pointer;
}

.adm-notif-clear:hover { color: var(--adm-red); }

.adm-notif-empty {
  padding: 32px;
  text-align: center;
  color: var(--adm-txt3);
  font-size: 13px;
}

.adm-notif-empty i { font-size: 24px; display: block; margin-bottom: 8px; }

/* ══════════════════════════════════════════════════
   CONTEÚDO / TABS
══════════════════════════════════════════════════ */
.adm-content {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}

.adm-tab {
  display: none;
}

.adm-tab.active {
  display: block;
  animation: admFadeIn 0.2s ease;
}

@keyframes admFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Tab header */
.adm-tab-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.adm-tab-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--adm-txt);
  margin: 0;
}

.adm-tab-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════
   KPI CARDS
══════════════════════════════════════════════════ */
.adm-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.adm-kpi {
  background: var(--adm-card);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  padding: 18px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color 0.2s, transform 0.15s;
}

.adm-kpi:hover { border-color: var(--adm-txt3); transform: translateY(-1px); }

.adm-kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.adm-kpi--purple .adm-kpi-icon { background: rgba(139,92,246,0.15); color: var(--adm-purple); }
.adm-kpi--blue   .adm-kpi-icon { background: rgba(59,130,246,0.15);  color: var(--adm-blue);   }
.adm-kpi--yellow .adm-kpi-icon { background: rgba(251,192,45,0.15);  color: var(--adm-accent); }
.adm-kpi--green  .adm-kpi-icon { background: rgba(34,197,94,0.15);   color: var(--adm-green);  }
.adm-kpi--cyan   .adm-kpi-icon { background: rgba(6,182,212,0.15);   color: var(--adm-cyan);   }
.adm-kpi--gold   .adm-kpi-icon { background: rgba(251,192,45,0.15);  color: #f59e0b;           }

.adm-kpi-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.adm-kpi-label {
  font-size: 11px;
  color: var(--adm-txt3);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.adm-kpi-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--adm-txt);
  line-height: 1.2;
  white-space: nowrap;
}

.adm-kpi-delta {
  font-size: 11px;
  font-weight: 600;
  margin-top: 2px;
}

.adm-kpi-up   { color: var(--adm-green); }
.adm-kpi-down { color: var(--adm-red);   }

/* ══════════════════════════════════════════════════
   CHARTS
══════════════════════════════════════════════════ */
.adm-charts-row {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.adm-chart-card {
  background: var(--adm-card);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  padding: 20px;
}

.adm-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.adm-chart-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--adm-txt);
}

/* Donut chart layout */
.adm-donut-wrap {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.adm-donut-wrap canvas {
  max-width: 160px;
  max-height: 160px;
}

.adm-donut-legend {
  flex: 1;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.adm-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--adm-txt2);
}

.adm-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.adm-legend-label { flex: 1; }
.adm-legend-count { font-weight: 600; color: var(--adm-txt); }
.adm-legend-pct   { color: var(--adm-txt3); min-width: 36px; text-align: right; }

/* Line chart */
.adm-line-wrap {
  position: relative;
  height: 180px;
}

.adm-line-wrap canvas { height: 100% !important; }

/* ══════════════════════════════════════════════════
   DASHBOARD BOTTOM
══════════════════════════════════════════════════ */
.adm-dash-bottom {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 16px;
}

.adm-dash-table-card,
.adm-dash-side-card {
  background: var(--adm-card);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  overflow: hidden;
}

.adm-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--adm-border);
}

.adm-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--adm-txt);
}

.adm-link-btn {
  background: none;
  border: none;
  color: var(--adm-accent);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s;
}

.adm-link-btn:hover { background: var(--adm-accent-lt); }

/* Pending side panel items */
.adm-pending-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--adm-border);
  transition: background 0.15s;
  cursor: pointer;
}

.adm-pending-item:hover { background: var(--adm-card2); }
.adm-pending-item:last-child { border-bottom: none; }

.adm-pending-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--adm-card2);
  border: 1px solid var(--adm-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--adm-accent);
  flex-shrink: 0;
}

.adm-pending-info { flex: 1; min-width: 0; }
.adm-pending-name { font-size: 13px; font-weight: 600; color: var(--adm-txt); }
.adm-pending-prod { font-size: 11px; color: var(--adm-txt3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-pending-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.adm-pending-val  { font-size: 13px; font-weight: 700; color: var(--adm-txt); }

/* ══════════════════════════════════════════════════
   GENERIC CARD
══════════════════════════════════════════════════ */
.adm-card {
  background: var(--adm-card);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  padding: 24px;
}

.adm-card-subtitle {
  font-size: 14px;
  font-weight: 700;
  color: var(--adm-txt);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.adm-card-subtitle i { color: var(--adm-accent); }

/* ══════════════════════════════════════════════════
   TABLE
══════════════════════════════════════════════════ */
.adm-table-wrap {
  overflow-x: auto;
}

.adm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.adm-table thead tr {
  border-bottom: 1px solid var(--adm-border);
}

.adm-table th {
  padding: 10px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: var(--adm-txt3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.adm-table td {
  padding: 12px 14px;
  color: var(--adm-txt2);
  border-bottom: 1px solid rgba(48,54,61,0.5);
  vertical-align: middle;
}

.adm-table tbody tr:hover td { background: rgba(255,255,255,0.02); }
.adm-table tbody tr:last-child td { border-bottom: none; }

.adm-table td strong { color: var(--adm-txt); font-weight: 600; }
.adm-table td code  { font-size: 11px; color: var(--adm-accent); background: var(--adm-accent-lt); padding: 2px 6px; border-radius: 4px; }

/* Actions cell */
.adm-table-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.adm-icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid var(--adm-border);
  background: none;
  color: var(--adm-txt3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.adm-icon-btn:hover { background: var(--adm-card2); color: var(--adm-txt); border-color: var(--adm-txt3); }
.adm-icon-btn--green:hover  { color: var(--adm-green); border-color: var(--adm-green); }
.adm-icon-btn--red:hover    { color: var(--adm-red);   border-color: var(--adm-red);   }
.adm-icon-btn--yellow:hover { color: var(--adm-accent); border-color: var(--adm-accent); }
.adm-icon-btn--blue:hover   { color: var(--adm-blue);   border-color: var(--adm-blue);   }

/* 3-dots menu */
.adm-dots-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: none;
  color: var(--adm-txt3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background 0.15s, color 0.15s;
}

.adm-dots-btn:hover { background: var(--adm-card2); color: var(--adm-txt); }

/* ══════════════════════════════════════════════════
   STATUS BADGES (dark theme)
══════════════════════════════════════════════════ */
.adm-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.adm-badge--pending  { background: rgba(251,192,45,0.15);  color: #fbc02d;  border: 1px solid rgba(251,192,45,0.3);  }
.adm-badge--analysis { background: rgba(59,130,246,0.15);  color: #60a5fa;  border: 1px solid rgba(59,130,246,0.3);  }
.adm-badge--approved { background: rgba(34,197,94,0.15);   color: #4ade80;  border: 1px solid rgba(34,197,94,0.3);   }
.adm-badge--paid     { background: rgba(6,182,212,0.15);   color: #22d3ee;  border: 1px solid rgba(6,182,212,0.3);   }
.adm-badge--rejected { background: rgba(239,68,68,0.15);   color: #f87171;  border: 1px solid rgba(239,68,68,0.3);   }
.adm-badge--received { background: rgba(139,92,246,0.15);  color: #a78bfa;  border: 1px solid rgba(139,92,246,0.3);  }
.adm-badge--link     { background: rgba(249,115,22,0.15);  color: #fb923c;  border: 1px solid rgba(249,115,22,0.3);  }
.adm-badge--active   { background: rgba(34,197,94,0.15);   color: #4ade80;  border: 1px solid rgba(34,197,94,0.3);   }
.adm-badge--inactive { background: rgba(107,114,128,0.15); color: #9ca3af;  border: 1px solid rgba(107,114,128,0.3); }
.adm-badge--blocked  { background: rgba(239,68,68,0.15);   color: #f87171;  border: 1px solid rgba(239,68,68,0.3);   }
.adm-badge--featured { background: rgba(251,192,45,0.15);  color: #fbc02d;  border: 1px solid rgba(251,192,45,0.3);  }

/* ══════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════ */
.adm-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--adm-accent);
  color: #0d1117;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
}

.adm-btn-primary:hover { background: #ffd149; }
.adm-btn-primary:active { transform: scale(0.97); }

.adm-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--adm-card2);
  color: var(--adm-txt);
  border: 1px solid var(--adm-border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.adm-btn-secondary:hover { background: var(--adm-border); }

.adm-btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(239,68,68,0.12);
  color: var(--adm-red);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

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

/* ══════════════════════════════════════════════════
   FORM ELEMENTS
══════════════════════════════════════════════════ */
.adm-search-input {
  padding: 8px 14px;
  background: var(--adm-card2);
  border: 1px solid var(--adm-border);
  border-radius: 8px;
  color: var(--adm-txt);
  font-size: 13px;
  min-width: 200px;
  outline: none;
  transition: border-color 0.15s;
}

.adm-search-input::placeholder { color: var(--adm-txt3); }
.adm-search-input:focus { border-color: var(--adm-accent); }

.adm-select-sm {
  padding: 7px 12px;
  background: var(--adm-card2);
  border: 1px solid var(--adm-border);
  border-radius: 8px;
  color: var(--adm-txt2);
  font-size: 13px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s;
}

.adm-select-sm:focus { border-color: var(--adm-accent); color: var(--adm-txt); }

.adm-form-group {
  margin-bottom: 16px;
}

.adm-form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--adm-txt2);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.adm-form-input,
.adm-form-textarea,
.adm-form-select {
  width: 100%;
  padding: 10px 14px;
  background: var(--adm-bg);
  border: 1px solid var(--adm-border);
  border-radius: 8px;
  color: var(--adm-txt);
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.15s;
  font-family: inherit;
}

.adm-form-input:focus,
.adm-form-textarea:focus,
.adm-form-select:focus {
  border-color: var(--adm-accent);
  box-shadow: 0 0 0 3px rgba(251,192,45,0.1);
}

.adm-form-textarea { resize: vertical; min-height: 80px; }
.adm-form-select   { cursor: pointer; }
.adm-form-hint     { font-size: 11px; color: var(--adm-txt3); margin-top: 5px; display: block; }

/* ══════════════════════════════════════════════════
   SETTINGS GRID
══════════════════════════════════════════════════ */
.adm-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
}

/* ══════════════════════════════════════════════════
   SYS INFO
══════════════════════════════════════════════════ */
.adm-sys-info {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.adm-sys-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--adm-border);
  font-size: 13px;
}

.adm-sys-row:last-child { border-bottom: none; }
.adm-sys-row span  { color: var(--adm-txt3); }
.adm-sys-row strong { color: var(--adm-txt); font-weight: 600; }
.adm-sys-row code  { font-size: 11px; color: var(--adm-accent); background: var(--adm-accent-lt); padding: 2px 8px; border-radius: 4px; }

/* ══════════════════════════════════════════════════
   LOGS
══════════════════════════════════════════════════ */
.adm-log-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--adm-border);
  font-size: 13px;
}

.adm-log-item:last-child { border-bottom: none; }

.adm-log-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 1px;
}

.adm-log--info    .adm-log-icon { background: rgba(59,130,246,0.15);  color: var(--adm-blue);   }
.adm-log--success .adm-log-icon { background: rgba(34,197,94,0.15);   color: var(--adm-green);  }
.adm-log--warning .adm-log-icon { background: rgba(251,192,45,0.15);  color: var(--adm-accent); }
.adm-log--error   .adm-log-icon { background: rgba(239,68,68,0.15);   color: var(--adm-red);    }

.adm-log-body { flex: 1; }
.adm-log-msg  { color: var(--adm-txt2); line-height: 1.4; }
.adm-log-time { font-size: 11px; color: var(--adm-txt3); margin-top: 3px; }

/* ══════════════════════════════════════════════════
   REPORT KPIS
══════════════════════════════════════════════════ */
.adm-report-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.adm-report-kpi {
  background: var(--adm-card);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  padding: 16px;
  text-align: center;
}

.adm-report-kpi-label { font-size: 11px; color: var(--adm-txt3); text-transform: uppercase; letter-spacing: 0.5px; }
.adm-report-kpi-val   { font-size: 26px; font-weight: 800; color: var(--adm-accent); margin: 4px 0; }
.adm-report-kpi-sub   { font-size: 11px; color: var(--adm-txt3); }

/* ══════════════════════════════════════════════════
   CATEGORY / COUPON CARDS
══════════════════════════════════════════════════ */
.adm-item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.adm-item-card {
  background: var(--adm-card);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: border-color 0.15s;
}

.adm-item-card:hover { border-color: var(--adm-txt3); }

.adm-item-info { flex: 1; min-width: 0; }
.adm-item-name { font-size: 14px; font-weight: 600; color: var(--adm-txt); }
.adm-item-meta { font-size: 12px; color: var(--adm-txt3); margin-top: 3px; }

.adm-item-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════
   EMPTY / LOADING
══════════════════════════════════════════════════ */
.adm-loading {
  padding: 40px;
  text-align: center;
  color: var(--adm-txt3);
  font-size: 14px;
}

.adm-loading i { margin-right: 8px; color: var(--adm-accent); }

.adm-empty {
  padding: 60px 20px;
  text-align: center;
}

.adm-empty-icon { font-size: 40px; color: var(--adm-txt3); margin-bottom: 12px; }
.adm-empty-title { font-size: 16px; font-weight: 600; color: var(--adm-txt2); margin-bottom: 6px; }
.adm-empty-sub { font-size: 13px; color: var(--adm-txt3); }

/* ══════════════════════════════════════════════════
   ADMIN LOGIN PAGE (page-admin-login)
══════════════════════════════════════════════════ */
#page-admin-login {
  background: var(--adm-bg) !important;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* ══════════════════════════════════════════════════
   MODAIS DO ADMIN (dark)
══════════════════════════════════════════════════ */
#admCategoryModal .modal-box,
#admCouponModal   .modal-box,
#admBannerModal   .modal-box,
#admRequestModal  .modal-box,
#admCbNoteModal   .modal-box,
#admProductModal  .modal-box {
  background: var(--adm-card);
  border: 1px solid var(--adm-border);
  color: var(--adm-txt);
}

#admCategoryModal .modal-title,
#admCouponModal   .modal-title,
#admBannerModal   .modal-title,
#admRequestModal  .modal-title,
#admCbNoteModal   .modal-title,
#admProductModal  .modal-title {
  color: var(--adm-txt);
}

/* ══════════════════════════════════════════════════
   OVERRIDE: hide site header/nav inside admin
══════════════════════════════════════════════════ */
#page-admin ~ .bottom-nav { display: none !important; }

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */

/* 5-col KPIs em telas médias */
@media (max-width: 1400px) {
  .adm-kpi-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1200px) {
  .adm-charts-row { grid-template-columns: 1fr; }
  .adm-dash-bottom { grid-template-columns: 1fr; }
}

@media (max-width: 992px) {
  .adm-kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .adm-sidebar {
    transform: translateX(-100%);
    z-index: 400;
  }

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

  .adm-sidebar-overlay.visible {
    display: block;
  }

  .adm-main {
    margin-left: 0;
  }

  .adm-burger {
    display: flex;
  }

  .adm-topbar {
    padding: 0 16px;
  }

  .adm-content {
    padding: 16px;
  }

  .adm-kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .adm-kpi-val  { font-size: 18px; }

  .adm-date-range { display: none; }

  .adm-profile-info { display: none; }
  .adm-profile-arrow { display: none; }

  .adm-tab-head { flex-direction: column; align-items: flex-start; }
  .adm-tab-actions { width: 100%; }
  .adm-search-input { min-width: 0; flex: 1; }
}

@media (max-width: 480px) {
  .adm-kpi-grid { grid-template-columns: 1fr 1fr; }
  .adm-settings-grid { grid-template-columns: 1fr; }
  .adm-item-grid { grid-template-columns: 1fr; }
}
