* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  overflow-x: hidden;
}

.background {
  position: fixed;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.15), transparent);
  z-index: -1;
}

.container {
  width: 90%;
  max-width: 900px;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 25px;
  padding: 30px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.37);
  border: 1px solid rgba(255,255,255,0.18);
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

header h1 {
  font-size: 2.5rem;
}

header p {
  opacity: 0.8;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.clock {
  font-size: 1.2rem;
  font-weight: bold;
}

#themeToggle {
  padding: 12px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255,255,255,0.15);
  color: white;
  font-size: 1rem;
}

.task-input {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.task-input input {
  flex: 1;
  padding: 15px;
  border-radius: 15px;
  border: none;
  outline: none;
  font-size: 1rem;
}

.task-input button {
  padding: 15px 25px;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  background: linear-gradient(45deg, #00c6ff, #0072ff);
  color: white;
  font-weight: bold;
  transition: 0.3s;
}

.task-input button:hover {
  transform: scale(1.05);
}

.filters {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.filter-btn {
  padding: 10px 18px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  background: rgba(255,255,255,0.1);
  color: white;
}

.filter-btn.active {
  background: #00c6ff;
}

.progress-section {
  margin-bottom: 20px;
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  overflow: hidden;
}

.progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00c6ff, #0072ff);
}

#progressText {
  margin-top: 8px;
}

#taskList {
  list-style: none;
  margin-bottom: 25px;
}

.task-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.08);
  padding: 15px;
  margin-bottom: 12px;
  border-radius: 15px;
  animation: fadeIn 0.3s ease;
}

.task-item.completed span {
  text-decoration: line-through;
  opacity: 0.6;
}

.task-actions button {
  margin-left: 8px;
  padding: 8px 12px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

.complete-btn {
  background: #00c851;
  color: white;
}

.delete-btn {
  background: #ff4444;
  color: white;
}

footer {
  display: flex;
  justify-content: space-between;
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.dark-mode {
  background: linear-gradient(135deg, #000000, #434343);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media(max-width: 768px) {
  .task-input {
    flex-direction: column;
  }

  footer {
    flex-direction: column;
    gap: 8px;
  }

  header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}