/* ═══════════════════════════════════════════
   VELMOR TASKS — Component stilleri (template uyumlu)
   ═══════════════════════════════════════════ */

/* ─── Sidebar ─── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: width 0.25s var(--ease);
  overflow: hidden;
  z-index: 20;
}
.sidebar-header {
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--border);
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-logo-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  display: flex; align-items: center; justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px; font-weight: 700; color: #fff;
  box-shadow: 0 4px 12px var(--accent-glow);
}
.sidebar-logo-text {
  font-size: 16px; font-weight: 800; letter-spacing: -0.3px;
}
.sidebar-logo-text span { color: var(--accent); }

.ws-selector {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; margin-top: 10px;
  border-radius: var(--r-md);
  background: var(--bg-input);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.15s var(--ease);
  text-align: left;
}
.ws-selector:hover { border-color: var(--border-accent); }
.ws-selector[aria-expanded="true"] { border-color: var(--border-accent); }
.ws-avatar {
  width: 24px; height: 24px; border-radius: 6px;
  background: linear-gradient(135deg, #818CF820, #818CF810);
  border: 1px solid #818CF820;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; color: var(--accent);
  font-family: 'IBM Plex Mono', monospace;
}
.ws-selector-info { flex: 1; min-width: 0; }
.ws-selector-name { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-selector-meta { font-size: 10px; color: var(--text-sec); }
.ws-selector-arrow { font-size: 12px; color: var(--text-dim); display: inline-flex; align-items: center; }
.ws-selector-arrow.bi { font-size: 12px; line-height: 1; }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 10px 10px; }
.nav-section { margin-bottom: 16px; }
.nav-label {
  font-size: 10px; font-weight: 700; color: var(--text-dim);
  letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 8px; margin-bottom: 2px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--r-md);
  font-size: 13px; font-weight: 500;
  color: var(--text-sec);
  transition: all 0.12s var(--ease);
  cursor: pointer;
  position: relative;
}
.nav-item:hover { background: var(--sidebar-hover); color: var(--text); }
.nav-item.active {
  background: var(--sidebar-active);
  color: var(--accent);
  font-weight: 700;
}
.nav-item.active::before {
  content: '';
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 18px; border-radius: 0 3px 3px 0;
  background: var(--accent);
}
.nav-icon { 
  font-size: 16px; 
  width: 20px; 
  text-align: center; 
  flex-shrink: 0; 
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav-icon.bi {
  font-size: 16px;
  line-height: 1;
}
.nav-badge {
  margin-left: auto;
  min-width: 18px; height: 18px; border-radius: 9px;
  background: var(--coral);
  color: #fff; font-size: 10px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px;
}
.nav-count {
  margin-left: auto;
  font-size: 11px; font-weight: 700; color: var(--text-dim);
  font-family: 'IBM Plex Mono', monospace;
}

.board-nav-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; border-radius: var(--r-sm);
  font-size: 12px; font-weight: 500; color: var(--text-sec);
  cursor: pointer; transition: all 0.12s var(--ease);
}
.board-nav-item:hover { background: var(--sidebar-hover); color: var(--text); }
.board-nav-item.active { color: var(--text); font-weight: 700; }
.board-dot {
  width: 8px; height: 8px; border-radius: 3px; flex-shrink: 0;
}

.sidebar-footer {
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.user-avatar {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, #818CF830, #818CF815);
  border: 1.5px solid #818CF820;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: var(--accent);
  font-family: 'IBM Plex Mono', monospace;
  flex-shrink: 0;
}
.user-info { flex: 1; min-width: 0; }
.user-name { font-size: 12px; font-weight: 700; }
.user-role { font-size: 10px; color: var(--text-sec); }

/* ─── Main content ─── */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* ─── Topbar ─── */
.topbar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
  flex-shrink: 0;
  min-height: 56px;
}
.topbar-title {
  font-size: 16px; font-weight: 800; letter-spacing: -0.3px;
}
.topbar-subtitle {
  font-size: 11px; color: var(--text-sec); font-weight: 500;
}
.topbar-breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-sec);
}
.topbar-breadcrumb span { color: var(--text-dim); }
.topbar-breadcrumb strong { color: var(--text); font-weight: 700; }
.topbar-actions { margin-left: auto; display: flex; gap: 6px; align-items: center; }

