@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&display=swap');

:root {
  --bg: #06070b;
  --panel: rgba(8, 12, 24, 0.86);
  --panel-strong: rgba(11, 17, 33, 0.94);
  --accent: #00fff2;
  --accent-soft: rgba(0, 255, 242, 0.2);
  --text: #f5f7ff;
  --muted: #9ba8c3;
  --border: rgba(255, 255, 255, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text);
  text-align: center;
  background: var(--bg);
  background-image: url('images/my-background-16.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(3, 7, 16, 0.9), rgba(2, 8, 19, 0.78));
  z-index: -1;
}

.app-shell {
  max-width: 1080px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 48px 20px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero {
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  font-size: 0.82rem;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  text-shadow: 0 0 10px rgba(0, 255, 242, 0.45);
}

.hero-copy {
  margin: 14px auto 0;
  max-width: 640px;
  color: var(--muted);
  line-height: 1.7;
}

.layout {
  display: grid;
  gap: 24px;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: stretch;
}

.timer-card,
.info-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(18px);
}

.timer-card {
  padding: 28px;
}

.mode-switcher {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.mode-btn,
.controls button {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  transition: all 180ms ease;
  font-family: inherit;
}

.mode-btn.active,
.mode-btn:hover,
.controls button:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(0, 255, 242, 0.18);
}

.timer-ring {
  --progress: 0%;
  width: min(320px, 76vw);
  aspect-ratio: 1;
  margin: 12px auto 24px;
  border-radius: 50%;
  padding: 16px;
  background: conic-gradient(var(--accent) var(--progress), rgba(255, 255, 255, 0.12) 0);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 24px 60px rgba(0, 255, 242, 0.16);
  transition: background 220ms ease;
}

.timer-inner {
  height: 100%;
  border-radius: 50%;
  background: var(--panel-strong);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ring-label {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-size: 0.78rem;
  margin-bottom: 8px;
}

.time-display {
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.status-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.controls button {
  min-width: 96px;
}

.info-card {
  padding: 28px;
  text-align: left;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.field span {
  color: var(--muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.field input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: inherit;
  font-size: 0.98rem;
}

.field input::placeholder {
  color: rgba(255,255,255,0.38);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.stat-box {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-box strong {
  font-size: 1.5rem;
  color: var(--accent);
}

.stat-box span {
  color: var(--muted);
  font-size: 0.86rem;
}

.tip-card,
.note-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  color: var(--muted);
  line-height: 1.6;
  background: rgba(255, 255, 255, 0.03);
}

.tip-card {
  margin-bottom: 12px;
  min-height: 86px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tip-label {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

#focus-tip {
  margin: 0;
  color: var(--text);
}

@media (max-width: 780px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .timer-card,
  .info-card {
    padding: 22px;
  }
}
