/* ═══════════════════════════════════════════════════════════
   FLOWMIND — Premium AI Productivity App
   Aesthetic: Dark editorial with electric amber accents
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg:          #0d0d0f;
  --bg2:         #131316;
  --bg3:         #1a1a1f;
  --bg4:         #222228;
  --border:      #2a2a32;
  --border2:     #3a3a46;

  --accent:      #f0b429;
  --accent2:     #ff6b35;
  --accent3:     #00d4aa;

  --text:        #f0eff4;
  --text2:       #9998a8;
  --text3:       #5f5f70;

  --radius:      14px;
  --radius-sm:   8px;
  --sidebar-w:   240px;

  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --shadow:   0 8px 32px rgba(0,0,0,0.4);
  --glow:     0 0 24px rgba(240,180,41,0.15);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── SCROLLBAR ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

/* ─── SIDEBAR ─────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--bg2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  z-index: 100;
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  padding: 28px 16px 24px;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
  padding: 0 8px;
}

.brand-icon {
  width: 36px; height: 36px;
  background: var(--accent);
  border-radius: 10px;
  display: grid; place-items: center;
  font-size: 1.1rem;
  color: var(--bg);
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -.02em;
  color: var(--text);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: none;
  background: transparent;
  color: var(--text2);
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all .18s ease;
  text-align: left;
}

.nav-btn:hover {
  background: var(--bg3);
  color: var(--text);
}

.nav-btn.active {
  background: var(--bg4);
  color: var(--accent);
  font-weight: 600;
}

.nav-icon {
  font-size: 1rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-footer {
  padding: 0 4px;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  background: var(--bg3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.user-avatar {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .9rem;
  color: var(--bg);
  flex-shrink: 0;
}

.user-name {
  font-size: .85rem;
  font-weight: 500;
  color: var(--text);
}

.user-streak {
  font-size: .75rem;
  color: var(--text2);
}

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

/* ─── TOPBAR ──────────────────────────────────────────── */
.topbar {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  border-bottom: 1px solid var(--border);
  background: rgba(13,13,15,.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-left { display: flex; align-items: center; gap: 16px; }

.page-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -.02em;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text2);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 6px;
}

.topbar-right { display: flex; align-items: center; gap: 12px; }

.date-chip {
  font-size: .8rem;
  color: var(--text2);
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 14px;
}

/* ─── BUTTONS ─────────────────────────────────────────── */
.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 20px;
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .18s ease;
  letter-spacing: -.01em;
}

.btn-primary:hover {
  background: #ffc947;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(240,180,41,.3);
}

.btn-ghost {
  background: transparent;
  color: var(--text2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 8px 20px;
  font-family: var(--font-body);
  font-size: .88rem;
  cursor: pointer;
  transition: all .18s ease;
}

.btn-ghost:hover { border-color: var(--text2); color: var(--text); }

.link-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-size: .85rem;
  cursor: pointer;
  font-family: var(--font-body);
}

/* ─── VIEWS ───────────────────────────────────────────── */
.view {
  display: none;
  padding: 32px;
  animation: fadeUp .35s ease both;
}

.view.active { display: block; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── HERO BANNER ─────────────────────────────────────── */
.hero-banner {
  background: linear-gradient(135deg, var(--bg3) 0%, #1e1a2e 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(240,180,41,.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-label {
  font-size: .7rem;
  letter-spacing: .1em;
  color: var(--text3);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.hero-score {
  font-family: var(--font-head);
  font-size: 5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -.04em;
}

.hero-sub {
  font-size: .9rem;
  color: var(--text2);
  margin-top: 8px;
}

.ring-wrap {
  position: relative;
  width: 120px; height: 120px;
}

.progress-ring {
  transform: rotate(-90deg);
  width: 120px; height: 120px;
}

.ring-bg {
  fill: none;
  stroke: var(--bg4);
  stroke-width: 8;
}

.ring-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 314;
  stroke-dashoffset: 314;
  transition: stroke-dashoffset 1.2s cubic-bezier(.4,0,.2,1);
  filter: drop-shadow(0 0 6px rgba(240,180,41,.4));
}

.ring-pct {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text);
}

/* ─── SECTION HEADER ──────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-header h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -.02em;
}

/* ─── TIME BLOCKS ─────────────────────────────────────── */
.time-blocks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.time-block {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  transition: all .2s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.time-block:hover {
  border-color: var(--border2);
  background: var(--bg3);
  transform: translateX(4px);
}

.time-block.done { opacity: .5; }
.time-block.done .tb-title { text-decoration: line-through; }

.tb-accent-bar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  border-radius: 2px 0 0 2px;
}

.tb-time {
  font-size: .78rem;
  color: var(--text3);
  width: 70px;
  flex-shrink: 0;
  font-weight: 500;
}

.tb-title {
  flex: 1;
  font-size: .93rem;
  font-weight: 500;
  color: var(--text);
}

.tb-cat {
  font-size: .72rem;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
  letter-spacing: .02em;
}

.cat-work    { background: rgba(240,180,41,.15); color: var(--accent); }
.cat-personal { background: rgba(0,212,170,.15); color: var(--accent3); }
.cat-health  { background: rgba(255,107,53,.15);  color: var(--accent2); }

.tb-check {
  width: 24px; height: 24px;
  border: 2px solid var(--border2);
  border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer;
  transition: all .2s;
  flex-shrink: 0;
  font-size: .8rem;
}

.tb-check.checked {
  background: var(--accent3);
  border-color: var(--accent3);
}

/* ─── STATS ROW ───────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 8px;
}

.stat-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: all .2s;
}

.stat-card:hover { border-color: var(--border2); }

.stat-val {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.04em;
}

.stat-label {
  font-size: .78rem;
  color: var(--text2);
  margin-top: 4px;
}

/* ─── FILTER BAR ──────────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.filter-btn {
  padding: 7px 18px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text2);
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .18s;
}

.filter-btn.active, .filter-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

/* ─── KANBAN ──────────────────────────────────────────── */
.kanban {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.kanban-col {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  min-height: 400px;
}

.kanban-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 14px;
}

.col-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}

