/* Variáveis de cor */
:root {
    --preto: #121212;
    --roxo-escuro: #7e22ce;
    --roxo-claro: #a855f7;
    --roxo-suave: rgba(126, 34, 206, 0.1);
    --branco: #ffffff;
    --cinza: #e5e7eb;
    --cinza-escuro: #1f2937;
    --cinza-texto: #9ca3af;
  }
  
  /* Reset e estilos base */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
  }
  
  body {
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif;
    line-height: 1.6;
    background-color: var(--preto);
    color: var(--branco);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
  
  /* Header */
  .header-maisa {
    background: linear-gradient(135deg, var(--roxo-escuro), var(--preto));
    padding: 1.5rem;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }
  
  .header-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
  }
  
  .header-maisa h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--branco);
  }
  
  .header-maisa p {
    font-size: 1.1rem;
    color: var(--cinza);
  }
  
  .destaque-nome {
    color: var(--roxo-claro);
    font-weight: bold;
  }
  
  .voltar-inicio {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--branco);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
  }
  
  .voltar-inicio:hover {
    color: var(--roxo-claro);
  }
  
  /* Navegação */
  .nav-treinos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem;
    background-color: var(--cinza-escuro);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  }
  
  .nav-btn {
    background-color: var(--roxo-escuro);
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.3s;
  }
  
  .nav-btn:hover {
    background-color: var(--roxo-claro);
    transform: translateY(-2px);
  }
  
  .nav-btn.active {
    background-color: var(--branco);
    color: var(--roxo-escuro);
  }
  
  /* Conteúdo principal */
  main {
    flex: 1;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    padding: 1rem;
  }
  
  .treino-section {
    display: none;
    animation: fadeIn 0.5s forwards;
  }
  
  .treino-section.active {
    display: block;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  .treino-header {
    margin-bottom: 1.5rem;
  }
  
  .treino-header h2 {
    color: var(--roxo-claro);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
  }
  
  .progresso-container {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    height: 10px;
    margin-bottom: 0.5rem;
    position: relative;
  }
  
  .progresso-barra {
    height: 100%;
    border-radius: 50px;
    background: linear-gradient(90deg, var(--roxo-escuro), var(--roxo-claro));
    width: 0%;
    transition: width 0.5s ease;
  }
  
  .progresso-texto {
    font-size: 0.8rem;
    color: var(--cinza-texto);
    display: block;
    text-align: right;
  }
  
  /* Cards de exercícios */
  .treino-content {
    background-color: var(--cinza-escuro);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  }
  
  .treino-content h3 {
    color: var(--branco);
    font-size: 1.3rem;
    margin: 1.5rem 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
  }
  
  .exercicio-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    border-left: 3px solid var(--roxo-escuro);
  }
  
  .exercicio-header {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
  }
  
  .exercicio-header h4 {
    font-size: 1.1rem;
    color: var(--branco);
    font-weight: 500;
  }
  
  .toggle-detalhes {
    background: none;
    border: none;
    color: var(--roxo-claro);
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s;
  }
  
  .exercicio-card.ativo .toggle-detalhes {
    transform: rotate(180deg);
  }
  
  .exercicio-detalhes {
    padding: 0 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }
  
  .exercicio-card.ativo .exercicio-detalhes {
    padding: 0 1rem 1rem;
    max-height: 500px;
  }
  
  .serie {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--cinza-texto);
  }
  
  .botao-marcar {
    background-color: var(--roxo-escuro);
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
  }
  
  .botao-marcar:hover {
    background-color: var(--roxo-claro);
  }
  
  .botao-marcar.completo {
    background-color: #10b981;
  }
  
  .botao-marcar.completo i {
    display: inline-flex;
  }
  
  .botao-marcar i {
    display: none;
  }
  
  /* Footer */
  .footer-maisa {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--cinza-escuro);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: var(--cinza-texto);
  }
  
  /* Responsividade */
  @media (max-width: 768px) {
    .header-maisa h1 {
      font-size: 1.6rem;
    }
    
    .header-maisa p {
      font-size: 1rem;
    }
    
    .nav-treinos {
      flex-direction: column;
      align-items: stretch;
      gap: 0.3rem;
      padding: 0.8rem;
    }
    
    .nav-btn {
      justify-content: center;
      padding: 0.5rem;
    }
    
    .treino-header h2 {
      font-size: 1.3rem;
    }
    
    .treino-content {
      padding: 1rem;
    }
    
    .exercicio-header h4 {
      font-size: 1rem;
    }
  }
  
  @media (max-width: 480px) {
    .voltar-inicio {
      position: static;
      justify-content: center;
      margin-top: 0.5rem;
    }
    
    .header-content {
      padding-top: 0.5rem;
    }
  }