/* ══════════════════════════════════════════════
   SAURABH SUBLIMATION — ADMIN STYLESHEET
   admin.css
   ══════════════════════════════════════════════ */

.adm-sb {
  width: 265px; background: var(--ink); color: white;
  flex-shrink: 0; display: flex; flex-direction: column;
  min-height: 100vh; position: fixed; left: 0; top: 0; bottom: 0;
  z-index: 500; overflow-y: auto; transition: transform 0.3s;
}
.adm-logo { padding: 22px 20px; border-bottom: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; gap: 12px; }
.adm-logo-text { font-family: 'Cinzel', serif; font-size: 15px; font-weight: 700; color: var(--gold-light); line-height: 1.3; }
.adm-logo-text small { display: block; font-size: 10px; color: rgba(255,255,255,0.4); font-family: 'Nunito', sans-serif; font-weight: 400; letter-spacing: 1px; text-transform: uppercase; }
.adm-nav { padding: 14px 12px; flex: 1; }
.adm-nl { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,0.28); padding: 16px 8px 8px; }
.adm-lnk { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); cursor: pointer; font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.58); transition: all 0.2s; margin-bottom: 2px; }
.adm-lnk:hover { background: rgba(255,255,255,0.08); color: white; }
.adm-lnk.active { background: linear-gradient(135deg, var(--purple), var(--violet)); color: white; }
.adm-lnk .ico { font-size: 17px; }

.adm-wrap { display: flex; min-height: 100vh; }
.adm-content { margin-left: 265px; flex: 1; background: #F0EBF8; min-height: 100vh; }
.adm-topbar { background: var(--white); border-bottom: 1.5px solid var(--border); padding: 0 28px; height: 64px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100; }
.adm-pg { display: none; padding: 26px; }
.adm-pg.active { display: block; }

/* STATS */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px,1fr)); gap: 16px; margin-bottom: 26px; }
.stat-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--r); padding: 20px 22px; }
.stat-lbl { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.stat-val { font-size: 28px; font-weight: 700; font-family: 'Cinzel', serif; color: var(--ink); }
.stat-chg { font-size: 12px; color: var(--success); margin-top: 4px; }
.stat-chg.dn { color: var(--danger); }

/* TABLE */
.data-table { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--r); overflow: hidden; margin-bottom: 20px; }
.dt-hd { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.dt-hd h3 { font-size: 16px; }
table { width: 100%; border-collapse: collapse; }
thead th { background: var(--bg2); padding: 12px 16px; text-align: left; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); border-bottom: 1px solid var(--border); }
tbody td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--bg); }

/* LOGIN */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--ink), var(--deep)); padding: 24px; }
.login-card { background: var(--white); border-radius: var(--r-xl); padding: 44px; width: 100%; max-width: 420px; box-shadow: var(--shadow-lg); text-align: center; }

@media(max-width: 900px) {
  .adm-sb { transform: translateX(-100%); }
  .adm-sb.open { transform: translateX(0); }
  .adm-content { margin-left: 0; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
}
@media(max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr; }
  .adm-pg { padding: 16px; }
}
