@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
  --pear: #e8f300;
  --black: #0a0a0a;
  --bombay: #aeb6ba;
  --white: #ffffff;
  --bg: #f7f7f5;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--bg);
  color: var(--black);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.5px;
}
.wordmark .lw-box {
  background: var(--black);
  color: var(--pear);
  padding: 4px 9px;
  border-radius: 4px;
}
.wordmark .lw-sep { color: var(--bombay); font-weight: 500; }

/* ---- Login ---- */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.login-card {
  background: var(--white);
  border: 1px solid #e7e7e3;
  border-radius: 14px;
  padding: 40px 36px;
  width: 100%;
  max-width: 360px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}
.login-card .wordmark { justify-content: center; margin-bottom: 8px; }
.login-card p.sub {
  color: var(--bombay);
  font-size: 13px;
  margin: 0 0 26px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.login-card input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e0e0dc;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  margin-bottom: 14px;
}
.login-card input[type="password"]:focus { outline: none; border-color: var(--black); }
.btn-primary {
  width: 100%;
  background: var(--pear);
  color: var(--black);
  border: none;
  border-radius: 8px;
  padding: 12px 14px;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform .1s ease;
}
.btn-primary:hover { transform: translateY(-1px); }
.error-msg { color: #c0392b; font-size: 13px; margin: -6px 0 14px; }

/* ---- Board ---- */
header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  background: var(--white);
  border-bottom: 1px solid #e7e7e3;
  position: sticky;
  top: 0;
  z-index: 5;
}
header.top .actions { display: flex; gap: 10px; align-items: center; }
.btn-add {
  background: var(--black);
  color: var(--pear);
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.btn-logout {
  background: transparent;
  color: var(--bombay);
  border: 1px solid #d9d9d4;
  border-radius: 8px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}

.board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 24px 28px 60px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 860px) {
  .board { grid-template-columns: 1fr; }
}

.column {
  background: #efefeb;
  border-radius: 12px;
  padding: 14px;
  min-height: 200px;
}
.column h2 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 4px 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.column h2 .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.col-new .dot { background: var(--bombay); }
.col-progress .dot { background: var(--pear); box-shadow: 0 0 0 2px var(--black); }
.col-done .dot { background: #2e7d32; }

.card {
  background: var(--white);
  border-radius: 10px;
  padding: 14px 14px 12px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border-left: 4px solid var(--pear);
}
.card h3 { margin: 0 0 6px; font-size: 15px; font-weight: 700; }
.card p.desc { margin: 0 0 10px; font-size: 13px; color: #444; white-space: pre-wrap; }
.card .meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--bombay); margin-bottom: 10px; }
.card .meta span.tag {
  background: var(--bg);
  border-radius: 6px;
  padding: 3px 8px;
  color: var(--black);
}
.card select.status-select {
  font-family: inherit;
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #e0e0dc;
  width: 100%;
}
.empty-hint { color: var(--bombay); font-size: 13px; padding: 8px; }

/* ---- Modal ---- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(10,10,10,0.45);
  display: none; align-items: center; justify-content: center; z-index: 20; padding: 16px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white);
  border-radius: 14px;
  padding: 28px;
  width: 100%;
  max-width: 440px;
}
.modal h2 { margin: 0 0 18px; font-size: 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--bombay); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #e0e0dc;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
}
.field textarea { resize: vertical; min-height: 70px; }
.modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.btn-cancel {
  flex: 1;
  background: var(--bg);
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}
.modal-actions .btn-primary { flex: 1; }
