/* ============================================================
   Bridge.KobiZeka.com — Ana Stil
   Koyu tema, minimal, komuta merkezi estetiği
   ============================================================ */

:root {
  --bg-base:       #0d0f14;
  --bg-surface:    #141720;
  --bg-elevated:   #1c2030;
  --bg-hover:      #222638;
  --border:        rgba(255,255,255,0.07);
  --border-light:  rgba(255,255,255,0.12);

  --text-primary:  #e8eaf0;
  --text-secondary:#8b90a0;
  --text-muted:    #555b70;

  --accent:        #4f8ef7;
  --accent-dim:    rgba(79,142,247,0.15);
  --accent-hover:  #6aa0ff;

  --green:         #34c97a;
  --green-dim:     rgba(52,201,122,0.15);
  --yellow:        #f0b429;
  --yellow-dim:    rgba(240,180,41,0.15);
  --red:           #f05252;
  --red-dim:       rgba(240,82,82,0.15);
  --purple:        #a78bfa;
  --purple-dim:    rgba(167,139,250,0.15);

  --sidebar-w:     220px;
  --header-h:      56px;
  --radius:        8px;
  --radius-lg:     12px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; }
body {
  font-family: var(--font);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; }
input, textarea, select, button { font-family: var(--font); }

/* ============================================================
   LAYOUT
   ============================================================ */
.layout {
  display: flex;
  min-height: 100vh;
}

/* ---- Sidebar ---- */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  overflow-y: auto;
}

.sidebar-logo {
  padding: 20px 16px 16px;
  border-bottom: 1px solid var(--border);
}
.sidebar-logo-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}
.sidebar-logo-sub {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 2px;
}

.sidebar-section {
  padding: 12px 8px 4px;
}
.sidebar-section-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0 8px 6px;
}

.sidebar-nav {
  list-style: none;
}
.sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
}
.sidebar-nav li a:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.sidebar-nav li a.active {
  background: var(--accent-dim);
  color: var(--accent);
}
.sidebar-nav li a .nav-icon {
  font-size: 15px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}
.nav-badge {
  margin-left: auto;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 20px;
  min-width: 18px;
  text-align: center;
}

.sidebar-mentor-list {
  padding: 4px 8px;
  list-style: none;
}
.sidebar-mentor-list li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 12px;
  transition: all 0.15s;
}
.sidebar-mentor-list li a:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.sidebar-mentor-list li a.active {
  background: var(--accent-dim);
  color: var(--accent);
}
.mentor-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.sidebar-footer {
  margin-top: auto;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-muted);
}

/* ---- Main ---- */
.main {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ---- Header ---- */
.topbar {
  height: var(--header-h);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---- Page content ---- */
.page {
  padding: 24px;
  flex: 1;
}
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}
.page-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}
.page-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ============================================================
   COMPONENTS
   ============================================================ */

/* ---- Cards ---- */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.card-sm { padding: 14px 16px; }
.card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

/* ---- Metric cards ---- */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.metric-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
}
.metric-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}
.metric-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  line-height: 1;
}
.metric-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}
.metric-up   { color: var(--green); }
.metric-down { color: var(--red); }

/* ---- Grid layouts ---- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-light);
}
.btn-ghost:hover { background: var(--bg-hover); color: var(--text-primary); }
.btn-danger { background: var(--red-dim); color: var(--red); border-color: transparent; }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-success { background: var(--green-dim); color: var(--green); border-color: transparent; }
.btn-success:hover { background: var(--green); color: #fff; }
.btn-sm { padding: 5px 11px; font-size: 12px; }
.btn-icon { padding: 8px; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---- Forms ---- */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 9px 12px;
  font-size: 13px;
  color: var(--text-primary);
  transition: border-color 0.15s;
  outline: none;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus { border-color: var(--accent); }
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-muted); }
.form-textarea { resize: vertical; min-height: 100px; line-height: 1.6; }
.form-select option { background: var(--bg-elevated); }
.form-hint { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* Mood slider */
.mood-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--bg-hover);
  outline: none;
  border: none;
  padding: 0;
}
.mood-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
}
.mood-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
  margin-top: 4px;
}

