/* Admin dashboard — professional sidebar layout */
:root {
  --ad-sidebar: #1e293b;
  --ad-sidebar-hover: #334155;
  --ad-accent: #fc8019;
  --ad-bg: #f1f5f9;
  --ad-card: #ffffff;
  --ad-text: #0f172a;
  --ad-muted: #64748b;
}

.ad-body { margin: 0; font-family: "DM Sans", system-ui, sans-serif; background: var(--ad-bg); color: var(--ad-text); min-height: 100vh; }
.ad-layout { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
@media (max-width: 960px) {
  .ad-layout { grid-template-columns: 1fr; }
  .ad-sidebar { position: fixed; z-index: 200; left: 0; top: 0; bottom: 0; transform: translateX(-100%); transition: transform .2s; }
  body.ad-open .ad-sidebar { transform: translateX(0); }
}

.ad-sidebar {
  background: var(--ad-sidebar);
  color: #e2e8f0;
  padding: 1.25rem 0;
  display: flex;
  flex-direction: column;
}
.ad-brand {
  padding: 0 1.25rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ad-brand span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  background: linear-gradient(135deg, var(--ad-accent), #ea580c); color: #fff; font-size: 0.85rem;
}
.ad-nav { flex: 1; overflow-y: auto; padding: 0.75rem 0; }
.ad-nav a {
  display: block;
  padding: 0.65rem 1.25rem;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
  border-left: 3px solid transparent;
}
.ad-nav a:hover, .ad-nav a.active {
  background: var(--ad-sidebar-hover);
  border-left-color: var(--ad-accent);
  color: #fff;
}
.ad-nav-section {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ad-muted); padding: 1rem 1.25rem 0.35rem;
}
.ad-main { padding: 0; }
.ad-topbar {
  background: var(--ad-card);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
  position: sticky; top: 0; z-index: 50;
}
.ad-topbar h1 { margin: 0; font-size: 1.25rem; font-weight: 700; }
.ad-menu-btn { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; }
@media (max-width: 960px) { .ad-menu-btn { display: block; } }

.ad-content { padding: 1.5rem; }
.ad-grid-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.ad-stat {
  background: var(--ad-card);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.ad-stat .label { font-size: 0.75rem; color: var(--ad-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.ad-stat .value { font-size: 1.75rem; font-weight: 700; margin-top: 0.35rem; color: var(--ad-text); }
.ad-stat .value.accent { color: var(--ad-accent); }

.ad-card {
  background: var(--ad-card);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  margin-bottom: 1rem;
}
.ad-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.ad-table th, .ad-table td { padding: 0.65rem 0.75rem; text-align: left; border-bottom: 1px solid #e2e8f0; }
.ad-table th { background: #f8fafc; font-weight: 600; color: var(--ad-muted); font-size: 0.75rem; text-transform: uppercase; }
.ad-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.45rem 0.9rem; border-radius: 8px; font-weight: 600; font-size: 0.875rem;
  border: none; cursor: pointer; text-decoration: none; font-family: inherit;
}
.ad-btn-primary { background: var(--ad-accent); color: #fff; }
.ad-btn-outline { background: transparent; border: 1px solid #cbd5e1; color: var(--ad-text); }
.ad-btn-sm { padding: 0.3rem 0.6rem; font-size: 0.8rem; }
.ad-input, .ad-select, .ad-textarea {
  width: 100%; max-width: 420px; padding: 0.5rem 0.65rem; border: 1px solid #e2e8f0; border-radius: 8px; font-family: inherit;
}
.ad-form-group { margin-bottom: 1rem; }
.ad-form-group label { display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: 0.25rem; }

.ad-login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  padding: 2rem;
}
.ad-login-box {
  width: 100%; max-width: 400px;
  background: #fff; border-radius: 16px; padding: 2rem;
  box-shadow: 0 24px 48px rgba(0,0,0,.25);
}
.ad-login-box h1 { margin: 0 0 1.5rem; font-size: 1.35rem; }
