/* ============================================================
   META-KANBAN — Premium Dark Theme
   ============================================================ */

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

:root {
  --bg-base: #0d0f14;
  --bg-surface: #13161e;
  --bg-overlay: #1a1e2a;
  --bg-card: #1e2231;
  --bg-card-hover: #252a3a;
  --bg-input: #151820;

  --accent: #6c63ff;
  --accent-glow: rgba(108, 99, 255, 0.35);
  --accent-hover: #8b85ff;
  --accent-meta: #00d2ff;
  --accent-meta-glow: rgba(0, 210, 255, 0.3);
  --danger: #ff5272;
  --success: #36d399;

  --text-primary: #e8eaf0;
  --text-secondary: #8a8fa8;
  --text-muted: #555a72;

  --border: rgba(255, 255, 255, 0.07);
  --border-bright: rgba(255, 255, 255, 0.14);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.5);
  --shadow-modal: 0 24px 80px rgba(0, 0, 0, 0.7);

  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --col-width: 300px;
}

html {
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Background mesh */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(108, 99, 255, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(0, 210, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   HEADER
   ============================================================ */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  height: 56px;
  background: rgba(13, 15, 20, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.logo-icon {
  font-size: 22px;
  background: linear-gradient(135deg, var(--accent), var(--accent-meta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

.logo-text {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 40%, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 0;
}

.breadcrumb::-webkit-scrollbar {
  display: none;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.breadcrumb-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.breadcrumb-btn:hover {
  color: var(--text-primary);
  background: var(--bg-overlay);
}

.breadcrumb-btn.active {
  color: var(--text-primary);
  font-weight: 600;
}

.breadcrumb-sep {
  color: var(--text-muted);
  font-size: 0.75rem;
  user-select: none;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* ============================================================
   BOARD TITLE BAR
   ============================================================ */
.board-title-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 28px 8px;
  position: relative;
  z-index: 1;
}

.board-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  outline: none;
  border-radius: var(--radius-sm);
  padding: 2px 8px;
  transition: background var(--transition);
  cursor: text;
}

.board-title:hover {
  background: var(--bg-overlay);
}

.board-title:focus {
  background: var(--bg-overlay);
  box-shadow: 0 0 0 2px var(--accent);
}

.board-depth-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
  background: linear-gradient(135deg, var(--accent), var(--accent-meta));
  color: #fff;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

/* ============================================================
   BOARD CONTAINER
   ============================================================ */
.board-container {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 28px 40px;
  overflow-x: auto;
  position: relative;
  z-index: 1;
}

.board-container::-webkit-scrollbar {
  height: 6px;
}

.board-container::-webkit-scrollbar-track {
  background: transparent;
}

.board-container::-webkit-scrollbar-thumb {
  background: var(--border-bright);
  border-radius: 99px;
}

.columns-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-shrink: 0;
}

/* ============================================================
   COLUMNS
   ============================================================ */
.column {
  width: var(--col-width);
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: box-shadow var(--transition);
}

.column.drag-over {
  box-shadow: 0 0 0 2px var(--accent), inset 0 0 30px rgba(108, 99, 255, 0.08);
}

.column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  gap: 8px;
}

.column-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.column-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  outline: none;
  border-radius: var(--radius-sm);
  padding: 2px 6px;
  transition: background var(--transition);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.column-title:hover {
  background: var(--bg-overlay);
}

.column-title:focus {
  background: var(--bg-overlay);
}

.column-count {
  font-size: 0.7rem;
  font-weight: 600;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-overlay);
  color: var(--text-secondary);
  border-radius: 99px;
  padding: 0 6px;
  flex-shrink: 0;
}

.column-actions {
  display: flex;
  gap: 2px;
  opacity: 0;
  transition: opacity var(--transition);
}

.column:hover .column-actions {
  opacity: 1;
}

/* Cards area */
.cards-list {
  padding: 4px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 60px;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  cursor: pointer;
  transition:
    background var(--transition),
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
  position: relative;
  overflow: hidden;
  user-select: none;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  transition: background var(--transition);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-bright);
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
}

.card:hover::before {
  background: linear-gradient(90deg, var(--accent), var(--accent-meta));
}

/* Card with sub-board */
.card.has-subboard {
  border-color: rgba(108, 99, 255, 0.3);
}

.card.has-subboard::before {
  background: linear-gradient(90deg, var(--accent), var(--accent-meta));
}

.card.has-subboard:hover {
  border-color: rgba(108, 99, 255, 0.6);
  box-shadow: 0 4px 24px var(--accent-glow);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.card-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
  flex: 1;
}

.card-meta-icon {
  font-size: 0.9rem;
  flex-shrink: 0;
  opacity: 0.7;
  margin-top: 1px;
}

.card-desc-preview {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.card-enter-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-meta);
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid rgba(0, 210, 255, 0.25);
  border-radius: 99px;
  padding: 3px 10px;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--transition), box-shadow var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.card-enter-btn:hover {
  background: rgba(0, 210, 255, 0.2);
  box-shadow: 0 0 12px var(--accent-meta-glow);
}

.card-enter-btn svg {
  flex-shrink: 0;
}

/* Dragging state */
.card.dragging {
  opacity: 0.4;
  transform: scale(0.97);
}

/* Add card button */
.btn-add-card {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.82rem;
  padding: 8px 14px 12px;
  cursor: pointer;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  transition: color var(--transition), background var(--transition);
  text-align: left;
}

.btn-add-card:hover {
  color: var(--text-secondary);
  background: var(--bg-overlay);
}

.btn-add-card .add-symbol {
  font-size: 1rem;
  line-height: 1;
}

/* ============================================================
   ADD COLUMN BUTTON
   ============================================================ */
.btn-add-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 220px;
  min-height: 80px;
  background: var(--bg-surface);
  border: 1.5px dashed var(--border-bright);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
  align-self: center;
}

.btn-add-column:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(108, 99, 255, 0.06);
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn-add-column .add-icon {
  font-size: 1.5rem;
}

/* ============================================================
   ICON BUTTONS
   ============================================================ */
.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
  flex-shrink: 0;
}

