/* ==========================================================
   Dijital Pano – Temel tasarım sistemi
   ========================================================== */
:root {
  --bg: #080C1A;
  --bg-2: #0C1224;
  --surface: #10172D;
  --surface-2: #151D37;
  --surface-3: #1B2442;
  --border: rgba(255, 255, 255, .07);
  --border-2: rgba(255, 255, 255, .12);
  --text: #EEF2FF;
  --muted: #8C96BC;
  --dim: #5A6389;

  --accent: #5B8CFF;
  --accent-2: #8B6CFF;
  --accent-soft: rgba(91, 140, 255, .14);
  --success: #2FD39A;
  --warn: #F7B23B;
  --danger: #FF5C7A;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; color-scheme: dark; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 1;
}
button, input, select, textarea { font: inherit; color: inherit; color-scheme: dark; }
::placeholder { color: var(--dim); opacity: .85; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }

.icon {
  width: 1em; height: 1em; flex: none;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* Ortak butonlar */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 12px;
  font-weight: 700; font-size: 15px;
  transition: transform .2s var(--ease), background .2s, box-shadow .25s, border-color .2s;
  white-space: nowrap;
}
.btn .icon { font-size: 18px; }
.btn:active { transform: scale(.98); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 10px 30px -12px rgba(91, 140, 255, .7);
}
.btn-primary:hover { box-shadow: 0 14px 34px -10px rgba(91, 140, 255, .85); transform: translateY(-1px); }
.btn-ghost { background: var(--surface-2); border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface-3); border-color: var(--border-2); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 13.5px; border-radius: 10px; }

/* Ortak animasyonlar */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(47, 211, 154, .55); } 70% { box-shadow: 0 0 0 10px rgba(47, 211, 154, 0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shake { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(3px); } 30%, 50%, 70% { transform: translateX(-6px); } 40%, 60% { transform: translateX(6px); } }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, -40px) scale(1.08); }
  66% { transform: translate(-40px, 30px) scale(.95); }
  100% { transform: translate(0, 0) scale(1); }
}

.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success); display: inline-block; flex: none;
  animation: pulse 2s infinite;
}

/* Toast */
.toast-wrap { position: fixed; right: 24px; bottom: 24px; display: flex; flex-direction: column; gap: 10px; z-index: 1000; }
.toast {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface-3); border: 1px solid var(--border-2);
  padding: 14px 18px; border-radius: 14px; font-size: 14px; font-weight: 600;
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .6);
  animation: fadeUp .35s var(--ease);
}
.toast .icon { color: var(--success); font-size: 18px; }
.toast.out { opacity: 0; transform: translateY(8px); transition: .3s; }

::selection { background: rgba(91, 140, 255, .35); }
