/* === Barbarav App Style v5.0 - Professional Refinement === */

/* --- 1. Variáveis Globais e Reset --- */
:root {
  /* Paleta de Cores - TEMA CLARO (Padrão) */
  --color-bg-deep: hsl(220, 25%, 98%);
  --color-bg-surface: hsl(0, 0%, 100%);
  --color-bg-surface-translucent: hsla(0, 0%, 100%, 0.85);
  --color-bg-surface-hover: hsl(220, 25%, 95%);
  --color-border: hsl(220, 15%, 88%);
  --color-primary-accent: hsl(210, 100%, 50%);
  --color-primary-accent-dark: hsl(210, 100%, 40%);
  --color-text-primary: hsl(225, 15%, 15%);
  --color-text-secondary: hsl(225, 10%, 45%);
  --color-text-disabled: hsl(210, 10%, 75%);
  --color-success: hsl(145, 63%, 42%);
  --color-success-bg: hsla(145, 63%, 42%, 0.1);

  /* Tipografia e Layout */
  --font-family-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --spacing-unit: 8px;
  --border-radius-medium: 10px;
  --border-radius-large: 14px;
  --transition-smooth: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-theme {
  /* Paleta de Cores - TEMA ESCURO (Sobrescreve) */
  --color-bg-deep: hsl(225, 15%, 9%);
  --color-bg-surface: hsl(225, 15%, 14%);
  --color-bg-surface-translucent: hsla(225, 15%, 14%, 0.85);
  --color-bg-surface-hover: hsl(225, 15%, 19%);
  --color-border: hsl(225, 15%, 25%);
  --color-primary-accent: hsl(205, 100%, 60%);
  --color-primary-accent-dark: hsl(205, 100%, 50%);
  --color-text-primary: hsl(210, 25%, 98%);
  --color-text-secondary: hsl(210, 15%, 65%);
  --color-text-disabled: hsl(210, 15%, 45%);
  --color-success: hsl(145, 63%, 49%);
  --color-success-bg: hsla(145, 63%, 49%, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family-sans);
  background-color: var(--color-bg-deep);
  color: var(--color-text-primary);
  overscroll-behavior: none;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

main {
  padding-bottom: 120px; /* Aumenta o espaço para o menu e o disclaimer */
}

/* --- 2. Estrutura Principal e Navegação --- */
.app-container {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--spacing-unit);
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 2);
  margin-bottom: calc(var(--spacing-unit) * 2);
  position: relative;
}

header h1 {
  font-size: 1.5rem;
  margin: 0;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

#theme-toggle-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text-secondary);
  transition: all var(--transition-smooth);
  z-index: 1; /* Garante que fique acima do h1 se houver sobreposição */
}
#theme-toggle-btn:hover {
  /* color: var(--color-primary-accent);
  transform: translateX(-50%); */
}

/* --- Week Navigation Minimalista --- */
.week-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.week-navigation .nav-btn {
  background: #fff;
  color: var(--color-primary-accent-dark);
  border: 1.5px solid var(--color-border);
  border-radius: 50%;
  width: 47px;
  height: 40px;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  transition: box-shadow 0.18s, border-color 0.18s, color 0.18s;
  padding: 0;
  line-height: 1;
}
.week-navigation .nav-btn:hover:not(:disabled) {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border-color: var(--color-primary-accent);
  color: var(--color-primary-accent);
  background: #f7faff;
}
.week-navigation .nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.week-navigation .week-label {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--color-primary-accent-dark);
  background: none;
  border-radius: 0;
  padding: 0 10px;
  box-shadow: none;
  letter-spacing: 0.01em;
}

/* Tema escuro para navegação minimalista */
body.dark-theme .week-navigation .nav-btn {
  background: #23272b;
  color: #ffe066;
  border-color: #444;
}
body.dark-theme .week-navigation .nav-btn:hover:not(:disabled) {
  background: #2a2a2a;
  color: #fff;
  border-color: #ffe066;
}
body.dark-theme .week-navigation .week-label {
  color: #ffe066;
}

