:root {
  --bg: #f5f6f8;
  --panel: #ffffff;
  --border: #e1e4e8;
  --text: #1f2328;
  --muted: #6b7280;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --col-new: #6b7280;
  --col-review: #d97706;
  --col-dev: #2563eb;
  --col-live: #16a34a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

header.topbar h1 {
  font-size: 18px;
  margin: 0;
}

nav.main-nav a {
  margin-left: 16px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

nav.main-nav a.active,
nav.main-nav a:hover {
  color: var(--accent);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 16px 24px;
}

.toolbar select {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel);
  font-size: 14px;
}

.btn-primary {
  margin-left: auto;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}

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

.board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 0 24px 24px;
}

.column {
  background: var(--panel);
  border-radius: 8px;
  border: 1px solid var(--border);
  min-height: 60vh;
}

.column-header {
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.column[data-status="New"] .dot { background: var(--col-new); }
.column[data-status="Under Review"] .dot { background: var(--col-review); }
.column[data-status="In Development"] .dot { background: var(--col-dev); }
.column[data-status="Live"] .dot { background: var(--col-live); }

.column-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  font-size: 13px;
  cursor: pointer;
}

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

.card h3 {
  font-size: 14px;
  margin: 0 0 6px;
}

.card .meta {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}

.card .stats {
  display: flex;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.empty-hint {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  padding: 24px 12px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

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

.modal {
  background: var(--panel);
  border-radius: 10px;
  width: 480px;
  max-width: 90vw;
  max-height: 85vh;
  overflow-y: auto;
  padding: 20px;
}

.modal h2 {
  margin-top: 0;
  font-size: 17px;
}

.modal label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 12px 0 4px;
}

.modal input,
.modal select,
.modal textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
}

.modal textarea { min-height: 70px; resize: vertical; }

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}

.btn-secondary {
  background: none;
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .board { grid-template-columns: 1fr; }
}
