/* ---------- RESET ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', system-ui, sans-serif;
}

/* ---------- BACKGROUND ---------- */
body {
  min-height: 100vh;
  background-image: url('./assets/fundo\ todolist.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e5e7eb;
  position: relative;
  overflow: hidden;
}

body::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      120deg,
      rgba(52, 4, 45, 0.85),
      rgba(1, 42, 6, 0.75)
    );
  backdrop-filter: blur(6px);
  z-index: -1;
}

/* ---------- CONTAINER GLASS ---------- */
.container {
  width: 100%;
  max-width: 420px;
  padding: 28px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 30px 60px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

/* Glow animado */
.container::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  background: linear-gradient(
    120deg,
    #6366f1,
    #d000ff,
    #6366f1
  );
  opacity: 0.15;
  filter: blur(20px);
  animation: glow 6s linear infinite;
  z-index: -1;
}

@keyframes glow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ---------- TÍTULO ---------- */
h1 {
  text-align: center;
  margin-bottom: 24px;
  font-size: 26px;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #818cf8, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- INPUT ---------- */
.input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.input-group input {
  flex: 1;
  padding: 14px 16px;
  border-radius: 14px;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #e5e7eb;
  font-size: 14px;
  outline: none;
  transition: box-shadow 0.2s, background 0.2s;
}

.input-group input::placeholder {
  color: #9ca3af;
}

.input-group input:focus {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.6);
}

/* ---------- BOTÃO ADD ---------- */
#addTask {
  width: 48px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #6366f1, #22d3ee);
  color: #020617;
  font-size: 20px;
  font-weight: bold;
  transition: transform 0.15s, box-shadow 0.15s;
}

#addTask:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(34, 211, 238, 0.6);
}

/* ---------- LISTA ---------- */
ul {
  list-style: none;
  margin-top: 10px;
}

li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 10px;
  transition: transform 0.15s, background 0.15s;
}

li:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.12);
}

/* ---------- CHECKBOX ---------- */
li input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #22d3ee;
  cursor: pointer;
}

/* ---------- TEXTO ---------- */
li span {
  flex: 1;
  font-size: 14px;
  letter-spacing: 0.3px;
}

/* ---------- CONCLUÍDO ---------- */
li span[style*="line-through"] {
  opacity: 0.4;
}

/* ---------- AÇÕES ---------- */
.actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.actions button {
  flex: 1;
  padding: 12px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: #020617;
  transition: transform 0.15s, box-shadow 0.15s;
}

#removechecks {
  background: linear-gradient(135deg, #facc15, #fb7185);
}

#remove {
  background: linear-gradient(135deg, #fb7185, #ef4444);
}

.actions button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* ---------- RESPONSIVO ---------- */
@media (max-width: 480px) {
  .container {
    margin: 16px;
  }
}
