/* Tonal Tracker — theme-neutral styling.
   Deliberately sets no fonts and no absolute colors: everything here is
   relative to whatever the active WordPress theme already provides
   (font-family, text color, link color, background), so the tracker looks
   like a native part of the site instead of a bolted-on separate app. */

.tonal-tracker-wrapper {
  max-width: 640px;
  margin: 0 auto;
}

.app-header {
  padding: 4px 0 16px;
  border-bottom: 1px solid rgba(127, 127, 127, 0.25);
  margin-bottom: 16px;
}
.eyebrow {
  font-size: 0.8em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.6;
}
.app-header h1 {
  margin: 4px 0 0;
  font-size: 1.6em;
}

.app-content { padding: 0; }

/* Simple in-page tab links instead of a fixed/pinned app-style tab bar —
   these just flow with the page like normal navigation. */
.tabbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(127, 127, 127, 0.25);
}
.tabbtn {
  color: inherit;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid rgba(127, 127, 127, 0.35);
  font-size: 0.9em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tabbtn .dot { width: 6px; height: 6px; border-radius: 50%; background: transparent; }
.tabbtn.active { font-weight: 700; border-color: currentColor; }
.tabbtn.active .dot { background: currentColor; }

.card {
  border: 1px solid rgba(127, 127, 127, 0.25);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  background: rgba(127, 127, 127, 0.04);
}
.card-title { font-weight: 700; font-size: 1.05em; }
.muted { opacity: 0.65; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }

input, select {
  border: 1px solid rgba(127, 127, 127, 0.35);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 1em;
  font-family: inherit;
  color: inherit;
  background: rgba(127, 127, 127, 0.04);
  width: 100%;
}
input:focus, select:focus { outline: 2px solid currentColor; outline-offset: 1px; }

.btn {
  font-size: 0.9em;
  letter-spacing: 0.02em;
  padding: 10px 16px;
  border-radius: 6px;
  border: 1px solid rgba(127, 127, 127, 0.4);
  background: rgba(127, 127, 127, 0.06);
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}
.btn-amber { font-weight: 700; border: 2px solid currentColor; background: rgba(127, 127, 127, 0.1); }
.btn-ghost { background: transparent; opacity: 0.75; }
.btn-sm { padding: 6px 10px; font-size: 0.8em; }
.btn-danger { border-color: #c0392b; color: #c0392b; background: transparent; }
.btn-block { width: 100%; text-align: center; }

.chip {
  font-size: 0.75em;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(127, 127, 127, 0.35);
  color: inherit;
  opacity: 0.75;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}
.chip.on { opacity: 1; font-weight: 700; border-color: currentColor; }
.chip.caution { opacity: 1; color: #c0392b; border-color: #c0392b; }
.chip.side { opacity: 1; font-weight: 700; border-color: currentColor; }

.exercise-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(127, 127, 127, 0.2);
  gap: 12px;
}
.exercise-row:last-child { border-bottom: none; }
.ex-name { font-weight: 600; }
.ex-meta { font-size: 0.85em; opacity: 0.65; margin-top: 2px; }

.empty { text-align: center; padding: 40px 16px; opacity: 0.65; }
.empty-title { font-weight: 700; font-size: 1.1em; margin-bottom: 6px; opacity: 1; }

.last-time {
  font-size: 0.85em;
  opacity: 0.75;
  border: 1px dashed rgba(127, 127, 127, 0.4);
  border-radius: 6px;
  padding: 6px 10px;
  margin-top: 6px;
}

/* Set entry via increment/decrement steppers */
.set-block {
  padding: 10px 0;
  border-bottom: 1px dashed rgba(127, 127, 127, 0.25);
}
.set-block:last-child { border-bottom: none; }
.set-block-label {
  font-size: 0.85em;
  font-weight: 700;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}
.stepper-row { display: flex; flex-wrap: wrap; gap: 12px; }
.stepper-group { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 130px; }
.stepper-group-label { font-size: 0.75em; opacity: 0.6; text-transform: uppercase; letter-spacing: 0.03em; }
.stepper { display: flex; align-items: stretch; gap: 6px; }
.stepper-btn {
  flex: 0 0 auto;
  width: 44px;
  min-height: 44px;
  font-size: 1.2em;
  font-weight: 700;
  line-height: 1;
  border-radius: 8px;
  border: 1px solid rgba(127, 127, 127, 0.4);
  background: rgba(127, 127, 127, 0.06);
  color: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  font-family: inherit;
}
.stepper-btn:active { background: rgba(127, 127, 127, 0.25); transform: translateY(1px); }
.stepper-input {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-size: 1.05em;
  font-weight: 700;
  padding: 8px 4px;
}
.remove-set-btn {
  flex: 0 0 auto;
  width: 36px;
  min-height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(127, 127, 127, 0.35);
  background: transparent;
  opacity: 0.6;
  font-size: 1em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

form { margin: 0; }