:root {
  --cream: #f2eae0;
  --blue: #b4d3d9;
  --purple-light: #bda6ce;
  --purple-dark: #9b8ec7;
}

body {
  transition: 0.5s;
  overflow-x: hidden;
}
body.dark-mode {
  background: linear-gradient(135deg, #1e1e2f, var(--purple-dark));
  color: white;
}
body.light-mode {
  background: linear-gradient(135deg, var(--cream), var(--blue));
  color: #333;
}

.todo-card {
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  width: 100%;
  max-width: 450px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.task-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  animation: fadeIn 0.4s ease forwards; 
}

.task-text {
  flex-grow: 1;
  margin: 0 15px;
}
.finished .task-text {
  text-decoration: line-through;
  opacity: 0.5;
}
.star-icon {
  cursor: pointer;
  transition: 0.2s;
}
.star-icon.active {
  color: #ffca28;
}
.search-bar {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
}
.btn-primary {
  background-color: var(--purple-dark);
  border: none;
}