/* ---- Badges ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.badge-success { background: var(--green-dim); color: var(--green); }
.badge-warning { background: var(--yellow-dim); color: var(--yellow); }
.badge-danger  { background: var(--red-dim);    color: var(--red); }
.badge-info    { background: var(--accent-dim); color: var(--accent); }
.badge-muted   { background: var(--bg-elevated); color: var(--text-muted); }
.badge-purple  { background: var(--purple-dim); color: var(--purple); }

/* ---- Flash messages ---- */
.flash {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 20px;
  border-left: 3px solid;
}
.flash-success { background: var(--green-dim); border-color: var(--green); color: var(--green); }
.flash-error   { background: var(--red-dim);   border-color: var(--red);   color: var(--red); }
.flash-info    { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }

/* ---- Task items ---- */
.task-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.task-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s;
}
.task-item:hover { border-color: var(--border-light); }
.task-item.done { opacity: 0.5; }
.task-item.done .task-title { text-decoration: line-through; }
.task-icon { font-size: 16px; flex-shrink: 0; }
.task-body { flex: 1; min-width: 0; }
.task-title { font-size: 13px; font-weight: 500; color: var(--text-primary); }
.task-meta  { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.task-actions { display: flex; gap: 4px; flex-shrink: 0; }

/* Priority dots */
.priority-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.priority-critical { background: var(--red); }
.priority-high     { background: var(--yellow); }
.priority-medium   { background: var(--accent); }
.priority-low      { background: var(--text-muted); }

/* ---- Mentor cards ---- */
.mentor-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: block;
}
.mentor-card:hover {
  border-color: var(--border-light);
  background: var(--bg-elevated);
  transform: translateY(-1px);
}
.mentor-card.active { border-color: var(--accent); background: var(--accent-dim); }
.mentor-card-icon { font-size: 28px; margin-bottom: 12px; }
.mentor-card-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.mentor-card-role { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.mentor-card-level {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 8px;
}

/* ---- Chat ---- */
.chat-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  height: calc(100vh - var(--header-h) - 48px);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.chat-sidebar {
  border-right: 1px solid var(--border);
  overflow-y: auto;
  background: var(--bg-base);
}
.chat-sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 13px;
}
.chat-sidebar-item:hover { background: var(--bg-elevated); color: var(--text-primary); }
.chat-sidebar-item.active { background: var(--accent-dim); color: var(--accent); }
.chat-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.chat-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-header-icon { font-size: 22px; }
.chat-header-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.chat-header-role { font-size: 12px; color: var(--text-secondary); }
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
  scroll-behavior: smooth;
}
.chat-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  color: var(--text-muted);
  text-align: center;
}
.chat-empty-icon { font-size: 40px; }
.msg-row { display: flex; gap: 10px; align-items: flex-start; }
.msg-row.user { flex-direction: row-reverse; }
.msg-avatar {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  background: var(--bg-elevated);
}
.msg-avatar.user-av {
  background: var(--accent-dim);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}
