/* ---------- GLOBAL RESET ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: linear-gradient(135deg, #e3f2fd, #f8fbff);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px;
  color: #1f2937;
}

/* ---------- CONTAINER ---------- */
.planner-container {
  background: #ffffff;
  width: 100%;
  max-width: 520px;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
  padding: 24px;
}

/* ---------- HEADER ---------- */
.planner-header {
  text-align: center;
  margin-bottom: 20px;
}

.planner-header h1 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 6px;
}

#current-date {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ---------- TASK INPUT ---------- */
.task-input {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.task-input input[type="text"],
.task-input input[type="time"] {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font-size: 0.9rem;
}

.task-input input:focus {
  outline: none;
  border-color: #3b82f6;
}

#add-task {
  padding: 10px 14px;
  background: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 500;
  transition: 0.25s ease;
}

#add-task:hover {
  background: #2563eb;
  transform: scale(1.05);
}

/* ---------- FILTERS ---------- */
.filters {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.filter-btn {
  flex: 1;
  margin: 0 4px;
  padding: 8px 0;
  border: none;
  border-radius: 8px;
  background: #e5e7eb;
  cursor: pointer;
  font-size: 0.8rem;
  transition: 0.2s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: #3b82f6;
  color: #fff;
}

/* ---------- TASK LIST ---------- */
.task-list-section {
  margin-top: 10px;
}

#task-list {
  list-style: none;
}

.task-item {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: 0.25s ease;
}

.task-item.completed {
  opacity: 0.6;
  text-decoration: line-through;
}

.task-info {
  display: flex;
  flex-direction: column;
}

.task-time {
  font-size: 0.75rem;
  opacity: 0.7;
}

/* ---------- ACTION BUTTONS ---------- */
.task-actions {
  display: flex;
  gap: 8px;
}

.task-actions button {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1rem;
}

.task-actions .complete {
  color: #10b981;
}

.task-actions .delete {
  color: #ef4444;
}

/* ---------- EMPTY STATE ---------- */
#empty-state {
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
  margin-top: 12px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 480px) {
  .task-input {
    flex-direction: column;
  }

  #add-task {
    width: 100%;
  }

  .filters {
    flex-wrap: wrap;
  }

  .filter-btn {
    margin-bottom: 6px;
  }
}
