/* ================================================================
   LN LAB'S — Admin Panel CSS
   ================================================================ */
:root {
  --bg:      #070a0f;
  --bg2:     #0c1018;
  --surface: #111720;
  --card:    #141c28;
  --border:  #1e2d40;
  --border2: #243448;
  --acc:     #00f0ff;
  --acc-dim: rgba(0,240,255,.12);
  --red:     #ff4060;
  --green:   #00e5a0;
  --yellow:  #ffd166;
  --text:    #dde8f5;
  --muted:   #5a7a9a;
  --sub:     #8aaccc;
}

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

html {
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  padding: 0 !important;
  margin: 0 !important;
}

/* ── Nav ── */
.a-nav {
  position: fixed;
  top: 0; left: 0;
  width: 240px;
  height: 100vh;
  background: var(--bg2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 999;
}

.a-nav-logo {
  flex-shrink: 0;
  padding: 24px 20px;
  border-bottom: 1px solid var(--border);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: .08em;
  background: var(--bg2);
}
.a-nav-logo span { color: var(--acc); }
.a-nav-sub {
  font-size: .62rem;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: .1em;
  margin-top: 2px;
}

.a-nav-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--border2) transparent;
}
.a-nav-scroll::-webkit-scrollbar       { width: 3px; }
.a-nav-scroll::-webkit-scrollbar-track { background: transparent; }
.a-nav-scroll::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 10px; }
.a-nav-scroll::-webkit-scrollbar-thumb:hover { background: var(--muted); }

.a-nav-section {
  padding: 18px 20px 5px;
  font-size: .62rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .12em;
}

.a-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  font-size: .83rem;
  color: var(--muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: all .15s;
}
.a-nav a:hover  { color: var(--text); background: rgba(255,255,255,.03); border-left-color: var(--border2); }
.a-nav a.active { color: var(--acc); border-left-color: var(--acc); background: var(--acc-dim); }
.a-nav a .icon  { font-size: 1rem; width: 18px; text-align: center; }

.a-nav-footer {
  flex-shrink: 0;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  font-size: .75rem;
  color: var(--muted);
  background: var(--bg2);
}
.a-nav-footer a       { color: var(--muted); text-decoration: none; font-size: .75rem; }
.a-nav-footer a:hover { color: var(--red); }

/* ── Main ── */
.a-main {
  margin-left: 240px;
  flex: 1;
  min-width: 0;
  width: calc(100vw - 240px);
  height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.a-topbar {
  flex-shrink: 0;
  width: 100%;
  height: 56px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 32px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-sizing: border-box;
}
.a-topbar h1          { font-size: .95rem; font-weight: 700; color: var(--text); }
.a-topbar-actions     { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.a-content            { flex: 1; padding: 32px; }

/* ── Stats ── */
.a-stats      { display: grid; grid-template-columns: repeat(auto-fill,minmax(160px,1fr)); gap: 12px; margin-bottom: 28px; }
.a-stat       { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 20px; }
.a-stat-num   { font-family: 'Bebas Neue', sans-serif; font-size: 2.4rem; letter-spacing: .04em; color: var(--acc); line-height: 1; }
.a-stat-label { font-size: .72rem; color: var(--muted); margin-top: 2px; }

/* ── Cards ── */
.a-card       { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 24px; margin-bottom: 20px; }
.a-card-title { font-size: .88rem; font-weight: 700; color: var(--text); margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; }

/* ── Table ── */
.a-table-wrap             { overflow-x: auto; border-radius: 10px; border: 1px solid var(--border); }
table.a-table             { width: 100%; border-collapse: collapse; }
.a-table th               { background: rgba(255,255,255,.03); padding: 10px 14px; font-size: .68rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; text-align: left; border-bottom: 1px solid var(--border); }
.a-table td               { padding: 11px 14px; font-size: .83rem; color: var(--sub); border-bottom: 1px solid rgba(30,45,64,.5); }
.a-table tr:last-child td { border-bottom: none; }
.a-table tr:hover td      { background: rgba(255,255,255,.02); }
.a-table code             { font-family: 'JetBrains Mono', monospace; font-size: .75rem; background: rgba(255,255,255,.07); padding: 2px 7px; border-radius: 4px; color: var(--text); }

/* ── Buttons ── */
.a-btn         { display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; border: none; border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: .82rem; font-weight: 600; cursor: pointer; text-decoration: none; transition: opacity .15s; }
.a-btn:hover   { opacity: .82; }
.a-btn-primary { background: var(--acc); color: #070a0f; }
.a-btn-danger  { background: var(--red); color: #fff; }
.a-btn-ghost   { background: rgba(255,255,255,.08); color: var(--text); border: 1px solid var(--border); }
.a-btn-warn    { background: rgba(255,209,102,.15); color: var(--yellow); border: 1px solid rgba(255,209,102,.25); }
.a-btn-sm      { padding: 5px 12px; font-size: .75rem; }
.a-btn-wide    { width: 100%; justify-content: center; padding: 12px; }

/* ── Forms ── */
.a-form-group  { margin-bottom: 16px; }
.a-label       { display: block; font-family: 'JetBrains Mono', monospace; font-size: .68rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.a-input, .a-select, .a-textarea {
  width: 100%; padding: 10px 14px;
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: 8px; color: var(--text); font-family: 'DM Sans', sans-serif;
  font-size: .88rem; outline: none; transition: border .15s;
}
.a-input:focus, .a-select:focus, .a-textarea:focus { border-color: var(--acc); }
.a-textarea    { resize: vertical; min-height: 120px; font-family: 'JetBrains Mono', monospace; font-size: .8rem; }
.a-form-row    { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.a-checkbox    { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: .85rem; color: var(--sub); }
.a-checkbox input { accent-color: var(--acc); width: 16px; height: 16px; }

/* ── Alerts ── */
.a-alert         { border-radius: 8px; padding: 10px 16px; font-size: .83rem; margin-bottom: 16px; }
.a-alert-success { background: rgba(0,229,160,.1); border: 1px solid rgba(0,229,160,.3); color: #6ee7b7; }
.a-alert-error   { background: rgba(255,64,96,.1); border: 1px solid rgba(255,64,96,.3); color: #fca5a5; }
.a-alert-info    { background: rgba(0,240,255,.08); border: 1px solid rgba(0,240,255,.2); color: #67e8f9; }

/* ── Badges ── */
.a-badge          { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: .68rem; font-weight: 700; text-transform: uppercase; font-family: 'JetBrains Mono', monospace; }
.a-badge-active   { background: rgba(0,229,160,.15); color: #6ee7b7; }
.a-badge-inactive { background: rgba(255,255,255,.07); color: var(--muted); }
.a-badge-featured { background: rgba(0,240,255,.15); color: var(--acc); }

/* ── Editor toolbar ── */
.editor-toolbar        { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 8px; }
.editor-toolbar button { padding: 5px 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 5px; color: var(--text); font-size: .78rem; cursor: pointer; transition: background .15s; }
.editor-toolbar button:hover { background: var(--border2); }
