* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: linear-gradient(135deg, #f8c9e3, #eef2ff);
  min-height: 100vh;
}

/* NAVBAR */
.navbar {
  height: 64px;
  background: linear-gradient(90deg, #a5b4fc, #fbcfe8);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 16px;
  border-radius: 0 0 20px 20px;
}

.logo { flex: 1; }

.navbar input {
  padding: 8px 14px;
  border-radius: 20px;
  border: none;
  outline: none;
}

.profile {
  width: 38px;
  height: 38px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* BOARD */
.board {
  display: flex;
  gap: 20px;
  padding: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

/* COLUMN */
.column {
  width: 300px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 16px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 14px 30px rgba(0,0,0,0.12);
}

.column-header {
  text-align: center;
  padding: 10px;
  border-radius: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.backlog { background: #e0e7ff; }
.progress { background: #fef3c7; }
.review { background: #ede9fe; }
.done { background: #dcfce7; }

.task-list {
  flex: 1;
  background: rgba(0,0,0,0.03);
  border-radius: 14px;
  padding: 8px;
}

.task-list:empty::after {
  content: "Drop tasks here ✨";
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #9ca3af;
  font-size: 14px;
}

/* TASK */
.task {
  background: white;
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  cursor: grab;
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.task-content { display: flex; flex-direction: column; gap: 6px; }

.badge {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  color: white;
  width: fit-content;
}

.badge.low { background: #4ade80; }
.badge.medium { background: #fbbf24; }
.badge.high { background: #fb7185; }

.delete-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #c7d2fe, #fbcfe8);
  color: #1f2937;
  font-size: 16px;
  cursor: pointer;

  /* ✅ THIS IS THE FIX */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ADD TASK */
.column button {
  margin-top: 10px;
  border: none;
  background: linear-gradient(90deg, #c7d2fe, #fbcfe8);
  padding: 10px;
  border-radius: 999px;
  cursor: pointer;
}

.add-task-box {
  display: none;
  background: white;
  border-radius: 16px;
  padding: 12px;
  margin-top: 10px;
}

.add-task-box input {
  width: 100%;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid #ddd;
  margin-bottom: 8px;
}

.priority-options {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.priority-options button {
  flex: 1;
  border-radius: 999px;
  border: none;
  padding: 6px;
  cursor: pointer;
}

.priority-options button.active.low { background: #4ade80; color: white; }
.priority-options button.active.medium { background: #fbbf24; color: white; }
.priority-options button.active.high { background: #fb7185; color: white; }

.add-actions {
  display: flex;
  gap: 8px;
}

/* 🌙 DARK MODE */
body.dark {
  background: linear-gradient(135deg, #2e1065, #1f2937);
}

body.dark .navbar {
  background: linear-gradient(90deg, #6d28d9, #be185d);
}

body.dark .column {
  background: rgba(30, 30, 50, 0.9);
}

body.dark .task {
  background: #1f2937;
  color: #e5e7eb;
}

body.dark .task-list {
  background: rgba(255,255,255,0.05);
}

body.dark .add-task-box {
  background: #1f2937;
}

body.dark .column-header {
  color: #111827;
}

body.dark input {
  background: #1f2937;
  color: white;
}

.theme-toggle {
  border: none;
  background: white;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 18px;
}