/* ─── Buttons ─── */
.btn-icon {
  width: 34px; height: 34px; border-radius: var(--r-md);
  background: var(--bg-input);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  transition: all 0.12s var(--ease);
}
.btn-icon:hover { background: var(--bg-card-hover); border-color: var(--border-accent); }

.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff; font-size: 12px; font-weight: 700;
  box-shadow: 0 4px 14px var(--accent-glow);
  transition: all 0.15s var(--ease);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px var(--accent-glow); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: var(--r-md);
  background: var(--bg-input);
  border: 1px solid var(--border);
  font-size: 12px; font-weight: 600; color: var(--text-sec);
  transition: all 0.12s var(--ease);
}
.btn-secondary:hover { border-color: var(--border-accent); color: var(--text); }

/* ─── Search ─── */
.search-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: var(--r-md);
  background: var(--bg-input);
  border: 1px solid var(--border);
  width: 240px;
  transition: all 0.15s var(--ease);
}
.search-bar:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.search-bar input {
  background: none; border: none; outline: none;
  font-size: 12px; flex: 1; color: var(--text);
}
.search-bar input::placeholder { color: var(--text-dim); }
.search-icon { font-size: 13px; opacity: 0.3; }

/* ─── Page ─── */
.page { flex: 1; overflow-y: auto; padding: 24px; }
.page-header { margin-bottom: 24px; }
.page-title { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 4px; }
.page-desc { font-size: 13px; color: var(--text-sec); }

/* ─── Board cards (dashboard) ─── */
.boards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
@media (min-width: 768px) {
  .boards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .boards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.boards-grid[data-view="list"] { grid-template-columns: 1fr; }

.board-card {
  border-radius: var(--r-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.18s var(--ease);
}
.board-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.board-card-banner { height: 5px; }
.board-card-body { padding: 16px 18px 14px; }
.board-card-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 6px; }
.board-card-name { font-size: 15px; font-weight: 700; }
.board-card-title a { color: var(--text); text-decoration: none; }
.board-card-title a:hover { text-decoration: underline; }
.board-card-star { font-size: 11px; opacity: 0.7; }
.board-card-desc { font-size: 12px; color: var(--text-sec); margin-bottom: 12px; line-height: 1.4; }
.board-card-stats { display: flex; gap: 8px; margin-bottom: 12px; }
.board-stat {
  font-size: 10px; font-weight: 700;
  padding: 3px 8px; border-radius: var(--r-sm);
}
.board-card-footer { display: flex; justify-content: space-between; align-items: center; }
.board-card-time { font-size: 10px; color: var(--text-dim); font-weight: 600; }
.board-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.5rem; }
.board-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: 0.75rem; font-size: 0.78rem; color: var(--text-sec); }

.avatar-stack { display: flex; }
.avatar-stack .avatar-sm { margin-left: -6px; }
.avatar-stack .avatar-sm:first-child { margin-left: 0; }
.avatar-sm {
  width: 24px; height: 24px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 800;
  font-family: 'IBM Plex Mono', monospace;
  border: 2px solid var(--bg-card);
}
.avatar-stack-item {
  width: 22px; height: 22px; border-radius: 999px;
  border: 2px solid var(--bg-card, var(--c-surface));
  background: var(--bg-input, var(--c-surface-muted));
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 600; color: var(--text-sec);
}
.avatar-stack-item + .avatar-stack-item { margin-inline-start: -8px; }

.boards-toolbar { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.boards-toolbar-main { flex: 1 1 auto; min-width: 260px; }
.boards-toolbar-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }

/* ─── Kanban ─── */
.kanban-container {
  flex: 1; display: flex; overflow-x: auto;
  padding: 16px 20px; gap: 12px;
  align-items: flex-start;
}
.kanban-col {
  min-width: 300px; max-width: 300px;
  display: flex; flex-direction: column;
  border-radius: var(--r-lg);
  background: var(--bg-kanban-col);
  border: 1px solid var(--kanban-col-border);
  box-shadow: var(--kanban-col-shadow);
  max-height: calc(100vh - 140px);
  flex-shrink: 0;
  transition: all 0.2s var(--ease);
  overflow: hidden;
}
.kanban-col:hover {
  border-color: var(--border-accent);
  box-shadow: var(--kanban-col-shadow-hover);
}
/* Kolon üst şeridi — sırayla farklı renk (accent, sage, blue, amber) */
.kanban-col:nth-child(4n+2) .col-header { border-top-color: var(--sage); }
.kanban-col:nth-child(4n+3) .col-header { border-top-color: var(--blue); }
.kanban-col:nth-child(4n+4) .col-header { border-top-color: var(--amber); }
.kanban-col.collapsed {
  min-width: 48px; max-width: 48px;
  cursor: pointer;
}
.kanban-col.collapsed:hover { background: var(--sidebar-hover); }

