/* ============================================
   KanbanFlow — Jira-Inspired Design System
   Light & Dark Theme | Responsive
   ============================================ */

/* ----- Theme Vars (Dark — default) ----- */
:root,
body.theme-dark {
  --bg-page: #1b1f2e;
  --bg-surface: #22273a;
  --bg-elevated: #282e42;
  --bg-hover: #2f3650;
  --bg-active: #363d5a;
  --bg-input: #1b1f2e;

  --text-primary: #e2e4f0;
  --text-secondary: #9da0b8;
  --text-tertiary: #6b708a;
  --text-inverse: #ffffff;

  --border-default: #313753;
  --border-focus: #4f9cf7;
  --border-hover: #3e4567;

  --accent-blue: #4f9cf7;
  --accent-blue-bg: rgba(79, 156, 247, 0.10);
  --accent-green: #3fba6e;
  --accent-green-bg: rgba(63, 186, 110, 0.10);
  --accent-yellow: #e5a639;
  --accent-yellow-bg: rgba(229, 166, 57, 0.10);
  --accent-orange: #e07b3a;
  --accent-orange-bg: rgba(224, 123, 58, 0.10);
  --accent-red: #e05656;
  --accent-red-bg: rgba(224, 86, 86, 0.10);
  --accent-purple: #8b6cf7;
  --accent-purple-bg: rgba(139, 108, 247, 0.10);

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.24);
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.28);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.34);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.44);
  --shadow-glow: 0 0 0 2px rgba(79, 156, 247, 0.35);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: 180ms cubic-bezier(0.4, 0, 0.2, 1);
  --nav-height: 52px;
}

/* ----- Light Theme ----- */
[data-theme="light"],
body.theme-light {
  --bg-page: #f5f6f8;
  --bg-surface: #ffffff;
  --bg-elevated: #ffffff;
  --bg-hover: #f0f2f5;
  --bg-active: #e8ecf0;
  --bg-input: #ffffff;

  --text-primary: #172b4e;
  --text-secondary: #5e6c84;
  --text-tertiary: #97a0b6;
  --text-inverse: #ffffff;

  --border-default: #dfe1e6;
  --border-focus: #4f9cf7;
  --border-hover: #c1c7d0;

  --accent-blue: #0052cc;
  --accent-blue-bg: rgba(0, 82, 204, 0.06);
  --accent-green: #00875a;
  --accent-green-bg: rgba(0, 135, 90, 0.06);
  --accent-yellow: #d49300;
  --accent-yellow-bg: rgba(212, 147, 0, 0.06);
  --accent-orange: #d97008;
  --accent-orange-bg: rgba(217, 112, 8, 0.06);
  --accent-red: #de350b;
  --accent-red-bg: rgba(222, 53, 11, 0.06);
  --accent-purple: #5e4db2;
  --accent-purple-bg: rgba(94, 77, 178, 0.06);

  --shadow-xs: 0 1px 2px rgba(9, 30, 66, 0.10);
  --shadow-sm: 0 2px 4px rgba(9, 30, 66, 0.12);
  --shadow-md: 0 4px 12px rgba(9, 30, 66, 0.14);
  --shadow-lg: 0 8px 32px rgba(9, 30, 66, 0.18);
  --shadow-glow: 0 0 0 2px rgba(0, 82, 204, 0.25);
}

/* ----- Reset & Base ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.25s ease, color 0.25s ease;
}

/* Theme transitions for containers that don't already have transition:all */
.navbar, .kanban-header {
  transition: background 0.25s ease, border-color 0.25s ease;
}

