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

body {
  background: #fdfbd4;
  color: #0f172a;
}

.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  padding: 4rem;
  gap: 3rem;
}

/* HERO */
.hero h1 {
  font-size: 3rem;
  line-height: 1.3;
}

.hero span {
  color: #734128;
}

.hero p {
  margin: 1rem 0 2rem;
  color: black;
}

.input-card {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.input-card input,
.input-card select {
  padding: 0.7rem;
  border-radius: 10px;
  border: 1px solid #cbd5f5;
  outline: none;
}

.input-card button {
  background: #22c55e;
  color: white;
  border: none;
  padding: 0.8rem;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
}

.input-card button:hover {
  background: #16a34a;
}

/* TODO */
.todo {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.card {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.card h2 {
  margin-bottom: 1rem;
}

.btn-clear {
  background: transparent;
  border: 1px solid #ef4444;
  color: #ef4444;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.25s ease;
  margin: 1rem 0;
}

.btn-clear:hover {
  background: #ef4444;
  color: #fff;
}

ul {
  list-style: none;
}

li {
  background: #f8fafc;
  padding: 0.8rem;
  border-radius: 10px;
  margin-bottom: 0.7rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.badge {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.low {
  background: #dcfce7;
  color: #166534;
}

.medium {
  background: #fef9c3;
  color: #854d0e;
}

.high {
  background: #fee2e2;
  color: #991b1b;
}

/* Done Style */
.completed .task-content {
  text-decoration: line-through;
  opacity: 0, 6;
}

/* Buttons */
.actions {
  display: flex;
  gap: 6px;
}

/* Tombolen Done */
.btn-done {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;

  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.35);
  transition: all 0.25s ease;
}

.btn-done:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(34, 197, 94, 0.5);
}

.btn-done:active {
  transform: scale(0.95);
}

.btn-done:focus {
  outline: 2px solid #86efac;
  outline-offset: 2px;
}

.btn-done:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}

/* Tombol Delete */
.btn-delete {
  background: #ef4444;
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;

  box-shadow: 0 6px 16px rgba(197, 34, 34, 0.35);
  transition: all 0.25s ease;
}

.btn-delete:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(197, 34, 34, 0.5);
}

.btn-delete:active {
  transform: scale(0.95);
}

.btn-delete:focus {
  outline: 2px solid #ef8686;
  outline-offset: 2px;
}

/* =========================
   RESPONSIVE - MOBILE
========================= */
@media (max-width: 768px) {
  .app {
    grid-template-columns: 1fr;
    padding: 2rem 1.2rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .input-card {
    padding: 1.2rem;
  }

  .todo {
    gap: 1.5rem;
  }

  li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .badge {
    align-self: flex-start;
  }
}

/* =========================
   RESPONSIVE - Mobile lebih kecil
========================= */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .input-card button {
    padding: 0.7rem;
    font-size: 0.9rem;
  }
}
