:root {
  --wolf-blue: #0f2f4c;
  --wolf-blue-dark: #0a2138;
  --accent: #d4a017;
  --bg: #f4f6f8;
  --card-bg: #ffffff;
  --text: #1b2733;
  --text-muted: #5b6b7a;
  --border: #dfe4e8;
  --danger: #c0392b;
  --radius: 10px;
}

* { box-sizing: border-box; }

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

.centered-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(15, 47, 76, 0.12);
  padding: 40px;
  width: 100%;
  max-width: 380px;
  text-align: center;
}

.login-card h1 {
  font-size: 20px;
  color: var(--wolf-blue);
  margin-bottom: 4px;
}

.login-card .subtitle {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 24px;
}

input, select, textarea, button {
  font-family: inherit;
  font-size: 14px;
}

input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
  background: #fff;
  color: var(--text);
}

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

label { font-size: 12px; color: var(--text-muted); display: block; margin-bottom: 4px; }

button {
  cursor: pointer;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 600;
}

.btn-primary {
  background: var(--wolf-blue);
  color: #fff;
  width: 100%;
}
.btn-primary:hover { background: var(--wolf-blue-dark); }

.btn-secondary {
  background: #eef1f4;
  color: var(--text);
}
.btn-secondary:hover { background: #e2e7eb; }

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.error-msg {
  color: var(--danger);
  font-size: 13px;
  margin-bottom: 12px;
  min-height: 16px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: var(--wolf-blue);
  color: #fff;
}

.topbar h1 {
  font-size: 16px;
  margin: 0;
  font-weight: 600;
}

.topbar .actions { display: flex; gap: 10px; align-items: center; }

.topbar button, .topbar select {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
}

.topbar select { margin: 0; padding: 6px 10px; }

.board {
  display: flex;
  gap: 14px;
  padding: 18px;
  overflow-x: auto;
  align-items: flex-start;
}

.column {
  background: #ebeff2;
  border-radius: var(--radius);
  width: 260px;
  min-width: 260px;
  padding: 10px;
  min-height: 300px;
}

.column.drag-over { background: #dce6ee; }

.column h2 {
  font-size: 13px;
  color: var(--wolf-blue);
  margin: 4px 6px 10px;
  display: flex;
  justify-content: space-between;
}

.column h2 .count {
  background: #fff;
  border-radius: 20px;
  padding: 1px 8px;
  font-size: 11px;
  color: var(--text-muted);
}

.card {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  cursor: grab;
}

.card:active { cursor: grabbing; }

.card .name { font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.card .meta { font-size: 11px; color: var(--text-muted); }

.fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--accent);
  color: #1b2733;
  border-radius: 50px;
  padding: 14px 22px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,20,25,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
}

.modal {
  background: #fff;
  border-radius: var(--radius);
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 26px;
}

.modal h2 { margin-top: 0; font-size: 17px; color: var(--wolf-blue); }

.modal-close {
  float: right;
  background: none;
  color: var(--text-muted);
  font-size: 18px;
  padding: 0;
}

.field-row { display: flex; gap: 10px; }
.field-row > * { flex: 1; }

.activity-list {
  border-top: 1px solid var(--border);
  margin-top: 14px;
  padding-top: 10px;
}

.activity-item {
  font-size: 12.5px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f2f4;
}

.activity-item .who { color: var(--wolf-blue); font-weight: 600; }
.activity-item .when { color: var(--text-muted); float: right; font-size: 11px; }

.hidden { display: none !important; }

.badge {
  display: inline-block;
  font-size: 10px;
  background: #eef1f4;
  color: var(--text-muted);
  border-radius: 20px;
  padding: 2px 8px;
  margin-left: 6px;
}
