/* ============ WARM UP BUTTON ============ */
.warmup-start-btn {
  width: 100%;
  padding: 24px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  margin-bottom: 12px;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.warmup-start-btn:active {
  transform: scale(0.97);
}

.warmup-start-icon {
  font-size: 36px;
}

.warmup-start-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 2px;
}

.warmup-start-sub {
  font-size: 13px;
  opacity: 0.85;
  font-weight: 500;
}

/* ============ WIZARD ============ */
.wizard-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0 12px;
}

.wizard-cancel-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--gray-200);
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.wizard-timer {
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--primary);
}

.wizard-step-counter {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--gray-200);
  padding: 4px 12px;
  border-radius: 20px;
}

.wizard-progress {
  height: 6px;
  background: var(--gray-200);
  border-radius: 3px;
  margin-bottom: 20px;
  overflow: hidden;
}

.wizard-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #d97706);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.wizard-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 16px;
  min-height: 200px;
}

.wizard-exercise-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.wizard-exercise-icon {
  font-size: 44px;
}

.wizard-exercise-name {
  font-size: 18px;
  font-weight: 700;
}

.wizard-exercise-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.wizard-done-badge {
  background: #d1fae5;
  color: #065f46;
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  margin-bottom: 16px;
}

body.dark-mode .wizard-done-badge {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.wizard-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wizard-field {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wizard-field label {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  min-width: 0;
}

.wizard-field input {
  width: 100px;
  padding: 12px;
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  background: var(--gray-100);
  color: var(--text);
  transition: border-color 0.2s;
}

.wizard-field input:focus {
  outline: none;
  border-color: #f59e0b;
  background: var(--card-bg);
}

/* Wizard Navigation */
.wizard-nav {
  display: grid;
  grid-template-columns: 1fr 1fr 48px 1fr;
  gap: 8px;
  padding-bottom: 8px;
}

.wizard-nav-btn {
  padding: 14px 8px;
  border: none;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.wizard-nav-btn:active {
  transform: scale(0.95);
}

.wizard-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.wizard-back {
  background: var(--gray-200);
  color: var(--text);
}

.wizard-rest {
  background: #dbeafe;
  color: #1e40af;
}

body.dark-mode .wizard-rest {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.wizard-again {
  background: var(--gray-200);
  color: var(--text-secondary);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wizard-next {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
}

.wizard-finish {
  background: linear-gradient(135deg, #10b981, #059669) !important;
}

/* ============ ACTIVE WORKOUT ============ */
.workout-banner {
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 20px;
  padding: 20px;
  color: white;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.workout-banner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.workout-banner-name {
  font-size: 18px;
  font-weight: 700;
}

.workout-banner-timer {
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.workout-banner-meta {
  display: flex;
  gap: 16px;
  font-size: 14px;
  opacity: 0.9;
}

/* Exercise Card */
.exercise-card {
  background: var(--card-bg);
  border-radius: 14px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.exercise-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
}

.exercise-card-name {
  font-weight: 600;
  font-size: 15px;
}

.exercise-card-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.exercise-card-delete {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--danger);
  font-size: 16px;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.exercise-card-delete:hover {
  opacity: 1;
}

/* Sets Table */
.sets-table {
  padding: 0 16px 14px;
}

.sets-header {
  display: grid;
  grid-template-columns: 40px 1fr 1fr 44px;
  gap: 8px;
  padding: 6px 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 6px;
}

.set-row {
  display: grid;
  grid-template-columns: 40px 1fr 1fr 44px;
  gap: 8px;
  align-items: center;
  padding: 6px 0;
}

.set-row.completed {
  opacity: 0.6;
}

.set-number {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
}

.set-input {
  width: 100%;
  padding: 8px;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  background: var(--gray-100);
  color: var(--text);
}

.set-input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--card-bg);
}

.set-check {
  width: 36px;
  height: 36px;
  border: 2px solid var(--gray-300);
  background: transparent;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: var(--text-secondary);
}

.set-check.done {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.add-set-btn {
  width: 100%;
  padding: 8px;
  border: 2px dashed var(--gray-300);
  background: transparent;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  margin-top: 4px;
}

.add-set-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Add Exercise & Finish */
.add-exercise-btn {
  width: 100%;
  padding: 16px;
  border: 2px dashed var(--gray-300);
  background: transparent;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  margin-bottom: 12px;
}

.add-exercise-btn:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.finish-btn {
  width: 100%;
  padding: 16px;
  background: var(--danger);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 16px;
}

/* Exercise Picker */
.exercise-picker-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 4px;
}

.exercise-picker-item:hover {
  background: var(--gray-100);
}

.exercise-picker-name {
  font-weight: 500;
}

/* Rest Timer Overlay */
.rest-timer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 250;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.rest-timer-overlay.show {
  display: flex;
}

.rest-timer-circle {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 8px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.rest-timer-time {
  font-size: 48px;
  font-weight: 700;
  color: white;
  font-variant-numeric: tabular-nums;
}

.rest-timer-label {
  color: rgba(255,255,255,0.7);
  font-size: 16px;
  margin-bottom: 24px;
}

.rest-timer-buttons {
  display: flex;
  gap: 12px;
}

.rest-timer-btn {
  padding: 12px 24px;
  border: 2px solid rgba(255,255,255,0.3);
  background: transparent;
  color: white;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.rest-timer-skip {
  background: var(--primary);
  border-color: var(--primary);
}

/* Workout Summary */
.summary-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.summary-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.summary-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.summary-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.summary-stat {
  text-align: center;
}

.summary-stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

.summary-stat-label {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Recent Workouts */
.recent-workout {
  display: flex;
  align-items: center;
  padding: 14px;
  background: var(--card-bg);
  border-radius: 12px;
  margin-bottom: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  gap: 12px;
}

.recent-workout-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: var(--primary-light);
}

.recent-workout-info {
  flex: 1;
}

.recent-workout-name {
  font-weight: 600;
  font-size: 14px;
}

.recent-workout-meta {
  font-size: 12px;
  color: var(--text-secondary);
}

.recent-workout-duration {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-secondary);
}

/* ============ TODAY'S PLAN ============ */
.today-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 16px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.today-header.recovery {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

.today-header-icon {
  font-size: 36px;
}

.today-header-title {
  font-size: 20px;
  font-weight: 700;
}

.today-header-sub {
  font-size: 13px;
  opacity: 0.85;
  margin-top: 2px;
}

/* Quick type buttons */
.type-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.type-btn {
  padding: 12px 8px;
  border: 2px solid var(--gray-200);
  background: var(--card-bg);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
  color: var(--text);
}

.type-btn:active {
  transform: scale(0.95);
}

.type-btn .type-icon {
  font-size: 24px;
}