.btn-icon:hover {
  color: var(--text-primary);
  background: var(--bg-overlay);
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--bg-overlay);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 500px;
  box-shadow: var(--shadow-modal);
  transform: scale(0.94) translateY(12px);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.modal-overlay.open .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 20px 0;
}

.modal-title-row {
  flex: 1;
}

.modal-card-title-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition);
}

.modal-card-title-input:focus {
  border-color: var(--accent);
}

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

.modal-desc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.modal-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.modal-tabs {
  display: flex;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  padding: 2px;
  border: 1px solid var(--border);
}

.modal-tab {
  background: transparent;
  border: none;
  border-radius: 4px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 4px 10px;
  cursor: pointer;
  transition: all var(--transition);
}

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

.modal-tab.active {
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.modal-desc-container {
  display: flex;
  flex-direction: column;
}

.modal-card-desc {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.85rem;
  color: var(--text-primary);
  outline: none;
  resize: vertical;
  transition: border-color var(--transition);
  line-height: 1.5;
  min-height: 120px;
}

.modal-card-desc:focus {
  border-color: var(--accent);
}

.modal-card-preview {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  min-height: 120px;
  overflow-y: auto;
}

.modal-subboard-section {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
}

/* Attachments */
.modal-attachments-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-attach {
  background: var(--bg-overlay);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 4px 10px;
  cursor: pointer;
  transition: all var(--transition);
}

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

.attachments-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.attachment-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.attachment-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.attachment-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-primary);
  text-decoration: none;
}

.attachment-name:hover {
  color: var(--accent-meta);
  text-decoration: underline;
}