/* --- Day Summary Minimalista --- */
.day-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: var(--color-primary-accent-dark);
  border-radius: 12px;
  border: 1.5px solid var(--color-border);
  box-shadow: none;
  padding: 14px 18px;
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 18px;
  cursor: pointer;
  transition: box-shadow 0.18s, border-color 0.18s, color 0.18s, background 0.18s;
}
.day-summary:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  border-color: var(--color-primary-accent);
  background: #f7faff;
  color: var(--color-primary-accent);
}
.day-summary strong {
  font-size: 1.08em;
  letter-spacing: 0.01em;
  margin-right: 4px;
  text-shadow: none;
}
.day-summary .day-icon {
  font-size: 1.7rem;
  margin-right: 6px;
}

/* Tema escuro para day-summary minimalista */
body.dark-theme .day-summary {
  background: #23272b;
  color: #ffe066;
  border-color: #444;
}
body.dark-theme .day-summary:hover {
  background: #2a2a2a;
  color: #fff;
  border-color: #ffe066;
}
body.dark-theme .day-summary .day-icon {
  color: #ffe066;
}

/* --- Progress Bar Minimalista --- */
.progress-bar-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 22px;
  margin-top: 2px;
}
.progress-bar {
  display: flex;
  width: 100%;
  max-width: 380px;
  height: 12px;
  background: #f3f5f8;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: none;
  margin-bottom: 6px;
}
.progress-segment {
  flex: 1 1 0;
  margin: 0 1.5px;
  background: #e0e7ef;
  border-radius: 6px;
  transition: background 0.3s;
}
.progress-segment.done {
  background: var(--color-primary-accent);
  box-shadow: none;
}
.progress-label {
  font-size: 0.98rem;
  color: var(--color-primary-accent-dark);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-align: center;
  margin-top: 0;
}

/* Tema escuro para progress bar minimalista */
body.dark-theme .progress-bar {
  background: #181a1b;
}
body.dark-theme .progress-segment {
  background: #444;
}
body.dark-theme .progress-segment.done {
  background: #ffe066;
}
body.dark-theme .progress-label {
  color: #ffe066;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-bg-surface-translucent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-around;
  z-index: 1000;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 0.75rem; /* Texto menor para mais elegância */
  padding: var(--spacing-unit) calc(var(--spacing-unit) * 2);
  border-radius: var(--border-radius-medium);
  transition: all var(--transition-smooth);
  flex-grow: 1; /* Ocupa espaço igualmente */
  text-align: center;
}

.nav-item .nav-icon {
  font-size: 1.5rem; /* Ícones maiores */
}

.nav-item.selected {
  color: var(--color-primary-accent);
}

.nav-item:hover {
  background-color: var(--color-bg-surface-hover);
  color: var(--color-text-primary);
}

/* --- 3. Accordion de Treinos (WeekView) --- */
.accordion {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-unit) * 2);
}

.day-container {
  position: relative;
  background-color: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  border: 1.5px solid #e0e7ef;
  transition: box-shadow 0.18s, border-color 0.18s, background 0.18s;
  padding: 0;
  overflow: hidden;
}
.day-container .highlight-today {
  border-left: 5px solid var(--color-primary-accent);
  background: #f7faff;
}
.day-container:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.09);
  border-color: var(--color-primary-accent);
}
body.dark-theme .day-container {
  background-color: #23272b;
  border-color: #444;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
body.dark-theme .day-container .highlight-today {
  border-left: 5px solid #ffe066;
  background: #23272b;
}

.accordion-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 2.5);
  background: transparent;
  border: none;
  color: var(--color-text-primary);
  font-size: 1.1rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--transition-smooth);
}

.accordion-button.active {
  background-color: var(--color-bg-surface-hover);
}

.accordion-button:hover {
  background-color: var(--color-bg-surface-hover);
}

.day-info {
  display: flex;
  align-items: center;
  gap: calc(var(--spacing-unit) * 2);
}

