:root {
  --bg: #0b0f1a;
  --card: rgba(255,255,255,0.05);
  --text: #e5e7eb;
  --primary: #4ade80;
}

.light {
  --bg: #f3f4f6;
  --card: #ffffff;
  --text: #111827;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}
#stars {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -1;
}
#themeToggle {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 10px;
  border-radius: 50%;
  border: none;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
}

.app {
  max-width: 420px;
  margin: auto;
  padding: 30px;
  text-align: center;
}

h1 {
  margin-bottom: 20px;
}
.timer-card,
.task-card {
  background: var(--card);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  backdrop-filter: blur(20px);
}

.progress-ring {
  position: relative;
  width: 220px;
  height: 220px;
  margin: auto;
}

.progress-ring svg {
  transform: rotate(-90deg);
}

circle {
  fill: none;
  stroke-width: 10;
}

.bg {
  stroke: rgba(255,255,255,0.1);
}

.progress {
  stroke: url(#gradient);
  stroke-linecap: round;
  stroke-dasharray: 628;
  stroke-dashoffset: 628;
  transition: stroke-dashoffset 0.5s linear;
}
#time {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 32px;
}

button {
  margin: 5px;
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  background: var(--primary);
  cursor: pointer;
}

button:hover {
  transform: translateY(-2px);
}
.task-input {
  display: flex;
  gap: 10px;
}

input {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: none;
}
ul {
  margin-top: 10px;
  list-style: none;
}
li {
  padding: 10px;
  margin-bottom: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  cursor: pointer;
}
.completed {
  text-decoration: line-through;
  opacity: 0.5;
}
#message {
  margin-top: 10px;
}