* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #0a0a0a;
  color: #e5e5e5;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  padding: 20px 12px;
}

.container {
  max-width: 420px;
  margin: 0 auto;
}

h1 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 30px;
  background: linear-gradient(90deg, #22c55e, #eab308);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ring-container {
  position: relative;
  width: 320px;
  height: 320px;
  margin: 0 auto 40px;
}

#ring {
  filter: drop-shadow(0 0 30px rgba(34, 197, 94, 0.3));
}

.handle {
  position: absolute;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: #1f2937;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  cursor: grab;
  user-select: none;
  touch-action: none;
  z-index: 10;
  transition: transform 0.1s;
}

.handle:active { transform: scale(1.2); }

.sun { color: #fbbf24; }
.moon { color: #93c5fd; }

.center-info {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.percentage {
  font-size: 3.8rem;
  font-weight: 700;
  line-height: 1;
}

.remaining {
  font-size: 1.1rem;
  color: #9ca3af;
  margin-top: 8px;
}

.controls {
  text-align: center;
  margin-bottom: 30px;
}

button {
  background: #22c55e;
  color: black;
  border: none;
  padding: 14px 28px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 9999px;
  cursor: pointer;
}

button:hover {
  background: #86efac;
}

.alarms-section {
  margin-top: 40px;
}

#add-alarm {
  background: #3b82f6;
  width: 100%;
  margin-top: 12px;
}

.alarm-item {
  background: #1f2937;
  padding: 14px;
  border-radius: 16px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}