/* Timer Web Styles - Ported from Electron app */

.timer-shell {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  position: relative;
}

.timer-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.timer-content > * {
  pointer-events: auto;
}

.timer-clock-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.timer-clock-case {
  height: 400px;
  width: 400px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 22%;
  position: relative;
  box-shadow:
    inset 3px 3px 6px rgba(255, 255, 255, 0.2),
    inset -3px -3px 6px rgba(0, 0, 0, 0.2),
    10px 10px 26px rgba(0, 0, 0, 0.35);
  transition: transform 140ms ease;
}

@media (max-width: 560px) {
  .timer-clock-case {
    height: 300px;
    width: 300px;
  }
}

.timer-clock-face {
  position: absolute;
  inset: 6%;
  border-radius: 20%;
  background: #ffffff;
  overflow: hidden;
  display: grid;
  place-items: stretch;
  box-shadow: inset 2px 2px 8px rgba(0, 0, 0, 0.15);
}

.timer-clock-interactive {
  width: 100%;
  height: 100%;
  cursor: pointer;
  touch-action: none;
}

.timer-clock-interactive.knob-hover {
  cursor: pointer;
}

.timer-clock-interactive.hand-hover {
  cursor: grab;
}

.timer-clock-interactive.hand-hover:active,
.timer-clock-interactive.dragging {
  cursor: grabbing;
}

.timer-clock-interactive.knob-hover:not(.knob-active) circle[data-knob-base] {
  filter: brightness(1.25) saturate(1.1) drop-shadow(0 0 3px rgba(255, 255, 255, 0.4));
  transition: filter 140ms ease;
}

.timer-clock-interactive.knob-active circle[data-knob-base] {
  filter: brightness(0.95);
  transition: filter 140ms ease;
}

.timer-clock-interactive.knob-hover:not(.knob-active) circle[data-knob-highlight] {
  opacity: 1;
  filter: brightness(1.2);
  transition: opacity 140ms ease, filter 140ms ease;
}

.timer-clock-interactive.knob-active circle[data-knob-highlight] {
  opacity: 0.8;
  transition: opacity 140ms ease;
}

.timer-clock-interactive svg {
  width: 100%;
  height: 100%;
}

.timer-display {
  text-align: center;
  display: grid;
  gap: 10px;
  position: relative;
  width: 100%;
}

.timer-time {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  color: rgba(0, 0, 0, 0.78);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 46px;
  font-weight: 500;
  line-height: 1;
}

@media (max-width: 560px) {
  .timer-time {
    font-size: 36px;
  }
}

.timer-quick {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.timer-quick-btn {
  appearance: none;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  color: rgba(0, 0, 0, 0.7);
  cursor: pointer;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 14px;
  transition: all 140ms ease;
  outline: none;
}

.timer-quick-btn:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(0, 0, 0, 0.15);
  color: rgba(0, 0, 0, 0.9);
  transform: translateY(-1px);
}

.timer-quick-btn:active {
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.95);
}

.timer-quick-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Hero image container adjustments */
.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 450px;
}

@media (max-width: 560px) {
  .hero-image {
    min-height: 350px;
  }
}

