:root {
  --bg: #eef2f7;
  --panel: #ffffff;
  --panel-2: #f9fbff;
  --text: #1b1f2a;
  --muted: #6b7280;
  --accent: #2f6fde;
  --accent-2: #16a085;
  --border: #dfe5ef;
  --shadow: 0 10px 32px rgba(17, 24, 39, 0.12);
  --font-ui: "Plus Jakarta Sans", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

body {
  background: radial-gradient(circle at 20% 20%, #f7f9fc 0%, #eef2f7 45%, #e6ebf3 100%);
  font-family: var(--font-ui);
  color: var(--text);
  letter-spacing: 0.005em;
  font-weight: 400;
}

.page-wide {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 1rem 1.5vw 2rem;
}

.card {
  border-radius: 0.9rem;
  border: 1px solid var(--border);
}

.simple-topbar {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 0.8rem 1rem;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.12);
  margin-bottom: 1rem;
}

.board-shell {
  padding-bottom: 2rem;
}

.board-topbar {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 0.55rem 0.9rem;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.14);
  margin-bottom: 0.5rem;
}
.hero-dot {
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 6px rgba(47, 111, 222, 0.18);
}
.topbar-title {
  font-size: 1.05rem;
  color: #1b1f2a;
  font-weight: 600;
}
.topbar-title a {
  color: inherit;
  text-decoration: none;
}
.topbar-title a:hover {
  text-decoration: underline;
}

.board-filters .card-body {
  background: #ffffff;
  border-radius: 0.85rem;
  border: 1px solid var(--border);
}
.input-pill .form-control,
.input-pill .form-select {
  border-radius: 10px;
  border: 1px solid #d8deea;
  background: #ffffff;
  color: var(--text);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.03);
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem;
}

.board-column {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 0.5rem;
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.12);
  display: flex;
  flex-direction: column;
}
.column-head {
  padding: 0.2rem 0.35rem 0.35rem;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.column-name {
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0;
}
.column-count {
  color: var(--muted);
  font-size: 0.85rem;
  text-align: right;
}
.column-body {
  padding: 0.25rem 0.25rem 0.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 180px;
  transition: background-color 0.2s ease, border 0.2s ease;
  border-radius: 0.9rem;
}
.column-body.drop-target {
  background: rgba(47, 111, 222, 0.08);
  border: 1px dashed rgba(47, 111, 222, 0.45);
}

.task-card {
  background: #ffffff;
  border: 1px solid #e5eaf1;
  border-radius: 0.9rem;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.14);
  padding: 0.5rem 0.65rem;
  cursor: grab;
  transition: transform 0.1s ease, box-shadow 0.1s ease, opacity 0.1s ease;
}
.task-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.16);
}
.task-card.dragging {
  opacity: 0.65;
  transform: scale(0.99);
}
.task-card-top .task-title {
  font-weight: 600;
  color: #0f1f35;
  font-size: 0.85rem;
}
.task-meta {
  color: var(--muted);
  font-size: 0.8rem;
}
.task-info {
  margin-top: 0;
  font-size: 0.8rem;
}

.task-actions .icon-btn,
.task-icons .icon-btn {
  background: transparent;
  border: 1px solid rgba(0,0,0,0.06);
  color: #3b4758;
  border-radius: 0.55rem;
  font-size: 0.95rem;
  padding: 0.2rem 0.35rem;
  line-height: 1;
}
.task-actions .icon-btn:hover,
.task-icons .icon-btn:hover {
  color: var(--accent);
  border-color: rgba(47, 111, 222, 0.45);
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.04);
}
.status-upcoming { background: #31c96c; }
.status-today { background: #f2c94c; }
.status-overdue { background: #eb5757; }
.status-none { background: #cfd6e1; }

.recur-pill {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  background: #eef2f7;
  color: #0f5fff;
}
.recur-recurrent {
  background: #e8f1ff;
  color: #0f5fff;
}
.recur-single {
  background: #eef5ed;
  color: #4b7f52;
}

.btn-primary {
  background: linear-gradient(135deg, #2f6fde, #4f85f5);
  border: 1px solid rgba(47, 111, 222, 0.5);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(47, 111, 222, 0.2);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #275dc0, #3f73d8);
}

.modal-size-90 {
  max-width: 90%;
}

/* Generic panels and grids */
.glass-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: 0 16px 32px rgba(17, 24, 39, 0.14);
  padding: 1rem 1.2rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 0.75rem;
}
.project-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.project-name {
  font-weight: 600;
  color: #1f2d3d;
}
.project-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.modern-table thead {
  background: #f5f7fb;
}
.modern-table th {
  border: none;
  color: #5b6372;
  font-weight: 600;
  font-size: 0.9rem;
}
.modern-table td {
  border-top: 1px solid #edf0f5;
}

.form-control, .form-select {
  border-radius: 0.7rem;
  border: 1px solid #dfe5ef;
  background: #ffffff;
  color: #1b1f2a;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}
.form-control:focus, .form-select:focus {
  border-color: #7fb0ff;
  box-shadow: 0 0 0 0.2rem rgba(47, 111, 222, 0.18);
}

.btn-outline-secondary {
  border-color: #d5dded;
  color: #3b4758;
}
.btn-outline-secondary:hover {
  background: #eef3fb;
}

/* Auth */
.auth-shell {
  min-height: calc(100vh - 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem 0;
}
.auth-card {
  width: min(420px, 100%);
}
