/* ============================================================
   Fleeker — main.css
   ============================================================ */

/* ---- RESET ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
button { font-family: inherit; cursor: pointer; }
textarea, input { font-family: inherit; }
a { color: inherit; text-decoration: none; }

/* ---- ПЕРЕМЕННЫЕ ---- */
:root {
  /* Акцент */
  --accent:        #6366f1;
  --accent-hover:  #4f46e5;
  --accent-light:  rgba(99, 102, 241, 0.10);
  --accent-light2: rgba(99, 102, 241, 0.18);

  /* Фоны */
  --bg:   #ffffff;
  --bg2:  #f8f9fb;
  --bg3:  #f0f2f5;
  --bg4:  #e8eaed;

  /* Текст */
  --txt:  #111827;
  --txt2: #6b7280;
  --txt3: #9ca3af;

  /* Границы */
  --border: rgba(0, 0, 0, 0.08);
  --border2: rgba(0, 0, 0, 0.14);

  /* Статусы */
  --danger:  #ef4444;
  --success: #10b981;
  --warning: #f59e0b;

  /* Сообщения */
  --msg-in:     #f3f4f6;
  --msg-in-txt: #111827;
  --msg-out:     #e0e7ff;
  --msg-out-txt: #3730a3;
  --msg-out-check: #6366f1;

  /* Размеры */
  --nav-w:     56px;
  --panel-w:   300px;
  --rp-w:      268px;

  /* Скругления */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;

  /* Тени */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);

  /* Переходы */
  --ease: 0.18s ease;
}

/* ---- ТЁМНАЯ ТЕМА ---- */
[data-theme="dark"] {
  --bg:   #111827;
  --bg2:  #1f2937;
  --bg3:  #374151;
  --bg4:  #4b5563;

  --txt:  #f9fafb;
  --txt2: #9ca3af;
  --txt3: #6b7280;

  --border:  rgba(255,255,255,0.08);
  --border2: rgba(255,255,255,0.14);

  --msg-in:      #374151;
  --msg-in-txt:  #f3f4f6;
  --msg-out:     #312e81;
  --msg-out-txt: #c7d2fe;
  --msg-out-check: #818cf8;

  --accent:       #818cf8;
  --accent-hover: #6366f1;
  --accent-light:  rgba(129,140,248,0.12);
  --accent-light2: rgba(129,140,248,0.22);
}

/* ---- ТИПОГРАФИКА ---- */
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  line-height: 1.5;
  color: var(--txt);
  background: var(--bg3);
  min-height: 100vh;
  overflow: hidden;
}

/* ---- УТИЛИТЫ ---- */
.hidden { display: none !important; }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--txt3); }

/* ── Адаптивная ширина панели диалогов ──────────────────── */
@media (min-width: 1280px) {
  :root { --panel-w: 340px; }
}
@media (min-width: 1600px) {
  :root { --panel-w: 380px; }
}
@media (min-width: 1920px) {
  :root { --panel-w: 420px; }
}