.dot-todo       { background: var(--text3); }
.dot-inprogress { background: var(--accent); }
.dot-done       { background: var(--accent3); }

.col-count {
  margin-left: auto;
  background: var(--bg3);
  border-radius: 20px;
  padding: 1px 8px;
  font-size: .75rem;
  color: var(--text3);
}

.kanban-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 120px;
}

.kanban-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  cursor: grab;
  transition: all .2s;
  position: relative;
}

.kanban-card:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.kanban-card:active { cursor: grabbing; }

.kc-title {
  font-size: .88rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}

.kc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kc-priority {
  font-size: .7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}

.pri-high   { background: rgba(255,100,100,.15); color: #ff6464; }
.pri-medium { background: rgba(240,180,41,.15);  color: var(--accent); }
.pri-low    { background: rgba(0,212,170,.15);   color: var(--accent3); }

.kc-time {
  font-size: .73rem;
  color: var(--text3);
}

.kc-action-btn {
  margin-top: 10px;
  width: 100%;
  padding: 5px 0;
  border-radius: 6px;
  border: 1px solid;
  background: transparent;
  font-size: .75rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all .18s;
  letter-spacing: .02em;
}

.kc-action-btn:hover {
  opacity: .8;
  transform: translateY(-1px);
}

/* ─── AI CHAT ─────────────────────────────────────────── */
.ai-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  height: calc(100vh - 128px);
}

.ai-chat-panel {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.ai-avatar-lg {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.2rem;
  color: var(--bg);
  flex-shrink: 0;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(240,180,41,.4); }
  50%       { box-shadow: 0 0 0 8px rgba(240,180,41,0); }
}

.chat-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
}

.chat-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  color: var(--accent3);
}

.status-dot {
  width: 6px; height: 6px;
  background: var(--accent3);
  border-radius: 50%;
  animation: blink 2s ease infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: .4; }
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.msg { display: flex; flex-direction: column; max-width: 80%; }

.ai-msg { align-self: flex-start; }
.user-msg { align-self: flex-end; }

.msg-bubble {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: .88rem;
  line-height: 1.55;
}

.ai-msg .msg-bubble {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  color: var(--text);
}

.user-msg .msg-bubble {
  background: var(--accent);
  color: var(--bg);
  border-bottom-right-radius: 4px;
  font-weight: 500;
}

.msg-time {
  font-size: .7rem;
  color: var(--text3);
  margin-top: 4px;
  padding: 0 4px;
}

.user-msg .msg-time { text-align: right; }

.typing-indicator .msg-bubble {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 14px 18px;
}

.typing-dot {
  width: 6px; height: 6px;
  background: var(--text3);
  border-radius: 50%;
  animation: typingBounce .8s ease infinite;
}

.typing-dot:nth-child(2) { animation-delay: .15s; }
.typing-dot:nth-child(3) { animation-delay: .3s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30%            { transform: translateY(-6px); }
}

.chat-input-wrap {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
}

.chat-input {
  flex: 1;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 11px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: .88rem;
  outline: none;
  transition: border-color .2s;
}

.chat-input:focus { border-color: var(--accent); }
.chat-input::placeholder { color: var(--text3); }

.chat-send {
  width: 42px; height: 42px;
  background: var(--accent);
  border: none;
  border-radius: 10px;
  color: var(--bg);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .18s;
  display: grid; place-items: center;
}

