@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap");
* {
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: radial-gradient(circle at top left, #0f172a, #030712);
  color: #e2e8f0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 50px 20px;
  margin: 0;
  overflow: hidden;
  background: #0e0e0e;
}

.todo-container {
  width: 90%;
  max-width: 1200px;
  height: 90vh;
  /* hampir penuh layar laptop */
  background: rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  padding: 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* biar container nggak scroll */
}

.task-col {
  max-width: 300px;
  /* batas maksimal lebar */
  word-wrap: break-word;
  overflow-wrap: break-word;
}

h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 28px;
  font-weight: 600;
  color: #a78bfa;
  text-shadow: 0 0 8px #a78bfa66;
}

.input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.input-group input[type="text"],
.input-group input[type="datetime-local"] {
  flex: 1;
  padding: 10px 15px;
  border-radius: 10px;
  border: 1px solid #475569;
  background: rgba(15, 23, 42, 0.6);
  color: #fff;
}

.input-group button {
  background: linear-gradient(145deg, #6d28d9, #4f46e5);
  color: white;
  border: none;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.input-group button:hover {
  transform: scale(1.1);
  box-shadow: 0 0 10px #9333ea;
}

.controls {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.controls button {
  padding: 8px 16px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

#filter-btn {
  background-color: rgba(51, 65, 85, 0.6);
  color: #cbd5e1;
}

#filter-btn:hover {
  background-color: #64748b;
}

#delete-all-btn {
  background: linear-gradient(135deg, #c084fc, #8b5cf6);
  color: white;
}

#delete-all-btn:hover {
  box-shadow: 0 0 10px #c084fc;
  transform: translateY(-2px);
}

.todo-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(2, 6, 23, 0.4);
  border-radius: 10px;
  overflow: hidden;
}

.todo-table thead {
  display: table;
  width: 100%;
  table-layout: fixed;
}

.todo-table tbody {
  display: block;
  max-height: 36vh;
  /* tinggi scroll body */
  overflow-y: auto;
  width: 100%;
}

.todo-table tbody tr {
  display: table;
  width: 100%;
  table-layout: fixed;
}

.todo-table th,
.todo-table td {
  padding: 14px;
  text-align: center;
  border-bottom: 1px solid #334155;
}

.todo-table th {
  background: rgba(30, 41, 59, 0.8);
  color: #e2e8f0;
  font-weight: 600;
}

.status-belum {
  background-color: #475569;
  padding: 5px 10px;
  border-radius: 10px;
  font-size: 14px;
}

.status-selesai {
  background-color: #16a34a;
  padding: 5px 10px;
  border-radius: 10px;
  font-size: 14px;
}

.status-batal {
  background-color: #dc2626;
  padding: 5px 10px;
  border-radius: 10px;
  font-size: 14px;
}

.action-btn {
  margin: 0 4px;
  padding: 6px 12px;
  border-radius: 8px;
  border: none;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.done-btn {
  background: #22c55e;
  color: white;
}

.cancel-btn {
  background: #ef4444;
  color: white;
}

.action-btn:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

.status-terlambat {
  background-color: #ff580a;
  /* merah terang */
  padding: 5px 10px;
  border-radius: 10px;
  font-size: 14px;
}

.status-batal {
  background-color: #ff022c;
  /* merah pink (beda) */
  padding: 5px 10px;
  border-radius: 10px;
  font-size: 14px;
}

.bar-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bar {
  display: flex;
  gap: 2px;
}

.bar-unit {
  width: 40px;
  height: 10px;
  border-radius: 2px;
  background-color: lightgray;
}

.filled.bar-green {
  background-color: green;
}

.filled.bar-lime {
  background-color: limegreen;
}

.filled.bar-yellow {
  background-color: gold;
}

.filled.bar-orange {
  background-color: orange;
}

.filled.bar-red {
  background-color: red;
}

.icon-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  font-size: 16px;
}

.icon-btn i {
  color: #cccc;
  transition: transform 0.2s ease, color 0.2s ease;
}

.icon-btn:hover i {
  color: #dc2626;
  transform: scale(1.2);
}

.dashboard {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 40px;
}

.dashboard .card {
  flex: 1;
  background: rgba(30, 41, 59, 0.8);
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 0 15px rgba(147, 51, 234, 0.2);
}

.dashboard .card h3 {
  font-size: 16px;
  color: #cbd5e1;
  margin-bottom: 8px;
}

.dashboard .card p {
  font-size: 22px;
  font-weight: bold;
  color: #a78bfa;
}

.filter-container {
  position: relative;
  display: inline-block;
}

.filter-btn {
  background: #4b6cb7;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
}

.filter-btn:hover {
  background: #182848;
}

.filter-menu {
  display: none;
  position: absolute;
  top: 110%;
  left: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px;
  width: 200px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 100;
}

.filter-section {
  margin-bottom: 10px;
}

.filter-section strong {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
}

.filter-menu button {
  display: block;
  width: 100%;
  background: none;
  border: none;
  padding: 6px;
  text-align: left;
  cursor: pointer;
  border-radius: 4px;
}

.filter-menu button:hover {
  background: #f1f1f1;
}

/* canvas */

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
}
