* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #bfcde0;
  display: flex;
  justify-content: center;
  padding: 40px;
}

.app-container {
  width: 95%;
  max-width: 900px;
  background: #fefcfd;
  padding: 30px 40px;
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.25);
}

/* HEADER */
header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 25px;
}

header h1 {
  font-size: 2rem;
}

#toggle-theme {
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
}

/* INPUT */
#task-input {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

#task-input input,
#task-input select {
  padding: 12px;
  font-size: 1rem;
  border-radius: 10px;
  border: 1px solid #5d5d81;
}

#add-task {
  background: #3b3355;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
}

/* FILTERS */
#filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

#filters button {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #5d5d81;
  cursor: pointer;
  font-size: 0.95rem;
}

/* PROGRESS */
#progress {
  margin-bottom: 25px;
}

#progress-bar {
  height: 22px;
  background: #bfcde0;
  border-radius: 12px;
  overflow: hidden;
}

#progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #3b3355, #5d5d81);
}

/* TASK LIST */
#task-list, #archive-list {
  list-style: none;
}

#task-list li, #archive-list li {
  display: flex;
  justify-content: space-between;
  padding: 14px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: #fefcfd;
  cursor: grab;
  font-size: 1rem;
}

.task-left {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* DEADLINES */
.deadline-today {
  border: 2px solid #e63946;
}

/* PRIORITY COLORS */
.priority-high {
  border-left: 6px solid #e63946;
  background: #ffe5e5;
}

.priority-medium {
  border-left: 6px solid #f4a261;
  background: #fff1db;
}

.priority-low {
  border-left: 6px solid #2a9d8f;
  background: #e6f6f3;
}

/* DARK MODE */
body.dark-mode {
  background: #000505;
  color: white;
}

body.dark-mode .app-container {
  background: #3b3355;
}

body.dark-mode #task-list li,
body.dark-mode #archive-list li {
  background: #5d5d81;
}
