/* ============================================================
   Oziq AI · admin portal — overlay layer
   Rule: every component is built from the dashboard's styles.css +
   styles-ubold.css vocabulary (.panel, .input, .btn, helpers, etc.).
   This file holds only page-level positioning that ubold doesn't
   already cover (full-screen centered states).
   ============================================================ */

.admin-boot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--bg-sunken);
  font-family: var(--font-sans);
}

.login-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 48px 20px;
  background: var(--bg-sunken);
  font-family: var(--font-sans);
}

/* Admin shell — same chrome as the dashboard but without a status row.
   The dashboard's .app reserves a row for .statusbar; admin doesn't need it,
   so we provide a sibling layout instead of overriding .app globally. */
.admin-app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  grid-template-rows: var(--topbar-h) 1fr;
  grid-template-areas:
    "side top"
    "side main";
  height: 100vh;
  overflow: hidden;
}

/* Detail drawer — fixed right-side sheet. Positioning only; the content
   inside is composed from ubold .panel / .input / .btn vocabulary. */
.admin-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 17, 22, 0.32);
  z-index: 50;
  animation: drawer-fade 0.15s ease-out;
}
.admin-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 100%;
  max-width: 540px;
  z-index: 51;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  box-shadow: -8px 0 24px rgba(15, 17, 22, 0.12);
  animation: drawer-slide 0.18s ease-out;
}
.admin-drawer-head {
  flex-shrink: 0;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
  background: var(--bg-sunken);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.admin-drawer-foot {
  flex-shrink: 0;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  background: var(--bg);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}
@keyframes drawer-slide {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}
@keyframes drawer-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

