/* Powerlifting Modern UI Overrides */

/* --- Container & General Layout --- */
.powerlifting-container {
  background-color: transparent;
  padding: var(--space-md);
  max-width: 1200px;
  margin: 0 auto;
}

.powerlifting-header {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border-default);
}

.program-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

/* --- Program Cards (List View) --- */
.program-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-lg);
  border: 1px solid var(--border-default);
  transition: all var(--transition-base);
}

.program-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.program-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: var(--space-md);
}

.program-info {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: var(--space-xs);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.program-info i {
  color: var(--primary-purple);
  width: 20px;
  text-align: center;
}

.program-actions {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-default);
  display: flex;
  gap: var(--space-md);
}

.program-btn {
  border-radius: var(--radius-md);
  font-weight: 600;
  padding: var(--space-sm) var(--space-md);
  transition: all var(--transition-base);
  border: none;
  cursor: pointer;
}

.program-continue-btn {
  background: var(--primary-gradient);
  color: white;
  box-shadow: var(--shadow-sm);
}
.program-continue-btn:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* --- Sections --- */
.day-cycle-info-section,
.workout-title-section,
.workout-focus-section,
.today-workout-exercises-section,
.navigation-buttons-section,
.workout-user-notes-section,
.strength-cycle-section,
.progress-section,
.calendar-section,
.save-controls-section {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-default);
  padding: var(--space-lg);
}

/* --- Timeline --- */
.program-timeline-container {
  border: none;
  box-shadow: none;
  background: transparent;
  padding: 0;
}

.timeline-scroll-container {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-default);
  padding: var(--space-sm);
}

.timeline-day {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  width: 50px;
  height: 60px;
  margin: 0 var(--space-xs);
}

.timeline-day.current {
  border-color: var(--primary-purple);
  background: var(--primary-light);
  color: white;
  transform: scale(1.05);
}
.timeline-day.current .day-number,
.timeline-day.current .day-type {
    color: white;
}

/* --- Exercise Cards --- */
.exercise-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-default);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  transition: box-shadow var(--transition-base);
}

.exercise-card:hover {
  box-shadow: var(--shadow-md);
}

.exercise-header {
  border-bottom: 1px solid var(--border-default);
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-md);
}

.exercise-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text-main);
  font-weight: 600;
}

.exercise-badge {
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-main {
  background: rgba(93, 95, 239, 0.1);
  color: var(--primary-purple);
}

.badge-accessory {
  background: rgba(78, 205, 196, 0.1);
  color: var(--success-green);
}

/* --- Sets Table --- */
.sets-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 var(--space-xs);
}

.sets-table .table-header {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-transform: uppercase;
  border-bottom: 2px solid var(--border-default);
  padding-bottom: var(--space-xs);
}

.sets-table .table-row {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  margin-bottom: var(--space-xs);
  transition: background var(--transition-fast);
  padding: 8px 0; /* Add padding to row for spacing */
}

.sets-table .table-row:hover {
  background: var(--bg-surface-secondary);
}

/* Inputs in table */
.set-weight-input,
.set-reps-input {
  background: var(--bg-card);
  border: 1px solid var(--border-default) !important; /* Override inline */
  border-radius: var(--radius-md) !important;
  padding: 6px 4px !important;
  width: 100% !important; /* Make fluid */
  max-width: 80px; /* Cap width */
  text-align: center !important;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-main);
  transition: border-color var(--transition-fast);
}

.set-weight-input:focus,
.set-reps-input:focus {
  border-color: var(--primary-purple) !important;
  outline: none;
  box-shadow: 0 0 0 2px rgba(93, 95, 239, 0.2);
}

/* Checkbox */
.set-complete-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  cursor: pointer;
  accent-color: var(--success-green);
}

/* --- Buttons --- */
.timer-video-btn {
  background: var(--bg-surface) !important; /* Override inline */
  color: var(--primary-purple) !important;
  border: 1px solid var(--primary-purple) !important;
  border-radius: var(--radius-full) !important;
  padding: 6px 16px !important;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all var(--transition-base);
  margin: 10px 0 !important;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
}

.timer-video-btn:hover {
  background: var(--primary-purple) !important;
  color: white !important;
}

.create-program-btn {
  background: var(--primary-gradient);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  font-weight: 600;
  transition: all var(--transition-base);
}

.create-program-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* --- Inputs General --- */
input[type="text"],
input[type="number"],
select,
textarea {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-sans);
  color: var(--text-main);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary-purple);
  outline: none;
  box-shadow: 0 0 0 2px rgba(93, 95, 239, 0.1);
}

/* --- Calendar --- */
.calendar-grid {
  gap: var(--space-xs);
}

.calendar-day {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  transition: all var(--transition-base);
}

.calendar-day.today {
  border-color: var(--primary-purple);
  background: rgba(93, 95, 239, 0.05);
}

.calendar-day.has-workout {
  border-bottom: 3px solid var(--primary-light);
}

/* --- Mobile Nav Fix --- */
@media (max-width: 768px) {
  .powerlifting-container {
    padding: var(--space-sm);
  }

  .program-card,
  .exercise-card {
    padding: var(--space-md);
  }
}