.col-header {
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
  background: var(--bg-input);
}
.col-emoji { font-size: 15px; display: inline-flex; align-items: center; }
.col-emoji.bi { font-size: 15px; line-height: 1; }
.col-name { font-size: 13px; font-weight: 700; flex: 1; }
.col-count {
  font-size: 11px; font-weight: 800;
  font-family: 'IBM Plex Mono', monospace;
  color: var(--text-sec);
}
.col-count.over { color: var(--coral); }
.col-actions { display: flex; gap: 2px; }
.col-btn {
  width: 26px; height: 26px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--text-dim);
  transition: all 0.12s var(--ease);
}
.col-btn:hover { background: var(--bg-input); color: var(--text-sec); }
.col-btn.col-btn-danger { color: var(--coral); }
.col-btn.col-btn-danger:hover { background: rgba(220, 53, 69, 0.12); color: var(--danger, #dc3545); }

.wip-bar-wrap { padding: 4px 14px 0; }
.wip-bar { height: 3px; border-radius: 2px; background: var(--bg-input); overflow: hidden; }
.wip-fill { height: 100%; border-radius: 2px; transition: width 0.3s var(--ease); }
.wip-label { font-size: 9px; color: var(--text-dim); font-weight: 600; margin-top: 2px; }
.wip-label.warn { color: var(--coral); }

.col-collapsed-inner {
  display: flex; flex-direction: column; align-items: center;
  padding: 14px 6px; gap: 8px;
}
.col-collapsed-name {
  writing-mode: vertical-rl; text-orientation: mixed;
  font-size: 12px; font-weight: 700; color: var(--text-sec);
  letter-spacing: 0.3px;
}
.col-collapsed-count {
  font-size: 10px; font-weight: 800; color: var(--accent);
  background: var(--accent-glow); border-radius: var(--r-sm);
  padding: 2px 5px;
}

.col-cards {
  flex: 1; overflow-y: auto;
  padding: 8px 10px;
  display: flex; flex-direction: column; gap: 6px;
}

.col-footer {
  padding: 8px 10px 10px;
  border-top: 1px solid var(--border);
}
.quick-add-btn {
  width: 100%; padding: 8px 10px;
  border-radius: var(--r-md);
  background: var(--bg-input);
  border: 1px dashed var(--border);
  font-size: 12px; font-weight: 600; color: var(--text-sec);
  display: flex; align-items: center; gap: 6px;
  transition: all 0.12s var(--ease);
}
.quick-add-btn:hover { border-color: var(--accent); color: var(--accent); border-style: solid; }
.quick-add-plus { color: var(--accent); font-weight: 800; }

.drop-placeholder {
  border: 2px dashed var(--border);
  border-radius: var(--r-md);
  padding: 20px;
  text-align: center;
  font-size: 12px; color: var(--text-dim); font-weight: 600;
}

/* ─── Task card ─── */
.task-card {
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.15s var(--ease);
  position: relative;
}
.task-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}
.task-card:hover .card-hover-actions { opacity: 1; }
.task-card.completed { opacity: 0.55; }
.task-card.is-completed { opacity: 0.55; }
.task-card.dragging {
  transform: scale(1.02) rotate(-1deg);
  box-shadow: 0 12px 32px var(--bg-overlay);
  z-index: 100;
}
.card-hover { transition: transform var(--t-fast) ease, box-shadow var(--t-fast) ease; }
.card-hover:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }

