/* Basic reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
html,body { height: 100%; }
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: var(--bg);
  color: var(--text);
  transition: background .25s ease, color .25s ease;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* Themes */
body.light {
  --bg: hsl(0, 0%, 98%);
  --panel: hsl(0, 0%, 100%);
  --text: hsl(235, 19%, 35%);
  --muted: hsl(235, 11%, 65%);
  --accent: hsl(220, 98%, 61%);
  --border: rgba(0,0,0,0.06);
}
body.dark {
  --bg: hsl(235, 21%, 11%);
  --panel: hsl(235, 24%, 19%);
  --text: hsl(234, 39%, 85%);
  --muted: hsl(234, 11%, 60%);
  --accent: hsl(220, 98%, 61%);
  --border: rgba(255,255,255,0.06);
}

.app-container {
  width: 100%;
  max-width: 550px;
  margin: 0 auto;
}

/* Header */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}
.logo {
  letter-spacing: 12px;
  font-weight: 700;
  font-size: 28px;
}
.theme-toggle {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

/* Input */
.create .input-wrap {
  background: var(--panel);
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 14px;
  gap: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}
.input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  background: transparent;
  color: var(--text);
}
.circle.placeholder {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
}

/* Todo list */
.todo-list {
  margin-top: 18px;
  border-radius: 8px;
  overflow: hidden;
  list-style: none;
  background: var(--panel);
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}
.todo-item {
  display: flex;
  align-items: center;
  padding: 14px;
  gap: 14px;
  border-bottom: 1px solid var(--border);
  cursor: grab;
}
.todo-item:last-child { border-bottom: none; }
.todo-item.dragging { opacity: 0.5; }

.check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.check.completed {
  background: linear-gradient(135deg, var(--accent), hsl(192, 100%, 67%));
  border:none;
  color:white;
  font-weight:700;
}

.todo-text {
  flex: 1;
  font-size: 15px;
}
.todo-text.completed {
  opacity:0.5;
  text-decoration: line-through;
}

.delete {
  background:none;
  border:none;
  font-size:20px;
  color:var(--muted);
  cursor:pointer;
}

/* Controls */
.controls {
  display:flex;
  justify-content: space-between;
  align-items:center;
  margin-top:12px;
  padding:12px;
  background:var(--panel);
  border-radius:8px;
}
.filters { display:flex; gap:8px; }
.filter {
  background:none;
  border:none;
  cursor:pointer;
  color:var(--muted);
  padding:6px 8px;
}
.filter.active { color:var(--accent); font-weight:600; }

.clear-btn {
  background:none;
  border:none;
  cursor:pointer;
  color:var(--muted);
}

.attribution {
  margin-top: 12px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* ⭐ Branding (new) ⭐ */
.branding {
  margin-top: 30px;
  padding: 14px 0;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  border-radius: 10px;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  color: #fff;
  letter-spacing: 0.4px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.branding strong {
  color: #ffedb0; /* golden highlight */
}
