body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f6fb;
  color: #111;
}

/* ================= DARK MODE ================= */
body.dark {
  background: #0f172a;
  color: #e2e8f0;
}

/* ================= TOPBAR ================= */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, #4f46e5, #6366f1);
  color: white;
  padding: 14px 18px;
  font-weight: bold;
}

/* ================= MENU ================= */
.menu {
  position: absolute;
  top: 60px;
  left: 10px;
  width: 220px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  padding: 10px;
  z-index: 1000;
}

.menu button {
  width: 100%;
  margin: 5px 0;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: #f1f5f9;
  cursor: pointer;
}

body.dark .menu {
  background: #1e293b;
}

body.dark .menu button {
  background: #334155;
  color: white;
}

/* ================= CONTENT ================= */
.content {
  padding: 20px;
}

/* ================= INPUTS ================= */
input, textarea {
  width: 100%;
  max-width: 600px;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 10px;
  outline: none;
}

input:focus, textarea:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79,70,229,0.2);
}

body.dark input,
body.dark textarea {
  background: #1e293b;
  color: white;
  border: 1px solid #334155;
}

/* ================= LIST ================= */
ul {
  list-style: none;
  padding: 0;
}

li {
  background: white;
  margin: 10px 0;
  padding: 12px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  transition: 0.2s;
  position: relative;
}

li:hover {
  transform: translateY(-2px);
}

body.dark li {
  background: #1e293b;
  color: #e2e8f0;
}

/* ================= COMPLETED ================= */
li.completed {
  background: #22c55e;
  color: white;
  opacity: 0.95;
  animation: donePop 0.25s ease;
}

@keyframes donePop {
  from { transform: scale(0.98); }
  to { transform: scale(1); }
}

/* DONE label */
li span.done {
  margin-left: auto;
  font-size: 12px;
  background: rgba(0,0,0,0.25);
  padding: 4px 8px;
  border-radius: 6px;
}

/* ================= CATEGORY ================= */
.category {
  font-size: 11px;
  margin-left: 10px;
  padding: 3px 6px;
  border-radius: 6px;
  background: rgba(0,0,0,0.1);
}

/* ================= BUTTONS ================= */
li button {
  margin-left: 6px;
  border: none;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  background: #e2e8f0;
}

li button:hover {
  background: #cbd5e1;
}

/* ================= DRAG ================= */
li.dragging {
  opacity: 0.5;
  transform: scale(0.98);
}

/* ================= ANIMATION ================= */
.task-animate {
  animation: taskIn 0.25s ease-out;
}

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

/* ================= HIDDEN ================= */
.hidden {
  display: none;
}
