* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
  min-height: 100vh;
  background: linear-gradient(to bottom right, #eef2ff, #f5f3ff, #fdf2f8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.todo-container {
  width: 100%;
  max-width: 500px;
  background-color: white;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  border-top: 4px solid #818cf8;
  opacity: 0;
  transform: translateY(-20px);
  animation: fadeIn 0.3s ease forwards;
}

.todo-header {
  padding: 1.5rem;
}

h1 {
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #6366f1, #a855f7, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.input-container {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.task-input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  font-size: 0.875rem;
}

.color-options {
  display: flex;
  gap: 0.25rem;
}

.color-option {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: transform 0.2s;
}

.color-option:hover {
  transform: scale(1.1);
}

.color-option.selected {
  box-shadow: 0 0 0 2px white, 0 0 0 4px #94a3b8;
}

.add-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background-color: #3b82f6;
  color: white;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: transform 0.2s;
}

.add-button:hover {
  background-color: #2563eb;
}

.add-button:active {
  transform: scale(0.95);
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tab {
  padding: 0.5rem;
  text-align: center;
  background-color: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 0.875rem;
  transition: background-color 0.2s;
}

.tab.active {
  background-color: #e0e7ff;
  border-color: #c7d2fe;
  font-weight: 500;
}

.tasks-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.task {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background-color: white;
  transition: transform 0.2s, opacity 0.2s;
  animation: slideIn 0.3s ease forwards;
}

.task:hover {
  transform: scale(1.01);
}

.task.completed {
  background-color: #f9fafb;
}

.task-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.task-checkbox {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  border: 2px solid #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
}

.task-checkbox.checked {
  background-color: #10b981;
  border-color: #10b981;
  color: white;
}

.task-text {
  font-size: 0.875rem;
  color: #1f2937;
}

.task.completed .task-text {
  text-decoration: line-through;
  color: #6b7280;
}

.delete-button {
  color: #9ca3af;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.delete-button:hover {
  color: #ef4444;
}

.empty-message {
  text-align: center;
  color: #6b7280;
  padding: 1rem 0;
  font-size: 0.875rem;
  animation: fadeIn 0.3s ease forwards;
}

.todo-footer {
  background-color: #f9fafb;
  padding: 0.75rem 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: #6b7280;
  animation: fadeIn 0.3s 0.5s both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.task.removing {
  animation: slideOut 0.3s ease forwards;
}

@keyframes slideOut {
  to {
    opacity: 0;
    transform: translateY(-10px);
    height: 0;
    padding: 0;
    margin: 0;
    border: 0;
  }
}