.card-labels { display: flex; gap: 4px; margin-bottom: 7px; flex-wrap: wrap; }
.card-label {
  font-size: 9px; font-weight: 700;
  padding: 1px 6px; border-radius: 4px;
  letter-spacing: 0.2px;
}
.card-title {
  font-size: 13px; font-weight: 600; line-height: 1.4;
  margin-bottom: 4px;
}
.task-card.completed .card-title { text-decoration: line-through; color: var(--text-sec); }
.task-card.is-completed .card-title { text-decoration: line-through; color: var(--text-sec); }
.card-desc-preview {
  font-size: 11px; color: var(--text-dim); line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  margin-bottom: 8px;
}
.card-footer { display: flex; align-items: center; justify-content: space-between; }
.card-meta { display: flex; align-items: center; gap: 6px; }
.card-badge {
  font-size: 9px; font-weight: 700;
  padding: 2px 6px; border-radius: 4px;
  display: inline-flex; align-items: center; gap: 2px;
}
.card-badge-due { font-size: 9px; color: var(--text-sec); display: flex; align-items: center; gap: 2px; }
.card-badge-due.overdue { color: var(--coral); background: var(--coral-bg); padding: 2px 6px; border-radius: 4px; }
.card-comments { font-size: 9px; color: var(--text-dim); font-weight: 600; }

.card-hover-actions {
  position: absolute; top: 6px; right: 6px;
  display: flex; gap: 2px;
  opacity: 0;
  transition: opacity 0.12s var(--ease);
}
.card-hover-btn {
  width: 24px; height: 24px; border-radius: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
  transition: all 0.12s var(--ease);
}
.card-hover-btn:hover { border-color: var(--accent); }

.card-check {
  position: absolute; top: 8px; right: 8px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--sage);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: #fff;
}
.task-card::before {
  content: "";
  position: absolute;
  inset-block: 8px;
  inset-inline-start: 0;
  width: 4px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.55);
}
.task-card.is-overdue::before { background: var(--coral); }
.task-card.is-completed::before { background: var(--sage); }

/* ─── Detail panel (slide-over) ─── */
.detail-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
}
.detail-overlay.open { opacity: 1; pointer-events: auto; }
.detail-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 520px;
  max-width: 100%;
  background: var(--bg-surface);
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  z-index: 1051;
  overflow: hidden;
}
.detail-overlay.open .detail-panel { transform: translateX(0); }

.detail-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}
.detail-breadcrumb { font-size: 11px; color: var(--text-sec); flex: 1; }
.detail-breadcrumb strong { color: var(--text); }

.detail-body { flex: 1; overflow-y: auto; padding: 20px; }

.detail-title {
  font-size: 20px; font-weight: 800; letter-spacing: -0.3px;
  line-height: 1.3; margin-bottom: 12px;
}
.detail-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.detail-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 10px; border-radius: var(--r-sm);
  background: var(--bg-input);
  border: 1px solid var(--border);
  font-size: 11px; font-weight: 600; color: var(--text-sec);
}

.detail-tabs {
  display: flex; gap: 0; border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}
.detail-tab {
  padding: 10px 14px;
  font-size: 12px; font-weight: 500; color: var(--text-sec);
  border-bottom: 2px solid transparent;
  transition: all 0.12s var(--ease);
  display: flex; align-items: center; gap: 5px;
}
.detail-tab:hover { color: var(--text); }
.detail-tab.active {
  color: var(--accent); font-weight: 700;
  border-bottom-color: var(--accent);
  background: var(--accent-solid);
  border-radius: var(--r-sm) var(--r-sm) 0 0;
}

.detail-section { margin-bottom: 20px; }
.detail-label {
  font-size: 11px; font-weight: 700; color: var(--text-dim);
  letter-spacing: 0.8px; text-transform: uppercase; margin-bottom: 8px;
}
.detail-desc-box {
  padding: 14px;
  border-radius: var(--r-md);
  background: var(--bg-input);
  border: 1px solid var(--border);
  font-size: 13px; line-height: 1.6;
  color: var(--text-sec);
  min-height: 80px;
  cursor: text;
  transition: border-color 0.15s var(--ease);
}
.detail-desc-box:hover { border-color: var(--border-accent); }