.day-icon {
  font-size: 1.5rem;
  transition: transform var(--transition-smooth);
}

.accordion-button.active .day-icon {
  transform: scale(1.1);
}

.panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.panel-content {
  padding: 0 calc(var(--spacing-unit) * 3) calc(var(--spacing-unit) * 3);
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-unit) * 3);
}

.motivational-tip {
  font-style: italic;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  padding: calc(var(--spacing-unit) * 2);
  background-color: var(--color-bg-deep);
  border-radius: var(--border-radius-medium);
}

/* --- 4. Botões de Ação (Iniciar/Concluir) --- */
.start-training-btn,
.mark-complete-btn {
  width: 100%;
  padding: calc(var(--spacing-unit) * 2);
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  border: none;
  border-radius: var(--border-radius-medium);
  transition: all var(--transition-smooth);
  background: linear-gradient(45deg, var(--color-primary-accent), var(--color-primary-accent-dark));
  color: var(--color-bg-deep);
  text-shadow: 1px 1px 1px rgba(0,0,0,0.2);
}

.start-training-btn::before {
  content: '▶ ';
  font-family: 'Times New Roman';
}
.mark-complete-btn::before {
  content: '✓ ';
}

.start-training-btn:hover,
.mark-complete-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px hsla(205, 100%, 50%, 0.25);
}

.start-training-btn:active,
.mark-complete-btn:active {
  transform: translateY(0px) scale(0.98);
  box-shadow: none;
}

/* --- 5. Detalhes do Treino no Painel --- */

.workout-details-container {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-unit) * 2);
  margin-bottom: calc(var(--spacing-unit) * 3);
}

/* Estilo para Preview de Força */
.phases-preview-list {
  list-style: none;
  padding-left: var(--spacing-unit);
}
.phases-preview-list > li {
  margin-top: var(--spacing-unit);
}
.phase-title {
  font-weight: bold;
  color: var(--color-text-primary);
}
.exercise-preview-list {
  list-style-type: '› ';
  padding-left: calc(var(--spacing-unit) * 3);
  margin-top: var(--spacing-unit);
  color: var(--color-text-secondary);
}

/* Estilo para Detalhes de Corrida */
.phase-detail-block {
  background: var(--color-bg-deep);
  padding: calc(var(--spacing-unit) * 2);
  border-radius: var(--border-radius-medium);
}
.phase-detail-block h4 {
  color: var(--color-primary-accent);
  margin-bottom: var(--spacing-unit);
}
.phase-description {
  color: var(--color-text-secondary);
  margin-bottom: calc(var(--spacing-unit) * 2);
}
.circuit-card {
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-medium);
  overflow: hidden;
}
.circuit-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-unit);
  background: hsla(200, 100%, 55%, 0.1);
  color: var(--color-primary-accent);
  padding: var(--spacing-unit) calc(var(--spacing-unit) * 2);
  font-weight: bold;
}
.circuit-list {
  list-style: none;
  padding: var(--spacing-unit) calc(var(--spacing-unit) * 2);
  background-color: transparent;
}
.circuit-list li {
  padding: calc(var(--spacing-unit) / 2) 0;
  border-bottom: 1px solid var(--color-border);
}
.circuit-list li:last-child {
  border-bottom: none;
}

/* --- 6. Estado Concluído --- */
.day-container.done {
  border: 1px solid var(--color-border);
  background-color: transparent;
  box-shadow: none;
}

.day-container.done .accordion-button {
  color: var(--color-text-disabled);
}

.day-container.done .day-info {
  opacity: 0.6;
}

.done-check {
  color: var(--color-success);
  font-size: 1.5rem;
  font-weight: bold;
  margin-left: auto;
  padding-left: calc(var(--spacing-unit) * 2);
}

.day-container.done .start-training-btn,
.day-container.done .mark-complete-btn {
  background: var(--color-text-disabled);
  color: var(--color-bg-surface);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.7;
}