.chat-send:hover {
  background: #ffc947;
  transform: scale(1.05);
}

.quick-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 20px 16px;
}

.qp-btn {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: .78rem;
  color: var(--text2);
  cursor: pointer;
  font-family: var(--font-body);
  transition: all .18s;
}

.qp-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ─── AI SIDEBAR PANEL ────────────────────────────────── */
.ai-sidebar-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.insight-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.insight-title {
  font-size: .75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 10px;
}

.insight-text {
  font-size: .85rem;
  color: var(--text2);
  line-height: 1.5;
}

.week-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 60px;
  margin-top: 4px;
}

.wbar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: var(--border2);
  position: relative;
  cursor: pointer;
  transition: background .2s;
}

.wbar:hover { background: var(--accent); }
.wbar.today { background: var(--accent); }

.wbar-label {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: .65rem;
  color: var(--text3);
}

/* ─── ANALYTICS ───────────────────────────────────────── */
.analytics-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 8px;
}

.analytics-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: all .2s;
}

.analytics-card:hover { border-color: var(--border2); }

.analytics-card.big {
  padding: 24px 26px;
}

.card-label {
  font-size: .75rem;
  color: var(--text2);
  font-weight: 500;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.big-number {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--text);
  line-height: 1;
}

.sparkline-wrap { margin-top: 16px; }

.category-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.cat-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cat-bar-label {
  width: 80px;
  font-size: .82rem;
  color: var(--text2);
  flex-shrink: 0;
}

.cat-bar-track {
  flex: 1;
  height: 8px;
  background: var(--bg3);
  border-radius: 4px;
  overflow: hidden;
}

.cat-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s cubic-bezier(.4,0,.2,1);
}

.cat-bar-pct {
  width: 36px;
  text-align: right;
  font-size: .8rem;
  color: var(--text2);
  font-weight: 600;
}

/* ─── HEATMAP ─────────────────────────────────────────── */
.heatmap-wrap {
  margin-top: 24px;
}

.heatmap {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 16px 20px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.hm-week {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hm-cell {
  width: 14px; height: 14px;
  border-radius: 3px;
  background: var(--bg3);
  transition: transform .2s;
  cursor: pointer;
}

.hm-cell:hover { transform: scale(1.5); }
.hm-0 { background: var(--bg3); }
.hm-1 { background: rgba(240,180,41,.2); }
.hm-2 { background: rgba(240,180,41,.45); }
.hm-3 { background: rgba(240,180,41,.7); }
.hm-4 { background: var(--accent); }

/* ─── MODAL ───────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  place-items: center;
}

.modal-overlay.open { display: grid; }

.modal {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 20px;
  width: 480px;
  max-width: calc(100vw - 40px);
  box-shadow: var(--shadow);
  animation: modalIn .25s cubic-bezier(.34,1.56,.64,1) both;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(.9) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text2);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  transition: color .2s;
}

.modal-close:hover { color: var(--text); }

.modal-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-input {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: .9rem;
  outline: none;
  transition: border-color .2s;
}

.modal-input:focus { border-color: var(--accent); }
.modal-input::placeholder { color: var(--text3); }

.modal-input-sm {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: .88rem;
  outline: none;
  transition: border-color .2s;
  flex: 1;
}

.modal-input-sm:focus { border-color: var(--accent); }
.modal-input-sm::placeholder { color: var(--text3); }

.modal-row {
  display: flex;
  gap: 8px;
}

.modal-select {
  flex: 1;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: .85rem;
  outline: none;
  cursor: pointer;
  appearance: none;
}

.modal-textarea {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: .87rem;
  outline: none;
  resize: vertical;
  min-height: 80px;
  transition: border-color .2s;
}

.modal-textarea:focus { border-color: var(--accent); }
.modal-textarea::placeholder { color: var(--text3); }

.modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}

/* ─── TOAST ───────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg4);
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 10px 22px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transition: all .3s;
  z-index: 999;
  white-space: nowrap;
  box-shadow: var(--shadow);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open { transform: translateX(0); }

  .main-content { margin-left: 0; }
  .hamburger { display: block; }

  .kanban { grid-template-columns: 1fr; }
  .analytics-grid { grid-template-columns: 1fr 1fr; }
  .analytics-card.big { grid-column: span 2; }
  .ai-layout { grid-template-columns: 1fr; height: auto; }
  .ai-sidebar-panel { display: none; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .view { padding: 20px; }
}

@media (max-width: 600px) {
  .hero-banner { flex-direction: column; gap: 20px; text-align: center; }
  .hero-score { font-size: 4rem; }
  .analytics-grid { grid-template-columns: 1fr; }
  .analytics-card.big { grid-column: span 1; }
  .stats-row { grid-template-columns: 1fr; }
}
