/* ============================================================
   variables.css — Design tokens & global reset
   Proofr PDF Review Platform
   ============================================================ */

:root {
  /* ── Layout ── */
  --sidebar-width: 260px;
  --topbar-height: 64px;
  --radius:    12px;
  --radius-sm:  8px;
  --radius-lg: 16px;

  /* ── Sidebar palette ── */
  --sidebar-bg:     #0B0F1A;
  --sidebar-hover:  #161C2E;
  --sidebar-active: #1E2740;
  --sidebar-border: rgba(255,255,255,0.06);

  /* ── Surface palette ── */
  --surface:   #F7F6F2;
  --surface-2: #EFEDE8;
  --surface-3: #E8E5DF;

  /* ── Brand colors ── */
  --accent:      #3B82F6;
  --accent-2:    #06B6D4;
  --accent-glow: rgba(59,130,246,0.15);

  /* ── Kingschat brand ── */
  --kc-blue:       #2196F3;
  --kc-blue-dark:  #1565C0;
  --kc-glow:       rgba(33,150,243,0.3);

  /* ── Text ── */
  --text-primary:       #0F172A;
  --text-secondary:     #64748B;
  --text-muted:         #94A3B8;
  --text-sidebar:       #CBD5E1;
  --text-sidebar-muted: #64748B;

  /* ── Borders ── */
  --border:        rgba(15,23,42,0.08);
  --border-strong: rgba(15,23,42,0.15);

  /* ── Status colors ── */
  --success: #10B981;
  --warning: #F59E0B;
  --danger:  #EF4444;

  /* ── Shadows ── */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.12), 0 8px 20px rgba(0,0,0,0.06);
  --shadow-xl: 0 32px 64px rgba(0,0,0,0.18);

  /* ── Transitions ── */
  --transition: all 0.2s ease;
  --transition-fast: all 0.15s ease;
}

/* ── Global Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', sans-serif;
  background: var(--surface);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── Utility classes ── */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Tooltip ── */
[data-tip] { position: relative; }
[data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--sidebar-bg);
  color: white;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 9999;
}

/* ── Animations ── */
@keyframes fadeUp   { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn  { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
@keyframes slideInR { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideUp  { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin     { to { transform: rotate(360deg); } }
@keyframes pulse    { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