.day-container.done .start-training-btn:hover,
.day-container.done .mark-complete-btn:hover {
    transform: none;
    box-shadow: none;
}

/* --- 7. Modo de Treino Imersivo (WorkoutView) --- */
.workout-view {
  position: fixed;
  inset: 0;
  background: var(--color-bg-deep);
  z-index: 1000;
  display: flex; /* Alterado para flex */
  flex-direction: column;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

body.workout-active .workout-view {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.workout-header {
  padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0; /* Não encolher */
}

.progress-indicator {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
}
.progress-indicator .separator {
  margin: 0 var(--spacing-unit);
}

.end-workout-btn {
  background: none;
  border: none;
  color: var(--color-text-secondary);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition-smooth);
}
.end-workout-btn:hover {
  color: var(--color-primary-accent);
}

.workout-body {
  padding: calc(var(--spacing-unit) * 3);
  overflow-y: auto; /* Permite scroll apenas no corpo */
  flex-grow: 1; /* Ocupa o espaço restante */
}

.exercise-main-info {
  text-align: center;
  margin-bottom: calc(var(--spacing-unit) * 4);
}
.exercise-title {
  font-size: 2rem;
  color: var(--color-primary-accent);
  margin-bottom: var(--spacing-unit);
}
.exercise-sets-reps {
  display: inline-block;
  background: #f3f5f8;
  color: var(--color-primary-accent-dark);
  border: 1.5px solid var(--color-primary-accent);
  border-radius: 8px;
  padding: 4px 14px;
  font-size: 1.08rem;
  font-family: 'Menlo', 'Consolas', 'monospace';
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-top: 6px;
  margin-bottom: 2px;
  box-shadow: none;
  transition: box-shadow 0.18s, border-color 0.18s, background 0.18s, color 0.18s;
}
.exercise-sets-reps:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  border-color: var(--color-primary-accent-dark);
  background: #e7f0fa;
  color: var(--color-primary-accent-dark);
}
body.dark-theme .exercise-sets-reps {
  background: #23272b;
  color: #ffe066;
  border-color: #ffe066;
}
body.dark-theme .exercise-sets-reps:hover {
  background: #181a1b;
  color: #fff;
  border-color: #ffe066;
}

.exercise-accordion .exercise-accordion-button {
  width: 100%;
  padding: var(--spacing-unit) * 2;
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-medium);
  margin-top: var(--spacing-unit);
  color: var(--color-text-primary);
  text-align: left;
  cursor: pointer;
}
.exercise-accordion .exercise-panel .exercise-panel-content {
  padding: var(--spacing-unit) * 2;
}
.exercise-steps {
  padding-left: var(--spacing-unit) * 2;
}

.workout-footer {
  padding: calc(var(--spacing-unit) * 2);
  border-top: 1px solid var(--color-border);
  flex-shrink: 0; /* Não encolher */
}

.next-phase-btn {
  width: 100%;
  padding: calc(var(--spacing-unit) * 2);
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  border: none;
  border-radius: var(--border-radius-medium);
  transition: all var(--transition-smooth);
  background: linear-gradient(45deg, var(--color-primary-accent), var(--color-primary-accent-dark));
  color: var(--color-bg-deep);
  text-shadow: 1px 1px 1px rgba(0,0,0,0.2);
}
.next-phase-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px hsla(205, 100%, 50%, 0.25);
} 

/* --- Detalhes Clean do Exercício (WorkoutView) --- */
.exercise-details-clean {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.exercise-detail-section {
  background: var(--color-bg-surface);
  border: 1.5px solid var(--color-border);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 20px 18px 16px 18px;
  transition: box-shadow 0.2s;
}
.exercise-detail-section:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}
.detail-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary-accent);
  margin-bottom: 10px;
}
.detail-icon {
  font-size: 1.3em;
  display: flex;
  align-items: center;
}

/* Ajuste para listas de passos */
.exercise-steps {
  padding-left: 1.2rem;
  margin: 0;
}
.exercise-steps li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
  color: var(--color-text-primary);
  font-weight: 500;
}

