/* =========================================================
   GymDiet Master — Rep Tempo Metronome (Dark Neon Theme)
   Pure OLED Black (#000000), Neon Green (#00f076), Zero Blue
   ========================================================= */

.rep-tempo-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.rep-tempo-modal-overlay.is-active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.rep-tempo-card {
  width: 100%;
  max-width: 440px;
  background: #05080e;
  border: 1px solid rgba(0, 240, 118, 0.35);
  border-top: 1px solid rgba(0, 240, 118, 0.6);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(0, 240, 118, 0.15);
  padding: 22px 20px;
  box-sizing: border-box;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  scrollbar-width: none;
}

.rep-tempo-modal-overlay.is-active .rep-tempo-card {
  transform: translateY(0) scale(1);
}

.rep-tempo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.rep-tempo-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rep-tempo-badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(0, 240, 118, 0.12);
  border: 1px solid rgba(0, 240, 118, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00f076;
}

.rep-tempo-title {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.rep-tempo-subtitle {
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 2px;
}

.rep-tempo-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.rep-tempo-close-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* Phase Pacer Visualizer */
.rep-tempo-display-stage {
  background: #000000;
  border: 1px solid rgba(0, 240, 118, 0.22);
  border-radius: 20px;
  padding: 20px 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}

.rep-tempo-phase-name {
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #00f076;
  margin-bottom: 4px;
  min-height: 18px;
  transition: color 0.2s ease;
}

.rep-tempo-phase-name.is-concentric {
  color: #38bdf8;
}

.rep-tempo-phase-name.is-hold {
  color: #fbbf24;
}

.rep-tempo-phase-name.is-done {
  color: #00f076;
}

.rep-tempo-count-huge {
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  margin: 6px 0;
  text-shadow: 0 0 24px rgba(0, 240, 118, 0.4);
}

.rep-tempo-rep-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 13px;
  color: #cbd5e1;
  font-weight: 700;
}

.rep-tempo-rep-pill {
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(0, 240, 118, 0.12);
  border: 1px solid rgba(0, 240, 118, 0.28);
  color: #00f076;
}

/* Progress bar along the card */
.rep-tempo-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 14px;
}

.rep-tempo-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00f076, #38bdf8);
  border-radius: 4px;
  transition: width 0.1s linear;
}

/* 4 Phase Sliders / Inputs */
.rep-tempo-schema-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.rep-tempo-phase-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 6px;
  text-align: center;
  transition: all 0.2s ease;
}

.rep-tempo-phase-box.is-active {
  border-color: #00f076;
  background: rgba(0, 240, 118, 0.08);
  box-shadow: 0 0 16px rgba(0, 240, 118, 0.2);
}

.rep-tempo-phase-box-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: #94a3b8;
  display: block;
  margin-bottom: 4px;
}

.rep-tempo-phase-box-val {
  font-size: 18px;
  font-weight: 900;
  color: #ffffff;
}

.rep-tempo-phase-steppers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
}

.rep-tempo-step-btn {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  padding: 0;
}

.rep-tempo-step-btn:hover {
  background: rgba(0, 240, 118, 0.2);
  border-color: #00f076;
}

/* Presets */
.rep-tempo-presets-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 16px;
  padding-bottom: 2px;
}

.rep-tempo-preset-chip {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}

.rep-tempo-preset-chip.is-active,
.rep-tempo-preset-chip:hover {
  background: rgba(0, 240, 118, 0.15);
  border-color: rgba(0, 240, 118, 0.45);
  color: #00f076;
}

/* Primary Action Controls */
.rep-tempo-controls-bar {
  display: grid;
  grid-template-columns: 46px 1fr 46px;
  gap: 10px;
  align-items: center;
}

.rep-tempo-icon-btn {
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.rep-tempo-icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.rep-tempo-icon-btn.is-active {
  color: #00f076;
  border-color: rgba(0, 240, 118, 0.4);
  background: rgba(0, 240, 118, 0.1);
}

.rep-tempo-main-btn {
  height: 48px;
  border-radius: 14px;
  background: #00f076;
  border: none;
  color: #000000;
  font-size: 14.5px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 240, 118, 0.35);
  transition: all 0.15s ease;
}

.rep-tempo-main-btn:hover {
  background: #17c987;
  transform: translateY(-1px);
}

.rep-tempo-main-btn.is-pause {
  background: #fbbf24;
  color: #000000;
  box-shadow: 0 4px 18px rgba(251, 191, 36, 0.35);
}
