:root {
  --primary: #6366f1;
  --danger: #ef4444;
  --warning: #f59e0b;
  --success: #10b981;
}

[data-theme="dark"] {
  --bg: #0f172a;
  --card: #1e293b;
  --text: #f8fafc;
  --muted: #94a3b8;
  --border: rgba(255,255,255,0.1);
}

[data-theme="light"] {
  --bg: #f3f4f6;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: rgba(0,0,0,0.1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.controls { display: flex; gap: 8px; }

button {
  padding: 6px 12px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

button.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.board {
  flex: 1;
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 1rem;
}

.column {
  width: 300px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  max-height: 85vh;
}

.column-header {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
  font-weight: bold;
  display: flex;
  justify-content: space-between;
}

.task-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem;
}

.task {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  cursor: grab;
}

.task.dragging {
  opacity: 0.5;
  border: 2px dashed var(--primary);
}

.tag { font-size: 0.6rem; font-weight: bold; float: right; }
.high { color: var(--danger); }
.medium { color: var(--warning); }
.low { color: var(--success); }

/* MODAL */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
}

.modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: var(--card);
  padding: 1.5rem;
  border-radius: 12px;
  width: 350px;
}

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