/* ============================================
   SCROLLBARS
   ============================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--border-default); border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--text-tertiary); }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-default);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.navbar-inner {
  max-width: 1440px; margin: 0 auto;
  padding: 0 20px; height: var(--nav-height);
  display: flex; align-items: center; justify-content: space-between;
}

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

.navbar-brand {
  font-size: 16px; font-weight: 700; color: var(--text-primary);
  text-decoration: none; display: flex; align-items: center; gap: 8px;
  letter-spacing: -0.2px; transition: color var(--transition);
}
.navbar-brand:hover { color: var(--accent-blue); }
.navbar-brand svg { width: 22px; height: 22px; }

.navbar-right {
  display: flex; align-items: center; gap: 8px;
}

/* ----- Theme Toggle ----- */
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border: none; border-radius: var(--radius-sm);
  background: transparent; color: var(--text-tertiary);
  cursor: pointer; font-size: 15px; transition: all var(--transition);
}
.theme-toggle:hover {
  background: var(--bg-hover); color: var(--text-primary);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border: 1px solid transparent;
  border-radius: var(--radius-sm); font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all var(--transition);
  font-family: inherit; text-decoration: none; white-space: nowrap;
  line-height: 1.4;
}
.btn:active { transform: scale(0.96); }

.btn-primary {
  background: var(--accent-blue); color: var(--text-inverse);
  border-color: var(--accent-blue);
}
.btn-primary:hover {
  filter: brightness(1.12); box-shadow: 0 0 0 2px var(--accent-blue-bg);
}

.btn-secondary {
  background: var(--bg-elevated); color: var(--text-secondary);
  border-color: var(--border-default);
}
.btn-secondary:hover {
  background: var(--bg-hover); color: var(--text-primary);
  border-color: var(--border-hover);
}

.btn-danger {
  background: transparent; color: var(--accent-red);
  border-color: rgba(224, 86, 86, 0.3);
}
.btn-danger:hover {
  background: var(--accent-red-bg); border-color: var(--accent-red);
}

.btn-ghost {
  background: transparent; color: var(--text-secondary);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--bg-hover); color: var(--text-primary); }

.btn-subtle {
  background: transparent; color: var(--accent-blue);
  border-color: transparent; padding: 4px 8px;
}
.btn-subtle:hover { background: var(--accent-blue-bg); }

.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-lg { padding: 10px 20px; font-size: 14px; }

.btn-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border: none; border-radius: var(--radius-sm);
  background: transparent; color: var(--text-tertiary);
  cursor: pointer; font-size: 13px; transition: all var(--transition);
}
.btn-icon:hover { background: var(--bg-hover); color: var(--text-primary); }

/* ============================================
   BOARDS PAGE
   ============================================ */
.boards-page { padding: 32px 32px 0; max-width: 1200px; margin: 0 auto; }

.boards-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 28px;
}

.boards-title-section {
  display: flex; align-items: center; gap: 12px;
}
.boards-title-section h1 {
  font-size: 22px; font-weight: 600; letter-spacing: -0.3px;
}

/* ----- Boards Grid ----- */
.boards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.board-card {
  background: var(--bg-surface); border: 1px solid var(--border-default);
  border-radius: var(--radius-md); padding: 20px;
  text-decoration: none; color: inherit;
  transition: all var(--transition); cursor: pointer;
  display: flex; flex-direction: column; gap: 10px;
}
.board-card:hover {
  border-color: var(--accent-blue); box-shadow: var(--shadow-sm);
}

.board-card-main {
  display: flex; align-items: flex-start; gap: 12px;
}

.board-card-icon {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 16px;
  background: var(--accent-blue-bg); color: var(--accent-blue);
}

.board-card-info { flex: 1; min-width: 0; }
.board-card-info h3 {
  font-size: 15px; font-weight: 600; color: var(--text-primary);
  margin-bottom: 3px;
}
.board-card-desc {
  font-size: 13px; color: var(--text-secondary); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}

.board-card-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 10px; border-top: 1px solid var(--border-default);
  font-size: 12px; color: var(--text-tertiary);
}

.board-card-meta {
  display: flex; align-items: center; gap: 12px;
}

.column-dots { display: flex; gap: 3px; }
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block; border: 1px solid rgba(255,255,255,0.08);
}

/* ----- Empty State ----- */
.empty-state {
  text-align: center; padding: 80px 20px;
  max-width: 420px; margin: 0 auto;
}
.empty-state-icon {
  width: 72px; height: 72px; border-radius: var(--radius-lg);
  background: var(--bg-surface); border: 1px solid var(--border-default);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; font-size: 28px; color: var(--text-tertiary);
}
.empty-state h3 {
  font-size: 18px; font-weight: 600; margin-bottom: 6px;
  color: var(--text-primary);
}
.empty-state p {
  font-size: 14px; color: var(--text-secondary); margin-bottom: 20px;
}

