:root {
  --bg: #0d0e10;
  --card: #151517;
  --card2: #1c1c1f;
  --border: #2a2a2e;
  --text: #f5f5f5;
  --muted: #9b9b9b;
  --accent: #ffffff;
}

body.light {
  --bg: #f5f5f2;
  --card: #ffffff;
  --card2: #f1f1ee;
  --border: #e4e4e1;
  --text: #1b1b1b;
  --muted: #6a6a6a;
  --accent: #111111;
  --accent-soft: #e9e9e6;
}

body {
  margin: 0;
  font-family: Inter, system-ui;
  background: var(--bg);
  color: var(--text);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.timer-card {
  width: 420px;
  background: var(--card);
  border-radius: 24px;
  border: 1px solid var(--border);
  padding: 16px;
}

.display-panel {
  background: var(--card2);
  border-radius: 20px;
  padding: 18px;
  margin-bottom: 12px;
}

.display-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.time-display {
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: -2px;
}

.manual-inputs {
  display: flex;
  gap: 8px;
}

.input-group {
  display: flex;
  flex-direction: column;
  font-size: 12px;
}

.input-group input {
  width: 70px;
  padding: 6px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #101012;
  color: white;
}

.preset-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

.action-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

button {
  border-radius: 12px;
  padding: 10px;
  border: none;
  cursor: pointer;
}

.primary-button {
  background: white;
  color: black;
}

.secondary-button {
  background: #2a2a2e;
  color: white;
}

.ghost-button {
  background: transparent;
  color: var(--muted);
}

.panel-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.icon-button {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--muted);
  border-radius: 8px;
  cursor: pointer;
}

.icon-button:hover {
  background: #2a2a2e;
  color: white;
}

.icon-button svg {
  width: 16px;
  height: 16px;
}

.settings-panel {
  margin-top: 10px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.sound-setting {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sound-row {
  display: flex;
  gap: 6px;
  align-items: center;
}

.sound-setting select {
  flex: 1;
  padding: 6px;
  border-radius: 8px;
  background: #1c1c1f;
  color: white;
  border: 1px solid var(--border);
}
