:root {
  --bg-main: #0c0d18;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.14);

  --text-main: #f5f7ff;
  --text-muted: #9aa0ff;

  --accent: #f015e5;
  --accent-soft: rgba(240, 21, 229, 0.4);

  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 10%, #1b1d3a, transparent 40%),
    radial-gradient(circle at 80% 80%, #13142b, transparent 40%),
    var(--bg-main);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-main);
}

.app {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

h1 {
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.card {
  width: 360px;
  padding: 18px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.04)
  );
  backdrop-filter: blur(26px);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

.input-row {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.input-row input {
  flex: 1;
  padding: 12px 14px;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  border: none;
  outline: none;
  background: rgba(0, 0, 0, 0.4);
  color: var(--text-main);
}

.input-row input::placeholder {
  color: var(--text-muted);
}

button {
  border: none;
  outline: none;
  cursor: pointer;
}

#add,
#clearAll {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  box-shadow:
    0 0 8px var(--accent-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.12s ease;
  align-items: center;
  justify-content: center;
}

#add:hover,
#clearAll:hover {
  transform: translateY(-2px);
}

.material-symbols-outlined {
  color: wheat;
  font-size: 1.4rem;
}

.container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.task {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--glass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: background 0.12s ease;
}

.task:hover {
  background: var(--glass-strong);
}

.task span {
  flex: 1;
  font-size: 0.95rem;
  word-break: break-word;
}

.done-checkbox {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: all 0.2s ease;
}

.done-checkbox:checked {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.done-checkbox::after {
  content: "";
  width: 6px;
  height: 10px;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(45deg) scale(0);
  position: absolute;
  transition: transform 0.15s ease;
}

.done-checkbox {
  position: relative;
  display: grid;
  place-items: center;
}

.done-checkbox:checked::after {
  transform: rotate(45deg) scale(1);
}


.task button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  display: grid;
  place-items: center;
  box-shadow: 0 0 6px var(--accent-soft);
}

.task button span {
  font-size: 1.1rem;
}

.edit-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 0.95rem;
}