/* ============================================
   KANBAN BOARD PAGE
   ============================================ */
.kanban-page {
  display: flex; flex-direction: column;
  height: calc(100vh - var(--nav-height)); overflow: hidden;
}

/* ----- Board Header ----- */
.kanban-header {
  padding: 14px 24px; background: var(--bg-surface);
  border-bottom: 1px solid var(--border-default);
  display: flex; justify-content: space-between; align-items: center;
  flex-shrink: 0;
}

.kanban-title-section { display: flex; align-items: center; gap: 12px; }

.kanban-breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-tertiary);
  margin-bottom: 4px;
}
.kanban-breadcrumb a {
  color: var(--text-tertiary); text-decoration: none;
  transition: color var(--transition);
}
.kanban-breadcrumb a:hover { color: var(--accent-blue); }
.kanban-breadcrumb .sep { color: var(--border-default); }

.kanban-title-section h1 {
  font-size: 20px; font-weight: 600; letter-spacing: -0.2px;
}

.board-subtitle {
  font-size: 13px; color: var(--text-secondary); margin-top: 1px;
}

.kanban-actions { display: flex; align-items: center; gap: 8px; }

/* ----- Column Wrapper (horizontal scroll) ----- */
.kanban-board {
  display: flex; gap: 12px; padding: 20px 24px;
  flex: 1; overflow-x: auto; overflow-y: hidden;
  align-items: flex-start;
}

/* ----- Column ----- */
.kanban-column {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  min-width: 280px; max-width: 320px; width: 280px;
  flex-shrink: 0; display: flex; flex-direction: column;
  max-height: 100%; transition: all var(--transition);
}

.kanban-column.drag-over {
  border-color: var(--accent-blue);
  background: var(--accent-blue-bg);
  box-shadow: var(--shadow-glow);
}

/* ----- Column Header ----- */
.column-header {
  padding: 12px 12px 8px;
  display: flex; justify-content: space-between; align-items: center;
  flex-shrink: 0;
}

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

.column-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}

.column-title {
  font-size: 12px; font-weight: 600; letter-spacing: 0.3px;
  text-transform: uppercase; color: var(--text-secondary);
}

.task-count {
  background: var(--bg-surface); color: var(--text-tertiary);
  font-size: 11px; font-weight: 600; padding: 1px 7px;
  border-radius: 10px; min-width: 20px; text-align: center;
}

/* ----- Cards Container ----- */
.column-cards {
  padding: 4px 8px 8px; flex: 1; overflow-y: auto;
  display: flex; flex-direction: column; gap: 6px; min-height: 60px;
}

/* ============================================
   TASK CARD — Jira Inspired
   ============================================ */
.task-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md); padding: 10px 12px;
  cursor: grab; user-select: none;
  transition: all var(--transition); position: relative;
}
.task-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
}
.task-card:active { cursor: grabbing; }

.task-card.dragging {
  opacity: 0.35; border-style: dashed;
  border-color: var(--accent-blue);
  background: var(--accent-blue-bg); transform: rotate(2deg) scale(0.95);
}

/* Drag preview (flying card) */
.task-card.drag-preview {
  position: fixed; pointer-events: none; z-index: 1000;
  transform: rotate(4deg) scale(1.03);
  box-shadow: var(--shadow-lg); border-color: var(--accent-blue);
  background: var(--bg-surface);
}

/* ----- Card ID / Key ----- */
.task-key {
  font-size: 11px; font-weight: 500; color: var(--text-tertiary);
  margin-bottom: 4px;
}

/* ----- Tag (label) ----- */
.task-tag {
  display: inline-block; font-size: 10px; font-weight: 600;
  padding: 1px 8px; border-radius: 3px; color: #fff;
  letter-spacing: 0.2px; margin-bottom: 6px;
}

