
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(135deg, #1d2671, #c33764);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 30px;
  color: #fff;
}

#app {
  width: 100%;
  max-width: 500px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  animation: fadeIn 0.7s ease-in-out;
}

.header {
  text-align: center;
  margin-bottom: 20px;
}

.app-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.task-input {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.task-input input {
  flex: 1;
  padding: 12px 14px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  transition: all 0.3s ease;
}

.task-input input:focus {
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 8px #00f7ff;
}

.btn-add {
  background: #00f7ff;
  color: #000;
  font-size: 1.4rem;
  font-weight: bold;
  padding: 0 16px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.3s ease;
}

.btn-add:hover {
  background: #00c9d7;
  transform: scale(1.05);
}

.task-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.task {
  background: rgba(255, 255, 255, 0.12);
  padding: 12px 16px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: slideUp 0.4s ease;
  transition: background 0.3s ease;
}

.task:hover {
  background: rgba(255, 255, 255, 0.2);
}

.task-text {
  flex: 1;
  font-size: 1rem;
}

.task.completed .task-text {
  text-decoration: line-through;
  color: #aaa;
}

.task-actions {
  display: flex;
  gap: 8px;
}

.task-actions button {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-complete {
  color: #00ff88;
}

.btn-complete:hover {
  background: rgba(0, 255, 136, 0.2);
}

.btn-delete {
  color: #ff4c4c;
}

.btn-delete:hover {
  background: rgba(255, 76, 76, 0.2);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  body {
    padding: 15px;
  }

  #app {
    padding: 15px;
  }

  .app-title {
    font-size: 1.5rem;
  }

  .task-input input {
    font-size: 0.9rem;
    padding: 10px;
  }

  .btn-add {
    font-size: 1.2rem;
    padding: 0 12px;
  }

  .task-text {
    font-size: 0.9rem;
  }
}
