/* ==========================================================================
   base.css — Base reset, html/body, scrollbars, theme-transition rules.
   Part of منصة عقاب dashboard styles. Split from the former app.css.
   Cascade order is significant; see docs/flows/INDEX.md.
   ========================================================================== */
/* ══════════════════════════════════════════════════════
   BASE
══════════════════════════════════════════════════════ */
:root {
  --ff: 'Tajawal','Segoe UI Arabic',sans-serif;
  --fh: 'Cairo','Tajawal',sans-serif;
  --sw: 256px;
  --r1: 6px; --r2: 10px; --r3: 14px; --r4: 18px; --rf: 9999px;
  --ease: cubic-bezier(0.22,1,0.36,1);
  /* Reading column — all main chat content caps here, centered */
  --content-max: 80ch;
}
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%; overflow: hidden;
  font-family: var(--ff); font-size: 14.5px; line-height: 1.65;
  background: var(--bg); color: var(--t1);
  -webkit-font-smoothing: antialiased;
  transition: background .25s, color .25s;
}
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
textarea, input { font-family: inherit; }
a { color: var(--gl); }
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--s4); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--t3); }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ══ THEME TRANSITION ══ */
#sidebar, #main, .pin-card, .confirm-card, #login-screen,
.bubble, .sess-row, .agent-row, .pkey, .ap-sess-card {
  transition: background .25s, border-color .25s, color .25s, box-shadow .25s;
}