/* ----- Title ----- */
.task-title {
  font-size: 13px; font-weight: 500; line-height: 1.4;
  color: var(--text-primary); margin-bottom: 4px;
}

/* ----- Description preview ----- */
.task-desc {
  font-size: 12px; color: var(--text-tertiary); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 8px;
}

/* ----- Meta row (priority, assignee, due) ----- */
.task-meta {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  margin-top: 6px;
}

/* Assignee avatar pill */
.meta-assignee {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 500; color: var(--text-tertiary);
  padding: 2px 8px 2px 4px;
  border-radius: 20px; background: var(--bg-hover);
}
.assignee-avatar {
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: #fff; flex-shrink: 0;
}

/* Priority badges */
.meta-priority {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11px; font-weight: 500; padding: 2px 7px;
  border-radius: 3px; line-height: 1.2;
}
.meta-priority.critical {
  color: var(--accent-red); background: var(--accent-red-bg);
}
.meta-priority.high {
  color: var(--accent-orange); background: var(--accent-orange-bg);
}
.meta-priority.medium {
  color: var(--accent-yellow); background: var(--accent-yellow-bg);
}
.meta-priority.low {
  color: var(--text-tertiary);
}

/* Due date */
.meta-due {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11px; font-weight: 500; padding: 2px 7px;
  border-radius: 3px; color: var(--text-tertiary);
}
.meta-due.overdue {
  color: var(--accent-red); background: var(--accent-red-bg);
}

.overdue-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent-red); color: #fff;
  font-size: 9px; font-weight: 700; line-height: 1;
}

/* ----- Drop Indicator ----- */
.drop-indicator {
  height: 2px; background: var(--accent-blue); border-radius: 2px;
  margin: 1px 0; opacity: 0; transition: opacity var(--transition);
  flex-shrink: 0;
}
.drop-indicator.visible { opacity: 1; }

/* ============================================
   MODALS
   ============================================ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55); z-index: 200;
  display: none; align-items: center; justify-content: center;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: fadeIn 0.15s ease;
  padding: 16px;
}
.modal-overlay.show { display: flex; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl); width: 480px;
  max-width: calc(100vw - 32px); max-height: 85vh;
  overflow-y: auto; box-shadow: var(--shadow-lg);
  animation: slideUp 0.2s ease;
}
.modal-sm { width: 400px; }

.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-default);
}
.modal-header h2 {
  font-size: 16px; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.modal-header h2 i { color: var(--accent-blue); }

.modal-close {
  background: none; border: none; color: var(--text-tertiary);
  font-size: 22px; cursor: pointer; padding: 4px; line-height: 1;
  transition: color var(--transition); border-radius: var(--radius-sm);
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { color: var(--text-primary); background: var(--bg-hover); }

.modal-body { padding: 20px; }

.modal-actions {
  display: flex; justify-content: flex-end; align-items: center;
  gap: 8px; margin-top: 16px;
}

/* ============================================
   FORMS
   ============================================ */
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--text-secondary); margin-bottom: 4px;
  text-transform: uppercase; letter-spacing: 0.3px;
}

.form-control {
  width: 100%; padding: 8px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm); color: var(--text-primary);
  font-size: 13px; font-family: inherit;
  transition: all var(--transition); outline: none;
}
.form-control:focus {
  border-color: var(--accent-blue); box-shadow: 0 0 0 2px var(--accent-blue-bg);
}
.form-control::placeholder { color: var(--text-tertiary); }

textarea.form-control { resize: vertical; min-height: 68px; }

select.form-control {
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b708a' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
  padding-right: 30px;
}

.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }

/* ============================================
   BADGE PILL
   ============================================ */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 500; padding: 2px 8px;
  border-radius: 10px;
}
.badge-blue { background: var(--accent-blue-bg); color: var(--accent-blue); }
.badge-green { background: var(--accent-green-bg); color: var(--accent-green); }
.badge-red { background: var(--accent-red-bg); color: var(--accent-red); }

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
  position: fixed; top: 16px; right: 16px; z-index: 9999;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 280px; max-width: 400px;
  animation: toastIn 0.25s ease;
  font-size: 13px;
  color: var(--text-primary);
}
.toast.removing { animation: toastOut 0.2s ease forwards; }

