* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Quicksand', 'Poppins', sans-serif;
  background: linear-gradient(to bottom right, #fff0f3, #fce8f0);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  color: #333;
}

.container {
  background-color: #fff9fb;
  border-radius: 25px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  padding: 30px;
  width: 90%;
  max-width: 900px;
}

h1 {
  text-align: center;
  font-size: 2.2rem;
  color: #ff6b81;
  margin-bottom: 10px;
}

.goal,
#today-date {
  text-align: center;
  font-size: 1rem;
  color: #888;
  margin-bottom: 10px;
}

.input-section {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

#task-input {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  border: 2px solid #ffd6e0;
  font-size: 1rem;
  outline: none;
}

#add-button {
  background-color: #ffb3c6;
  color: white;
  border: none;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s ease;
}

#add-button:hover {
  background-color: #ff6b81;
}

.filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
}

.filter-btn {
  background-color: #ffe0ec;
  color: #444;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background-color: #ff99ac;
  color: white;
}

.task-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.task-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border: 1px solid #ffdce6;
  border-radius: 12px;
  margin-bottom: 10px;
  background-color: #fff;
  width: 100%;
  flex-wrap: nowrap;
  transition: background-color 0.2s;
}

.task-item:hover {
  background-color: #fff0f5;
}

.task-item input[type="checkbox"] {
  margin-right: 12px;
  transform: scale(1.2);
  accent-color: #4caf50;
}

.task-text {
  flex: 1;
  font-size: 1rem;
  margin-right: 10px;
  word-break: break-word;
}

.completed .task-text {
  text-decoration: line-through;
  color: #bbb;
}

.task-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  padding-left: 10px;
}

.task-actions button {
  background-color: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
}

.task-actions button:hover {
  transform: scale(1.1);
}

.notes-section {
  position: relative;
  background-color: #fff0f5;
  border: 2px dashed #ff6b81;
  border-radius: 12px;
  padding: 15px 20px 10px 20px;
  box-shadow: 0 4px 10px rgba(255, 105, 135, 0.2);
  font-family: 'Quicksand', sans-serif;
  max-width: 100%;
  margin-top: 30px;
}

#notes {
  width: 100%;
  height: 80px;
  padding: 10px;
  border-radius: 10px;
  border: 2px solid #ffd6e0;
  resize: vertical;
  font-size: 1rem;
  font-family: 'Quicksand', sans-serif;
  background-color: #fff;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  font-size: 0.95rem;
}

#clear-completed {
  background-color: #ffd6e0;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  color: #444;
  transition: background-color 0.2s;
}

#clear-completed:hover {
  background-color: #ff6b81;
  color: white;
}

.editing-input {
  flex: 1;
  padding: 6px 10px;
  border: 2px solid #ffd6e0;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
}

.category-wrapper {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ff6b81;
}

.category-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

#category-selector {
  padding: 8px 10px;
  border-radius: 10px;
  border: 2px solid #ffd6e0;
  background-color: #fff0f5;
  font-family: 'Quicksand', sans-serif;
  color: #444;
  font-size: 1rem;
}

.date-picker-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

#toggle-date {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
}

.due-date {
  background-color: #fff0f0;
  border-radius: 8px;
  padding: 3px 8px;
  margin-left: 10px;
  font-size: 0.85rem;
  color: #e23e57;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.due-label {
  font-weight: 600;
}

.category-columns {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.category-box {
  flex: 1;
  min-width: 250px;
  border: 2px solid #fcb0d4;
  padding: 15px;
  border-radius: 15px;
  background-color: #fff0f5;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.category-box h3 {
  text-align: center;
  margin-bottom: 10px;
  color: #ff69b4;
}

@media screen and (max-width: 480px) {
  .input-section {
    flex-direction: column;
  }

  #add-button {
    width: 100%;
  }

  .footer {
    flex-direction: column;
    gap: 10px;
  }

  .task-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .task-actions {
    align-self: flex-end;
    margin-top: 5px;
    padding-right: 0;
  }

  .due-date {
    margin-top: 4px;
    margin-bottom: 4px;
  }
}

.category-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  justify-content: space-between;
}

.progress-circle-container {
  width: 45px;
  height: 45px;
  margin-left: 10px;
}

.progress-circle-container svg {
  width: 100%;
  height: 100%;
}

.progress-circle-container circle.progress-ring {
  transform: rotate(-90deg);
  transform-origin: center;
}

.progress-circle-container .bg-circle {
  fill: none;
  stroke: #e6e6e6;
  stroke-width: 5;
}

.progress-circle-container .progress-circle {
  fill: none;
  stroke: #4caf50;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 113;
  stroke-dashoffset: 113;
  transition: stroke-dashoffset 0.5s ease;
}

.progress-circle-container text {
  fill: #000;
  font-size: 12px;
  text-anchor: middle;
  dominant-baseline: middle;
}
