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

body {
  background: linear-gradient(135deg, #141422, #1c1c2e);
  color: white;
  padding-top: 120px;
}

/* ===== BARRA FLUTUANTE ===== */
.topbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1000px;
  padding: 15px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(40, 40, 65, 0.75);
  backdrop-filter: blur(12px);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  z-index: 1000;
}

#addTaskBtn {
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #4da6ff, #2f8cff);
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

#addTaskBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(77, 166, 255, 0.4);
}

/* ===== LISTA ===== */
.container {
  max-width: 1000px;
  margin: auto;
  padding: 20px;
}

.task {
  background: #2b2b45;
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: 0.3s;
}

.task:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.task-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.task-buttons button {
  margin-left: 8px;
  padding: 6px 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.edit-btn {
  background: #ffaa00;
  color: black;
}

.delete-btn {
  background: #ff4d4d;
  color: white;
}

/* ===== MODAL ===== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: linear-gradient(145deg, #2f2f46, #38385a);
  padding: 30px;
  border-radius: 16px;
  width: 380px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  animation: fadeIn 0.3s ease;
}

.modal-content input,
.modal-content select {
  padding: 10px;
  border-radius: 8px;
  border: none;
  background: #1f1f33;
  color: white;
}

.modal-buttons {
  display: flex;
  gap: 10px;
}

.modal-buttons button {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

.modal-buttons button[type="submit"] {
  background: #4da6ff;
  color: white;
}

#closeModal {
  background: #ff4d4d;
  color: white;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}












.board {
  display: flex;
  gap: 25px;
  padding: 140px 30px 30px;
  justify-content: center;
  align-items: flex-start;
}

.column {
  background: #2b2b45;
  width: 300px;
  padding: 15px;
  border-radius: 14px;
  min-height: 400px;
  display: flex;
  flex-direction: column;
}

.column h2 {
  margin-bottom: 15px;
  text-align: center;
}

.task-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.task {
  background: #3a3a5c;
  padding: 12px;
  border-radius: 10px;
  cursor: grab;
  transition: 0.2s;
}

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

.task.dragging {
  opacity: 0.5;
}
