/* ===== VARIÁVEIS DE TEMA ===== */
:root {
  --bg-color: #121212;
  --text-color: #f0f0f0;
  --primary-color: #00d9ff;
  --column-bg: #1e1e1e;
  --task-bg: #2a2a2a;
}

.light-theme {
  --bg-color: #ffffff;
  --text-color: #1e1e1e;
  --primary-color: #0077cc;
  --column-bg: #f0f0f0;
  --task-bg: #ffffff;
}

/* ===== RESET GLOBAL ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background 0.3s, color 0.3s;
  min-height: 100vh;
  padding: 20px;
}

/* ===== CABEÇALHO ===== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

header h1 {
  color: var(--primary-color);
  font-size: 2rem;
  animation: fadeIn 1s ease-out;
}

header button {
  padding: 10px 15px;
  background-color: var(--primary-color);
  border: none;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

header button:hover {
  background-color: #009fcc;
}

/* ===== ÁREA DE ADIÇÃO DE TAREFAS ===== */
.add-task {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.add-task input {
  flex: 1;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid var(--primary-color);
}

.add-task button {
  padding: 10px 15px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.add-task button:hover {
  background-color: #009fcc;
}

/* ===== BOARD ===== */
.kanban-board {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.column {
  background-color: var(--column-bg);
  border-radius: 10px;
  padding: 15px;
  flex: 1;
  min-width: 250px;
  max-width: 32%;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.8s ease;
}

.column h2 {
  margin-bottom: 10px;
  color: var(--primary-color);
  text-align: center;
  position: relative;
  padding-bottom: 8px;
}

.column h2::after {
  content: '';
  display: block;
  width: 80%;
  height: 2px;
  background-color: var(--primary-color);
  margin: 0 auto;
  margin-top: 6px;
  border-radius: 999px;
  opacity: 0.6;
}

.task-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 50px; /* ← garante que sempre haja espaço */
}

.task {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background-color: var(--task-bg);
  border-radius: 8px;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.4);
  cursor: grab;
}

.task .delete-btn {
  background: none;
  border: none;
  color: #ff5c5c;
  font-size: 1.2rem;
  cursor: pointer;
}

.task .delete-btn:hover {
  color: #ff1c1c;
}

.task:hover {
  transform: scale(1.02);
}

/* ===== ANIMAÇÕES ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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