.checklist-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  border-radius: var(--r-md);
  background: var(--bg-input);
  border: 1px solid var(--border);
  margin-bottom: 4px;
  transition: all 0.12s var(--ease);
}
.checklist-item:hover { border-color: var(--border-accent); }
.check-box {
  width: 18px; height: 18px; border-radius: 5px;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s var(--ease);
  cursor: pointer;
}
.check-box.checked { background: var(--sage); border-color: var(--sage); }
.check-box.checked::after { content: '✓'; font-size: 10px; color: #fff; }
.checklist-text { font-size: 13px; }
.checklist-text.done { text-decoration: line-through; color: var(--text-dim); }

.assignee-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.assignee-name { font-size: 13px; font-weight: 600; }
.assignee-role { font-size: 11px; color: var(--text-sec); }
.assignee-remove { font-size: 10px; color: var(--coral); font-weight: 700; cursor: pointer; margin-left: auto; }
.assignee-remove:hover { text-decoration: underline; }

.comment-item { display: flex; gap: 10px; margin-bottom: 16px; }
.comment-bubble {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 3px var(--r-md) var(--r-md) var(--r-md);
  padding: 10px 12px;
  font-size: 13px; line-height: 1.5; color: var(--text-sec);
  flex: 1;
}
.comment-head { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.comment-author { font-size: 12px; font-weight: 700; color: var(--text); }
.comment-time { font-size: 10px; color: var(--text-dim); }

.comment-input-wrap { display: flex; gap: 8px; padding: 14px 0; border-top: 1px solid var(--border); }
.comment-input {
  flex: 1; padding: 10px 14px;
  border-radius: var(--r-md);
  background: var(--bg-input);
  border: 1px solid var(--border);
  font-size: 13px; outline: none;
  transition: border-color 0.15s var(--ease);
}
.comment-input:focus { border-color: var(--accent); }
.comment-send {
  width: 38px; height: 38px; border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: #fff;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.timeline-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); position: relative; }
.timeline-line { position: absolute; left: 15px; top: 40px; bottom: 0; width: 1px; background: var(--border); }
.timeline-content { flex: 1; font-size: 12px; line-height: 1.4; }
.timeline-action { color: var(--text-sec); }
.timeline-target { font-weight: 600; color: var(--text); }
.timeline-time { font-size: 10px; color: var(--text-dim); margin-top: 2px; display: block; }
.timeline-comment {
  background: var(--bg-input); border-radius: var(--r-sm);
  padding: 8px 10px; font-size: 11px; color: var(--text-sec);
  margin-top: 6px; line-height: 1.4;
}

/* ─── My Tasks (stats, filter, list) ─── */
.stats-row { display: flex; gap: 10px; margin-bottom: 18px; }
.stat-box {
  flex: 1; padding: 14px 16px; border-radius: var(--r-lg);
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.stat-value {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 24px; font-weight: 700;
}
.stat-label { font-size: 11px; font-weight: 600; color: var(--text-sec); margin-top: 2px; }

.filter-tabs { display: flex; gap: 4px; margin-bottom: 16px; }
.filter-tab {
  padding: 7px 14px; border-radius: var(--r-sm);
  font-size: 12px; font-weight: 500; color: var(--text-sec);
  transition: all 0.12s var(--ease);
  cursor: pointer;
}
.filter-tab:hover { background: var(--sidebar-hover); color: var(--text); }
.filter-tab.active {
  background: var(--accent-solid);
  color: var(--accent); font-weight: 700;
  border: 1px solid var(--border-accent);
}

.task-list-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: var(--r-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  margin-bottom: 6px;
  transition: all 0.12s var(--ease);
  cursor: pointer;
}
.task-list-item:hover { border-color: var(--border-accent); }
.task-checkbox {
  width: 22px; height: 22px; border-radius: 7px;
  border: 2px solid var(--border);
  flex-shrink: 0;
  transition: all 0.15s var(--ease);
}
.task-checkbox:hover { border-color: var(--accent); }
.task-list-title { font-size: 13px; font-weight: 600; }
.task-list-meta { display: flex; align-items: center; gap: 6px; margin-top: 3px; }
.task-list-meta span { font-size: 10px; color: var(--text-dim); }
.task-list-meta .separator { color: var(--text-dim); }
.task-list-column { font-size: 10px; color: var(--text-sec); font-weight: 600; }
.task-due-badge {
  font-size: 10px; font-weight: 700;
  padding: 3px 8px; border-radius: var(--r-sm);
  margin-left: auto; flex-shrink: 0;
}
.task-due-badge.overdue { color: var(--coral); background: var(--coral-bg); }
.task-due-badge.normal { color: var(--text-sec); }

/* ─── Settings & Members ─── */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.settings-card {
  border-radius: var(--r-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 20px;
}
.settings-card-label { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.settings-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.settings-row:last-child { border-bottom: none; }
.settings-row-label { font-size: 13px; font-weight: 500; }
.settings-row-value { font-size: 12px; color: var(--accent); font-weight: 700; }

.toggle {
  width: 42px; height: 22px; border-radius: 11px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  position: relative;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.toggle.on { background: linear-gradient(135deg, var(--accent), var(--accent-light)); border-color: transparent; }
.toggle-knob {
  position: absolute; top: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: left 0.2s var(--ease);
}
.toggle:not(.on) .toggle-knob { left: 2px; }
.toggle.on .toggle-knob { left: 22px; }

.theme-pick { display: flex; gap: 8px; }
.theme-btn {
  flex: 1; padding: 12px; border-radius: var(--r-md);
  background: var(--bg-input);
  border: 1px solid var(--border);
  font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: all 0.12s var(--ease);
  cursor: pointer;
}
.theme-btn.active { border-color: var(--accent); color: var(--accent); background: var(--accent-solid); font-weight: 700; }

.btn-danger {
  padding: 9px 18px; border-radius: var(--r-md);
  border: 1.5px solid var(--coral);
  color: var(--coral); font-size: 12px; font-weight: 700;
  background: transparent;
  transition: all 0.12s var(--ease);
}
.btn-danger:hover { background: var(--coral-bg); }

.member-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: var(--r-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  margin-bottom: 8px;
  transition: all 0.12s var(--ease);
}
.member-card:hover { border-color: var(--border-accent); }
.member-avatar {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800;
  font-family: 'IBM Plex Mono', monospace;
}
.member-name { font-size: 14px; font-weight: 700; }
.member-email { font-size: 11px; color: var(--text-sec); }
.member-role {
  margin-left: auto;
  font-size: 10px; font-weight: 700;
  padding: 4px 10px; border-radius: var(--r-sm);
}

/* ─── Badges (geriye uyumlu) ─── */
.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg-input);
  color: var(--text-sec);
}
.badge-soft-primary { border-color: var(--border-accent); background: var(--accent-solid); color: var(--accent); }
.badge-soft-danger { border-color: rgba(249,112,102,0.3); background: var(--coral-bg); color: var(--coral); }
.badge-soft-success { border-color: rgba(52,211,153,0.3); background: var(--sage-bg); color: var(--sage); }

/* ─── Inline inputs (kanban) ─── */
.kanban-list-title-input {
  border: 1px solid transparent;
  background: transparent;
  box-shadow: none;
  padding: 0;
  height: auto;
  font-size: 0.875rem;
}
.kanban-card-title-input {
  border: 1px solid transparent;
  background: transparent;
  box-shadow: none;
  padding: 0;
  height: auto;
  font-size: 0.875rem;
}
.kanban-card-title-input:focus {
  border-color: var(--accent);
  background-color: var(--accent-solid);
  outline: none;
}
.kanban-list-title-input:focus {
  border-color: var(--border);
  background: var(--bg-input);
  box-shadow: none;
}

/* ─── Animations ─── */
@keyframes slide-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slide-in-right {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.anim-up { animation: slide-up 0.3s var(--ease) both; }
.anim-up-1 { animation: slide-up 0.3s 0.05s var(--ease) both; }
.anim-up-2 { animation: slide-up 0.3s 0.1s var(--ease) both; }
.anim-up-3 { animation: slide-up 0.3s 0.15s var(--ease) both; }
.anim-up-4 { animation: slide-up 0.3s 0.2s var(--ease) both; }
.anim-in { animation: slide-in-right 0.25s var(--ease) both; }
.anim-in-1 { animation: slide-in-right 0.25s 0.06s var(--ease) both; }
.anim-in-2 { animation: slide-in-right 0.25s 0.12s var(--ease) both; }
.anim-in-3 { animation: slide-in-right 0.25s 0.18s var(--ease) both; }
.anim-in-4 { animation: slide-in-right 0.25s 0.24s var(--ease) both; }
.anim-fade { animation: fade-in 0.3s var(--ease) both; }/* ─── Skeleton ─── */
.skeleton-block {
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.1), rgba(148, 163, 184, 0.25), rgba(148, 163, 184, 0.1));
  background-size: 200% 100%;
  animation: skeleton-loading 1.2s ease-in-out infinite;
}
@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .skeleton-block { animation: none; }
}
