/* css/base.css — design tokens, reset, body, animations */

:root {
  /* colours */
  --bg:            #0d1117;
  --surface:       #161b22;
  --surface-1:     #1c2128;
  --surface-2:     #21262d;
  --border:        rgba(255,255,255,0.07);
  --border-md:     rgba(255,255,255,0.12);
  --border-strong: rgba(255,255,255,0.18);
  --text:          #e6edf3;
  --text-2:        #8b949e;
  --text-3:        #484f58;
  --accent:        #2dd4bf;
  --accent-dim:    rgba(45,212,191,0.12);
  --accent-border: rgba(45,212,191,0.3);
  --red:           #f85149;
  --red-dim:       rgba(248,81,73,0.12);
  --red-border:    rgba(248,81,73,0.3);
  --green:         #3fb950;
  --green-dim:     rgba(63,185,80,0.12);
  --amber:         #d29922;
  --amber-dim:     rgba(210,153,34,0.12);
  --purple:        #a371f7;
  --purple-dim:    rgba(163,113,247,0.12);

  /* spacing / shape */
  --sidebar-w: 228px;
  --topbar-h:  52px;
  --r:         8px;
  --r-sm:      5px;
  --r-lg:      12px;

  /* shadows */
  --shadow:    0 1px 3px rgba(0,0,0,0.4), 0 0 0 1px var(--border);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.5), 0 0 0 1px var(--border-md);
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

/* slim scrollbars globally */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--border-md) transparent;
}
*::-webkit-scrollbar { width: 4px; height: 4px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--border-md); border-radius: 2px; }

/* active timer pulse animation */
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(45,212,191,0.4); }
  50%       { opacity: 0.8; box-shadow: 0 0 0 5px rgba(45,212,191,0); }
}

/* ── Login screen ─────────────────────────────────────────────────── */
.login-screen {
  position: fixed; inset: 0; z-index: 500;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
}
.login-card {
  background: var(--surface);
  border: 1px solid var(--border-md);
  border-radius: var(--r-lg);
  padding: 2.25rem 2rem;
  width: 320px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.login-logo {
  width: 96px; height: auto; margin: 0 auto;
  filter: brightness(0) invert(1) opacity(0.85);
}
.login-card h1 {
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-2); font-weight: 500;
}
.login-card input {
  width: 100%; padding: 7px 11px;
  background: var(--surface-1); border: 1px solid var(--border-md);
  border-radius: var(--r-sm); color: var(--text); font-size: 13.5px;
  font-family: inherit;
}
.login-card input:focus { outline: none; border-color: var(--accent); }
.login-card input::placeholder { color: var(--text-3); }
.login-card .btn { width: 100%; justify-content: center; }
.error { color: var(--red); font-size: 13px; }