.bubble {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}
.bubble.assistant {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: 12px 12px 12px 2px;
}
.bubble.user {
  background: var(--accent-dim);
  border: 1px solid rgba(79,142,247,0.2);
  color: var(--text-primary);
  border-radius: 12px 12px 2px 12px;
}
.msg-time { font-size: 10px; color: var(--text-muted); margin-top: 4px; text-align: right; }
.chat-input-area {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
.chat-input-area textarea {
  flex: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 9px 13px;
  font-size: 13px;
  color: var(--text-primary);
  resize: none;
  outline: none;
  line-height: 1.6;
  transition: border-color 0.15s;
}
.chat-input-area textarea:focus { border-color: var(--accent); }
.chat-input-area textarea::placeholder { color: var(--text-muted); }
.send-btn {
  width: 38px; height: 38px;
  border-radius: var(--radius);
  background: var(--accent);
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}
.send-btn:hover { background: var(--accent-hover); }
.send-btn:disabled { background: var(--bg-hover); color: var(--text-muted); cursor: not-allowed; }
.typing-dots { color: var(--text-muted); letter-spacing: 3px; }

/* ---- Score ring ---- */
.score-ring {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.score-ring svg { transform: rotate(-90deg); }
.score-ring-value {
  position: absolute;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}
.score-ring-label {
  position: absolute;
  top: 58%;
  font-size: 10px;
  color: var(--text-muted);
}

/* ---- Report items ---- */
.report-item {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s;
  text-decoration: none;
  color: inherit;
}
.report-item:hover { border-color: var(--border-light); }
.report-item.unread { border-left: 3px solid var(--accent); }
.report-icon { font-size: 20px; flex-shrink: 0; padding-top: 2px; }
.report-body { flex: 1; min-width: 0; }
.report-title { font-size: 13px; font-weight: 500; color: var(--text-primary); }
.report-summary { font-size: 12px; color: var(--text-secondary); margin-top: 3px; }
.report-meta { font-size: 11px; color: var(--text-muted); margin-top: 6px; display: flex; gap: 12px; }

/* ---- Journal history ---- */
.journal-day {
  border-left: 2px solid var(--border);
  padding-left: 20px;
  margin-bottom: 24px;
  position: relative;
}
.journal-day::before {
  content: '';
  position: absolute;
  left: -5px; top: 6px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.journal-day-date {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.journal-entry {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 8px;
}
.journal-entry-type {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.journal-entry-content { font-size: 13px; color: var(--text-primary); line-height: 1.7; }

/* ---- Kanban board ---- */
.kanban {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: start;
}
.kanban-col { background: var(--bg-elevated); border-radius: var(--radius-lg); padding: 14px; }
.kanban-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.kanban-col-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.kanban-col-count {
  font-size: 11px;
  font-weight: 700;
  background: var(--bg-hover);
  padding: 1px 7px;
  border-radius: 20px;
  color: var(--text-muted);
}
.kanban-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  margin-bottom: 6px;
  font-size: 12px;
}
.kanban-card-title { color: var(--text-primary); font-weight: 500; line-height: 1.4; }
.kanban-card-meta { color: var(--text-muted); font-size: 11px; margin-top: 4px; }

/* ---- Streak ---- */
.streak-bar {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.streak-day {
  width: 12px; height: 12px;
  border-radius: 2px;
  background: var(--bg-hover);
}
.streak-day.active { background: var(--green); }
.streak-day.partial { background: var(--yellow); }

/* ---- Integration list ---- */
.integration-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
}
.integration-icon { font-size: 20px; flex-shrink: 0; }
.integration-body { flex: 1; }
.integration-name { font-size: 13px; font-weight: 500; color: var(--text-primary); }
.integration-desc { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.integration-actions { display: flex; gap: 8px; align-items: center; }
.toggle-switch {
  position: relative;
  width: 36px; height: 20px;
  cursor: pointer;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-track {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg-hover);
  border-radius: 20px;
  transition: background 0.2s;
}
.toggle-switch input:checked + .toggle-track { background: var(--accent); }
.toggle-track::before {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}
.toggle-switch input:checked + .toggle-track::before { transform: translateX(16px); }

/* ---- Topbar notification button ---- */
.notif-btn {
  position: relative;
  width: 36px; height: 36px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: all 0.15s;
  text-decoration: none;
}
.notif-btn:hover { background: var(--bg-hover); color: var(--text-primary); }
.notif-count {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

/* ---- Misc ---- */
.divider { height: 1px; background: var(--border); margin: 16px 0; }
.text-muted  { color: var(--text-muted) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-accent { color: var(--accent) !important; }
.text-green  { color: var(--green) !important; }
.text-yellow { color: var(--yellow) !important; }
.text-red    { color: var(--red) !important; }
.text-sm { font-size: 12px; }
.text-xs { font-size: 11px; }
.fw-700 { font-weight: 700; }
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.flex  { display: flex; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ---- Auth layout ---- */
.auth-layout {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-base);
  padding: 20px;
}
.auth-box {
  width: 100%;
  max-width: 380px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.auth-logo {
  text-align: center;
  margin-bottom: 28px;
}
.auth-logo-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}
.auth-logo-sub {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 3px;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .kanban { grid-template-columns: repeat(2, 1fr); }
  .chat-layout { grid-template-columns: 1fr; }
  .chat-sidebar { display: none; }
}