/* Responsividade */
@media (max-width: 600px) {
  .exercise-detail-section {
    padding: 14px 8px 12px 8px;
  }
  .detail-title {
    font-size: 1rem;
  }
}

/* --- Rodapé fixo para WorkoutView --- */
.workout-view-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.workout-body {
  flex: 1 1 auto;
  overflow-y: auto;
}
.workout-footer {
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  background: var(--color-bg-surface);
  z-index: 10;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.04);
} 
body.workout-active .bottom-nav {
  z-index: 1;
}
.workout-footer {
  z-index: 10;
} 

/* --- Disclaimer Elegante e Moderno --- */
.disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #f7faff;
  color: #2a2a2a;
  border-left: 4px solid var(--color-primary-accent);
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  padding: 16px 20px;
  margin: 28px 0 0 0;
  font-size: 1.01rem;
  font-weight: 500;
  line-height: 1.6;
  animation: fadeIn 0.7s cubic-bezier(.68,-0.55,.27,1.55);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.disclaimer::before {
  content: '🤖';
  font-size: 1.6rem;
  margin-right: 8px;
  flex-shrink: 0;
  margin-top: 2px;
}
.disclaimer strong {
  color: var(--color-primary-accent);
  font-weight: 700;
  margin-right: 4px;
}
@media (max-width: 600px) {
  .disclaimer {
    font-size: 0.98rem;
    padding: 12px 10px;
    border-radius: 8px;
  }
}
body.dark-theme .disclaimer {
  background: #23272b;
  color: #ffe066;
  border-left: 4px solid #ffe066;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
}
body.dark-theme .disclaimer strong {
  color: #ffe066;
} 

/* --- Painel de Corrida Moderno e Visual --- */
.run-workout-overview {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  padding: 22px 18px 18px 18px;
  margin-bottom: 18px;
  margin-top: 6px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.workout-summary {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  border-bottom: 1.5px solid #e0e7ef;
  padding-bottom: 10px;
}
.summary-icon {
  font-size: 2.2rem;
  margin-right: 8px;
}
.workout-summary h3 {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--color-primary-accent-dark);
  margin: 0;
  flex: 1;
}
.phase-count {
  background: var(--color-primary-accent);
  color: #fff;
  border-radius: 16px;
  font-size: 0.98rem;
  font-weight: 600;
  padding: 4px 14px;
  letter-spacing: 0.01em;
}
.phases-clean-timeline {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 8px;
}
.phase-clean-card {
  background: #f7faff;
  border-radius: 10px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
  padding: 16px 14px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-left: 4px solid var(--color-primary-accent);
}
.phase-clean-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.phase-clean-number {
  background: var(--color-primary-accent);
  color: #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}
.phase-clean-title-group {
  flex: 1;
}
.phase-clean-title {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--color-primary-accent-dark);
  margin: 0 0 2px 0;
}
.phase-clean-description {
  color: #6c757d;
  font-size: 0.98rem;
  margin: 0;
}
.cycle-clean-block {
  margin-top: 8px;
  margin-bottom: 2px;
}
.cycle-clean-reps {
  font-size: 0.98rem;
  color: var(--color-primary-accent-dark);
  background: #e7f0fa;
  border-radius: 8px;
  padding: 2px 10px;
  display: inline-block;
  margin-bottom: 6px;
  font-weight: 600;
}
.cycle-clean-list {
  margin-top: 4px;
}
.cycle-clean-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cycle-clean-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 7px;
  padding: 7px 12px;
  font-size: 1.01rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  border-left: 3px solid #e0e7ef;
}
.cycle-clean-icon {
  font-size: 1.3em;
  margin-right: 2px;
}
.cycle-clean-action {
  font-weight: 600;
  color: var(--color-primary-accent-dark);
}
.cycle-clean-duration {
  margin-left: auto;
  color: #6c757d;
  font-size: 0.98em;
  font-weight: 500;
  background: #f3f5f8;
  border-radius: 6px;
  padding: 2px 10px;
}
@media (max-width: 600px) {
  .run-workout-overview {
    padding: 10px 2vw 10px 2vw;
    border-radius: 8px;
  }
  .workout-summary {
    gap: 10px;
    padding-bottom: 6px;
  }
  .phases-clean-timeline {
    gap: 10px;
  }
  .phase-clean-card {
    padding: 10px 6px 8px 8px;
    border-radius: 7px;
  }
  .phase-clean-header {
    gap: 8px;
  }
  .phase-clean-number {
    width: 28px;
    height: 28px;
    font-size: 0.95rem;
  }
  .cycle-clean-item {
    font-size: 0.97rem;
    padding: 5px 7px;
  }
}
body.dark-theme .run-workout-overview {
  background: #23272b;
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
}
body.dark-theme .workout-summary {
  border-bottom: 1.5px solid #444;
}
body.dark-theme .phase-clean-card {
  background: #181a1b;
  border-left: 4px solid #ffe066;
  box-shadow: 0 1px 8px rgba(0,0,0,0.13);
}
body.dark-theme .phase-clean-number {
  background: #ffe066;
  color: #23272b;
}
body.dark-theme .phase-clean-title {
  color: #ffe066;
}
body.dark-theme .cycle-clean-block {
  background: none;
}
body.dark-theme .cycle-clean-item {
  background: #23272b;
  border-left: 3px solid #444;
  color: #ffe066;
}
body.dark-theme .cycle-clean-action {
  color: #ffe066;
}
body.dark-theme .cycle-clean-duration {
  background: #23272b;
  color: #ffe066;
} 

