:root {
  --primary-color: #011d79;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-light: #f5f5f5;
  --text-color: #202124;
  --border-color: #dadce0;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --border-radius: 8px;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  -o-tab-size: 4;
  tab-size: 4;
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-feature-settings: normal;
  font-variation-settings: normal;
  -webkit-tap-highlight-color: transparent;
}

body {
  padding-top: 56px;
  line-height: 1.5;
  color: var(--text-dark);
  background-color: var(--background-light);
  margin: 0;
  font-size: 0.95rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.header {
  text-align: center;
  margin: 2rem 0 2.5rem;
}

.header h1 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.header p {
  color: #5f6368;
  font-size: 1rem;
}

/* Navegação dos dias */
.nav-dias {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding: 10px 0;
}

.nav-dia {
  padding: 10px 20px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.nav-dia:hover {
  background: #f1f3f4;
}

.nav-dia.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Card do Treino */
.treino-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
  padding: 20px;
  margin-bottom: 20px;
}

.treino-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.treino-header .badge {
  font-size: 1rem;
  padding: 0.5rem 1rem;
  margin-left: 0.5rem;
}

.grupo-muscular {
  font-size: 1.2em;
  color: var(--primary-color);
  font-weight: 500;
}

.exercicios-lista {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.exercicio-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.exercicio-item:hover {
  border-left: 3px solid var(--primary-color);
}

.exercicio-numero {
  width: 32px;
  height: 32px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

.exercicio-detalhes {
  flex: 1;
}

.exercicio-detalhes h6 {
  margin: 0;
  color: var(--primary-color);
  font-weight: 600;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.info-card i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.info-card h6 {
  margin: 0;
  color: var(--text-dark);
  font-weight: 600;
}

.info-card p {
  margin: 0;
  color: var(--primary-color);
}

/* Modal de Registro */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  position: relative;
}

/* Escala de Borg */
.borg-scale {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0.5rem;
  margin: 1rem 0;
}

.borg-item {
  text-align: center;
}

.borg-radio {
  display: none;
}

.borg-label {
  display: block;
  padding: 0.5rem;
  border: 2px solid #dee2e6;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.3s ease;
}

.borg-label:hover {
  border-color: var(--primary-color);
}

.borg-radio:checked + .borg-label {
  background-color: var(--primary-color);
  color: var(--text-light);
  border-color: var(--primary-color);
}

.borg-label small {
  display: block;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

/* Botões */
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #083158;
  border-color: #083158;
}

.btn-secondary {
  background-color: #6c757d;
  border-color: #6c757d;
}

.btn:hover {
  opacity: 0.9;
}

/* Estatísticas */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.stat-card {
  background: white;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
}

.stat-value {
  font-size: 1.5em;
  color: var(--primary-color);
  font-weight: bold;
}

.stat-label {
  color: #5f6368;
  font-size: 0.9em;
  margin-top: 5px;
}

/* Navbar Moderna */
.navbar-custom {
  background-color: var(--primary-color);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 0.5rem 1rem;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1030;
}

.navbar-custom .navbar-brand {
  color: var(--text-light);
  font-weight: 600;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-custom .navbar-brand img {
  height: 40px;
  width: auto;
}

.navbar-custom .navbar-nav .nav-link {
  color: var(--text-light);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
  position: relative;
  opacity: 0.9;
}

.navbar-custom .navbar-nav .nav-link:hover,
.navbar-custom .navbar-nav .nav-link.active {
  color: var(--secondary-color);
  opacity: 1;
}

.navbar-custom .navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background-color: var(--secondary-color);
}

.navbar-custom .navbar-toggler {
  border-color: var(--text-light);
  padding: 0.25rem 0.5rem;
}

.navbar-custom .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Cards Modernos */
.card-custom {
  border: none;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.card-custom:hover {
  transform: translateY(-5px);
}

/* Tabs Personalizadas */
.nav-tabs-custom {
  border-bottom: 2px solid #e9ecef;
  gap: 1rem;
}

.nav-tabs-custom .nav-link {
  border: none;
  padding: 1rem 1.5rem;
  color: var(--text-dark);
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
}

.nav-tabs-custom .nav-link:hover {
  color: var(--primary-color);
}

.nav-tabs-custom .nav-link.active {
  color: var(--primary-color);
  background: none;
}

.nav-tabs-custom .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

/* Navegação dos Dias */
.days-nav {
  background: white;
  border-radius: var(--border-radius);
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.days-scroll {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}

.days-scroll::-webkit-scrollbar {
  height: 6px;
}

.days-scroll::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.days-scroll::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 3px;
}

.day-btn {
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--primary-color);
  border-radius: 25px;
  background: none;
  color: var(--primary-color);
  font-weight: 500;
  transition: all 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
}

.day-btn:hover {
  background: var(--primary-color);
  color: var(--text-light);
  opacity: 0.9;
}

.day-btn.active {
  background: var(--primary-color);
  color: white;
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--background-light);
  border: none;
  transition: all 0.3s ease;
}

.btn-icon:hover {
  background: #e9ecef;
}

/* Lista de Exercícios */
.exercise-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.exercise-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.exercise-card:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.exercise-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.exercise-content {
  flex: 1;
}

.exercise-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.exercise-details {
  color: #6c757d;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.exercise-progress {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.progress {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: #e9ecef;
}

.progress-bar {
  background: var(--primary-color);
  border-radius: 4px;
}

.progress-text {
  font-size: 0.9rem;
  color: #6c757d;
  min-width: 70px;
}

.btn-record {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.btn-record:hover {
  background: var(--primary-color);
  opacity: 0.9;
}

.btn-record:disabled {
  background: #28a745;
  cursor: not-allowed;
}

/* Exercício Concluído */
.exercise-card.completed {
  background: #f8f9fa;
}

.exercise-card.completed .exercise-number {
  background: #28a745;
}

/* Resumo do Treino */
.workout-summary {
  margin-top: 2rem;
}

.summary-card {
  background: white;
  border-radius: 15px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.summary-card i {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.summary-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.summary-card p {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

/* Estatísticas */
.stats-card {
  background: white;
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  height: 100%;
}

.stats-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Modal */
.modal-content {
  border-radius: var(--border-radius);
  border: none;
}

.modal-header {
  background-color: var(--primary-color);
  color: var(--text-light);
  border-top-left-radius: var(--border-radius);
  border-top-right-radius: var(--border-radius);
}

.modal-header .btn-close {
  filter: brightness(0) invert(1);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  border-top: 1px solid #dee2e6;
  background: #f8f9fa;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
}

/* Animações */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease forwards;
}

/* Responsividade */
@media (max-width: 768px) {
  .days-nav {
    padding: 0.25rem;
  }

  .day-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .exercise-card {
    padding: 1rem;
  }

  .exercise-title {
    font-size: 1rem;
  }

  .summary-card {
    padding: 1rem;
  }

  .summary-card i {
    font-size: 1.5rem;
  }

  .summary-card p {
    font-size: 1.2rem;
  }

  .navbar-custom {
    padding: 0.5rem;
  }

  .navbar-custom .navbar-brand {
    font-size: 1.1rem;
  }

  .navbar-custom .navbar-nav {
    padding: 0.5rem 0;
  }

  .navbar-custom .nav-link {
    padding: 0.5rem 1rem;
  }

  .borg-scale {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  }
}

.badge.bg-info {
  background-color: var(--primary-color) !important;
  color: var(--text-light);
}

.badge.bg-primary {
  background-color: var(--primary-color) !important;
  color: var(--text-light);
}

.btn-primary:hover {
  opacity: 0.9;
}

.card-header.bg-primary {
  background-color: var(--primary-color) !important;
}

.exercicio-item:hover {
  border-left: 3px solid var(--primary-color);
}

.exercicio-numero {
  background: var(--primary-color);
}

.info-card i {
  color: var(--primary-color);
}

.info-card p {
  color: var(--primary-color);
}

.exercicio-detalhes h6 {
  color: var(--primary-color);
}

/* Remover variações de tons de azul não utilizadas */
:root {
  --primary-light: var(--primary-color);
  --primary-dark: var(--primary-color);
}

/* Ajustar hover states para usar o mesmo azul */
.day-btn:hover {
  background: var(--primary-color);
  color: var(--text-light);
  opacity: 0.9;
}

.btn-record:hover {
  background: var(--primary-color);
  opacity: 0.9;
}

/* Ajustar badges e elementos informativos */
.badge.bg-light.text-primary {
  color: var(--primary-color) !important;
}

} 