@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes toastOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}

.toast-icon {
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 12px;
}
.toast-success .toast-icon { background: var(--accent-green-bg); color: var(--accent-green); }
.toast-error .toast-icon { background: var(--accent-red-bg); color: var(--accent-red); }
.toast-warning .toast-icon { background: var(--accent-yellow-bg); color: var(--accent-yellow); }
.toast-info .toast-icon { background: var(--accent-blue-bg); color: var(--accent-blue); }

.toast-message { flex: 1; line-height: 1.4; }

.toast-close {
  background: none; border: none; color: var(--text-tertiary);
  cursor: pointer; padding: 2px; font-size: 16px; line-height: 1;
  transition: color var(--transition);
}
.toast-close:hover { color: var(--text-primary); }

/* ============================================
   CONFIRM MODAL (for delete actions)
   ============================================ */
.confirm-icon {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px; font-size: 22px;
}
.confirm-icon.warning {
  background: var(--accent-yellow-bg); color: var(--accent-yellow);
}
.confirm-icon.danger {
  background: var(--accent-red-bg); color: var(--accent-red);
}

.confirm-body {
  text-align: center; padding: 8px 0 4px;
}
.confirm-body h3 {
  font-size: 16px; font-weight: 600; margin-bottom: 6px;
}
.confirm-body p {
  font-size: 13px; color: var(--text-secondary); line-height: 1.5;
}

.confirm-actions {
  display: flex; justify-content: center; gap: 10px;
  margin-top: 20px;
}

/* ============================================
   AUTH PAGES (Login / Register)
   ============================================ */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--nav-height));
  padding: 40px 20px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: 36px 32px 28px;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.25s ease;
}

.auth-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-logo {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--accent-blue-bg);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 16px;
}

.auth-header h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.auth-header p {
  font-size: 14px;
  color: var(--text-secondary);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-form .form-group {
  margin-bottom: 0;
}

.auth-form .btn-block {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

.auth-error-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--accent-red-bg);
  border: 1px solid rgba(224, 86, 86, 0.25);
  border-radius: var(--radius-md);
  color: var(--accent-red);
  font-size: 13px;
}

.auth-error-summary i {
  font-size: 16px;
  flex-shrink: 0;
}

.auth-error-summary ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.field-error {
  display: block;
  font-size: 12px;
  color: var(--accent-red);
  margin-top: 3px;
}

/* Checkbox */
.form-check {
  display: flex;
  align-items: center;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-primary);
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent-blue);
  cursor: pointer;
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-default);
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}

/* ============================================
   USER MENU (navbar dropdown)
   ============================================ */
.user-menu {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.user-avatar-sm {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: box-shadow var(--transition);
}
.user-avatar-sm:hover {
  box-shadow: 0 0 0 2px var(--accent-blue-bg);
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all var(--transition);
  z-index: 300;
}

.user-menu:hover .user-dropdown,
.user-dropdown:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-user-info {
  padding: 12px 14px 8px;
  border-bottom: 1px solid var(--border-default);
}

.dropdown-user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-all;
}

.dropdown-logout-form {
  padding: 6px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.dropdown-item:hover {
  background: var(--bg-hover);
  color: var(--accent-red);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .boards-page { padding: 20px 16px 0; }

  .boards-header { flex-direction: column; align-items: stretch; gap: 12px; }

  .boards-grid { grid-template-columns: 1fr; }

  .kanban-header {
    padding: 12px 16px; flex-wrap: wrap; gap: 8px;
  }
  .kanban-title-section h1 { font-size: 17px; }
  .kanban-board { padding: 12px 16px; gap: 10px; }
  .kanban-column { min-width: 240px; width: 240px; }

  .modal { width: calc(100vw - 32px) !important; }
  .form-row { flex-direction: column; gap: 0; }
}

@media (max-width: 480px) {
  .kanban-column { min-width: 200px; width: 200px; }
}