/* --- Ciclo de Corrida em Linha (Chips) --- */
.cycle-inline-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  margin: 8px 0 4px 0;
  width: 100%;
}
.cycle-row-grid {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: center;
  margin: 10px 0 6px 0;
  width: 100%;
  min-width: 0;
}
.cycle-col-reps {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  height: 100%;
}
.cycle-chip-reps {
  margin: 0 auto;
  align-self: center;
  min-width: 44px;
}
.cycle-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f3f5f8;
  color: var(--color-primary-accent-dark);
  border-radius: 12px;
  padding: 8px 16px;
  font-size: 1.01rem;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  border: 1.5px solid #e0e7ef;
  width: 100%;
  min-width: 0;
  white-space: normal;
  transition: background 0.18s, color 0.18s;
}
.cycle-chip .cycle-chip-icon {
  font-size: 1.2em;
  margin-right: 2px;
}
.cycle-chip-action {
  font-weight: 700;
  color: var(--color-primary-accent-dark);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}
.cycle-chip-duration {
  background: #e7f0fa;
  color: #6c757d;
  border-radius: 10px;
  font-size: 0.97em;
  font-weight: 500;
  padding: 3px 10px;
  margin-left: 8px;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .cycle-row-grid {
    grid-template-columns: 38px 1fr;
    gap: 6px;
    align-items: center;
  }
  .cycle-col-reps {
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    min-width: 0;
    height: auto;
    align-self: auto;
  }
  .cycle-col-actions {
    gap: 5px;
  }
  .cycle-chip, .cycle-chip-reps {
    font-size: 0.91rem;
    padding: 4px 7px;
    min-width: 0;
    border-radius: 9px;
  }
  .cycle-chip-action {
    /* max-width: 60px; */
    font-size: 0.91rem;
  }
  .cycle-chip-duration {
    font-size: 0.89em;
    padding: 2px 6px;
    margin-left: 4px;
    border-radius: 7px;
  }
}
body.dark-theme .cycle-chip {
  background: #23272b;
  color: #ffe066;
  border-color: #444;
}
body.dark-theme .cycle-chip-reps {
  background: #ffe066;
  color: #23272b;
}
body.dark-theme .cycle-chip-action {
  color: #ffe066;
}
body.dark-theme .cycle-chip-duration {
  background: #181a1b;
  color: #ffe066;
} 