.attachment-size {
  font-size: 0.68rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.attachment-delete {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 2px;
  line-height: 1;
  transition: color var(--transition);
}

.attachment-delete:hover {
  color: var(--danger);
}

.card-attachments-badge {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Card Labels (on board) */
.card-labels {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  padding: 4px 0 2px;
}

.card-label-pill {
  width: 32px;
  height: 6px;
  border-radius: 3px;
  display: inline-block;
}

/* Label selector (in modal) */
.modal-labels-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.labels-selector {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.label-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}

.label-circle:hover {
  transform: scale(1.15);
}

.label-circle.active {
  border-color: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.label-circle.active::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Column dragging */
.column.col-dragging {
  opacity: 0.4;
  border: 2px dashed var(--accent);
}

.column.col-drag-over {
  border: 2px solid var(--accent-meta);
  box-shadow: 0 0 20px rgba(108, 99, 255, 0.2);
}

.subboard-info {
  display: none;
  flex-direction: column;
  gap: 10px;
}

.subboard-info.visible {
  display: flex;
}

.subboard-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.subboard-icon {
  font-size: 1.1rem;
}

.btn-enter-board {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-meta));
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity var(--transition), box-shadow var(--transition);
}

.btn-enter-board:hover {
  opacity: 0.9;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.subboard-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.btn-create-subboard {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-overlay);
  border: 1.5px dashed var(--border-bright);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-create-subboard:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(108, 99, 255, 0.06);
}

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

.btn-primary {
  padding: 9px 22px;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-danger {
  padding: 9px 22px;
  background: transparent;
  border: 1px solid rgba(255, 82, 114, 0.4);
  border-radius: var(--radius-md);
  color: var(--danger);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-danger:hover {
  background: rgba(255, 82, 114, 0.12);
  border-color: var(--danger);
}

/* ============================================================
   TOAST
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 999;
}

.toast {
  background: var(--bg-overlay);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  font-size: 0.85rem;
  color: var(--text-primary);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  animation: toastIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  max-width: 300px;
}

.toast.success {
  border-left: 3px solid var(--success);
}

.toast.info {
  border-left: 3px solid var(--accent);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(20px);
  }
}

.toast.removing {
  animation: toastOut 0.25s ease forwards;
}

/* ============================================================
   INLINE ADD CARD INPUT
   ============================================================ */
.add-card-form {
  padding: 4px 10px 8px;
}

.add-card-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.875rem;
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.add-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.btn-sm {
  padding: 5px 14px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

.btn-sm.primary {
  background: var(--accent);
  color: #fff;
}

.btn-sm.primary:hover {
  background: var(--accent-hover);
}

.btn-sm.cancel {
  background: var(--bg-overlay);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-sm.cancel:hover {
  color: var(--text-primary);
}

/* Inline rename input for column */
.column-title-input {
  background: var(--bg-input);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 2px 6px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  outline: none;
  width: 140px;
}

/* Board enter transition */
.board-entering {
  animation: boardSlideIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes boardSlideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-bright);
  border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ============================================================
   MARKDOWN CONTENT
   ============================================================ */
.markdown-body {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-secondary);
  word-wrap: break-word;
}

.markdown-body p {
  margin-bottom: 8px;
}

.markdown-body p:last-child {
  margin-bottom: 0;
}

.markdown-body strong {
  color: var(--text-primary);
  font-weight: 600;
}

.markdown-body em {
  font-style: italic;
}

.markdown-body ul,
.markdown-body ol {
  padding-left: 18px;
  margin-bottom: 8px;
}

.markdown-body ul:last-child,
.markdown-body ol:last-child {
  margin-bottom: 0;
}

.markdown-body li {
  margin-bottom: 3px;
}

/* Interactive Checkboxes inside Markdown */
.markdown-body input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin: 0 6px 0 -18px;
  /* pull back to align */
  vertical-align: middle;
  cursor: pointer;
  accent-color: var(--accent);
  position: relative;
  top: -1px;
}

.markdown-body li:has(input[type="checkbox"]) {
  list-style: none;
  /* Hide bullets for task lists */
}

.markdown-body li:has(input[type="checkbox"]:checked) {
  color: var(--text-muted);
  text-decoration: line-through;
}

/* Code blocks */
.markdown-body code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  background: var(--bg-overlay);
  padding: 2px 4px;
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--accent-meta);
}

.markdown-body pre {
  background: var(--bg-overlay);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow-x: auto;
  margin-bottom: 8px;
}

.markdown-body pre code {
  background: transparent;
  padding: 0;
  color: var(--text-primary);
}

.markdown-body pre:last-child {
  margin-bottom: 0;
}

.markdown-body blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 10px;
  margin-left: 0;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 8px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
  .board-container {
    padding: 12px 12px 40px;
  }

  .board-title-bar {
    padding: 16px 16px 6px;
  }

  :root {
    --col-width: 260px;
  }
}