/* critical.css - Critical CSS for Admin Panel
 *
 * This file contains only the critical CSS needed for the initial render of the admin panel.
 * It is inlined directly into the HTML to ensure the page looks styled as soon as possible.
 * Non-critical styles are loaded asynchronously via main.css.
 *
 * Note: This file should be kept minimal and focused on above-the-fold content. Avoid adding
 * styles that are not essential for the initial view of the admin panel.
 */


/* ─── 1. Design tokens ───────────────────────────────────────────────────────── */

:root {
  /* Backgrounds */
  --bg-0: #070a12;
  --bg-1: #0b1020;

  /* Panels & strokes */
  --panel:  rgba(255, 255, 255, .07);
  --stroke: rgba(255, 255, 255, .16);

  /* Typography */
  --text:  rgba(235, 244, 241, .92);
  --muted: rgba(235, 244, 241, .68);

  /* Brand */
  --brand-a: #8cc4ae;
  --brand-b: #e8de6a;

  /* Radii & shadows */
  --radius-md:   12px;
  --shadow-soft: 0 2px 8px rgba(0, 0, 0, .2);
}


/* ─── 2. Base reset ──────────────────────────────────────────────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  /* Replace the browser's default tap-highlight flash (a stark blue/cyan
     overlay on this dark theme) with deliberate :active states per element. */
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--text);

  /* Layered background for first paint */
  background:
    radial-gradient(900px 650px at 12%  8%, rgba(77, 232, 255, .12), transparent 58%),
    radial-gradient(920px 680px at 88% 18%, rgba(255, 95, 215, .08), transparent 60%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1));
  background-attachment: fixed;
  min-height: 100vh;

  /* Reserve scrollbar space — prevents layout shift between sections */
  overflow-y: scroll;

  /* Font smoothing belongs on body, not on .admin-header */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* ─── 3. Header ──────────────────────────────────────────────────────────────── */

.admin-header {
  width: 100%;
  padding: 12px 0;
  background: var(--panel);
  border-bottom: 1px solid var(--stroke);
  text-align: center;
  box-shadow: var(--shadow-soft);
  /* font-smoothing removed — inherited from body */
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  max-width: 1760px;
  margin: 0 auto;
  padding: 0 24px;
}


/* ─── 4. Logo & title ────────────────────────────────────────────────────────── */

.logo {
  display: inline-block;
  font-family: LoremIpsum, Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 2rem;
  letter-spacing: .02em;
  color: var(--text);
}
.logo--b { color: var(--brand-b); }

/* .brand-center removed — was an empty no-op rule */

.admin-title {
  margin-left: 14px;
  font-size: 1rem;
  font-weight: 300;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  white-space: nowrap;
}


/* ─── 5. Navigation ──────────────────────────────────────────────────────────── */

.nav {
  display: flex;
  align-items: center;
}

.nav__list {
  display: flex;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Quiet baseline for first paint — main.css upgrades these to pill tabs on
   desktop and to the hamburger dropdown on mobile. Kept deliberately plain
   (no box/border) so no old boxed-button style flashes before main.css loads. */
.nav__link {
  display: block;
  padding: 8px 14px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  border-radius: 9px;
  transition: background-color .18s ease, color .18s ease;
}


/* ─── 6. Layout ──────────────────────────────────────────────────────────────── */

.admin-main {
  max-width: 1760px;
  margin: 20px auto;
  padding: 0 24px;
}