:root {
  --bg: #0f1720;
  --card: #111827;
  --muted: #9aa4b2;
  --accent: #ef4444;
  --accent-2: #10b981;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: linear-gradient(180deg, #071027 0%, var(--bg) 100%);
  color: #e6eef8;
  -webkit-font-smoothing: antialiased;
}

.app {
  max-width: 960px;
  margin: 28px auto;
  padding: 16px;
}

header {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}

header h1 {
  margin: 0;
  font-size: 20px;
}

.session-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.session-row input {
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #2b3440;
  background: #0b1220;
  color: #e6eef8;
  min-width: 180px;
}

button {
  background: #1f2937;
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}

button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.session-id {
  margin-left: 10px;
  font-size: 14px;
  color: var(--muted);
}

main {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.card {
  background: var(--card);
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(2, 6, 23, 0.6);
  min-width: 260px;
}

.timer-card {
  text-align: center;
  min-width: 360px;
}

.phase {
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
}

.time {
  font-size: 64px;
  margin: 8px 0;
  letter-spacing: 2px;
  font-weight: 700;
}

.dots {
  font-size: 22px;
  margin: 8px 0;
  color: var(--accent-2);
}

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

.totals {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin-top: 14px;
  color: var(--muted);
}

.history-card {
  width: 320px;
  max-height: 360px;
  overflow: auto;
}

.history-list {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
  white-space: pre-line;
}

.time-settings {
  margin-top: 15px;
  padding: 10px;
  background: #1f2937;
  /* border: 2px solid #712f2f; */
  border-radius: 10px;
  text-align: left;
}

.time-settings h4 {
  margin-bottom: 10px;
}

.time-settings label {
  display: block;
  margin-bottom: 8px;
}

.time-settings input {
  width: 60px;
  padding: 3px;
  margin-left: 5px;
  background-color: #26303f;
  color: white;
}

.time-settings button {
  background: #ff6347;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.time-settings button:hover {
  background: #e5533d;
}
