* {
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #f4fbf6;
  display: flex;
  justify-content: center;
  padding: 20px;
}

.app {
  background: white;
  width: 420px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* HEADER */
header {
  padding: 20px;
  background: #e8f5e9;
}

h1 {
  text-align: center;
  color: #2e7d32;
}

.progress-bar {
  background: #ddd;
  height: 8px;
  border-radius: 4px;
}

#progressFill {
  height: 8px;
  width: 0%;
  background: lightgray;
  border-radius: 4px;
}

.celebration {
  text-align: center;
  color: green;
  font-weight: bold;
}

/* TABS */
.tabs {
  display: flex;
  background: #f1f8f4;
}

.tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: none;
  cursor: pointer;
}

.tab.active {
  background: white;
  font-weight: bold;
  color: #2e7d32;
}

/* SECTIONS */
.section {
  display: none;
  padding: 20px;
}

.section.active {
  display: block;
}

/* TASK INPUT */
.task-input {
  display: flex;
  gap: 10px;
}

.task-input input {
  flex: 1;
  padding: 8px;
}

.task-input button {
  padding: 8px 12px;
  background: #4caf50;
  color: white;
  border: none;
  border-radius: 6px;
}

/* TASK LIST */
ul {
  list-style: none;
  padding: 0;
}

li {
  background: #f1f8f4;
  padding: 10px;
  margin-top: 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

li.completed span {
  text-decoration: line-through;
  color: green;
}

.delete {
  margin-left: auto;
  color: red;
  cursor: pointer;
}

.filters {
  display: flex;
  margin-top: 10px;
}

.filters button {
  flex: 1;
  margin: 2px;
  border: none;
  padding: 6px;
  cursor: pointer;
}

.filters .active {
  background: #4caf50;
  color: white;
}

/* REFLECTION */
textarea {
  width: 100%;
  height: 100px;
  margin-top: 10px;
}

#saveReflection {
  width: 100%;
  margin-top: 10px;
  padding: 8px;
  background: #388e3c;
  color: white;
  border: none;
}
