/* dashboard.css - Estilos específicos para o dashboard */

.dashboard-container {
  padding: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.dashboard-header h2 {
  margin: 0;
}

.search-container {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
}

#search-aluno {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

#btn-add-aluno {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 8px 12px;
  font-size: 14px;
  background-color: var(--primary-color);
}


.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.dashboard-card {
  background-color: var(--card-background);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.dashboard-card h3 {
  padding: 1rem;
  margin: 0;
  background-color: var(--header-background);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dashboard-card .card-content {
  padding: 1rem;
  max-height: 400px;
  overflow-y: auto;
}

/* Alunos ativos */
.alunos-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.aluno-card {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background-color: rgba(217, 217, 217, 0.247);
  cursor: pointer;
  transition: var(--transition);
}

.aluno-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.aluno-foto {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 1rem;
  border: 2px solid var(--primary-color);
  /* Borda na foto */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.aluno-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aluno-info {
  flex: 1;
}

.aluno-info h4 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.aluno-email {
  display: none;
  font-size: 0.8rem;
  color: var(--text-light);
  margin: 0 0 0.25rem;
}

.aluno-tempo {
  font-size: 0.7rem;
  color: var(--primary-color);
  margin: 0;
  margin-bottom: 10px;
}

/* Fichas recentes */
.ficha-item {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background-color: white;
  margin-bottom: 0.75rem;
}

.ficha-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.ficha-aluno-info h4 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.ficha-data {
  font-size: 0.8rem;
  color: var(--text-light);
  margin: 0;
}


/* Aniversariantes */
.aniversariantes-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.aniversariante-card {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  /* border: 2px solid #23AECD; */
  border: 1px solid #23AECD;
  /* Borda padrão mais sutil */

  border-radius: var(--border-radius);
  background-color: #23aecd1f;
  position: relative;
  /* Para posicionar o ícone do WhatsApp */
  transition: all 0.3s ease;
}

.aniversariante-card.aniversariante-hoje {
  border-color: var(--success-color, #28a745);
  /* Borda verde para destaque */
  background-color: rgba(40, 167, 69, 0.15);
  /* Fundo levemente verde */
  box-shadow: 0 0 10px rgba(40, 167, 69, 0.3);
}

.whatsapp-aniversariante {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 1.3rem;
  /* Tamanho do ícone */
  color: #25D366;
  /* Cor do WhatsApp */
  text-decoration: none;
  transition: transform 0.2s ease;
}

.whatsapp-aniversariante:hover {
  transform: scale(1.15);
}


.aniversariante-foto {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 0.75rem;
  border: 3px solid white;
  /* Borda na foto */
  flex-shrink: 0;
}

.aniversariante-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aniversariante-info h4 {
  margin: 0 0 0.25rem;
  font-size: 0.9rem;
}

.aniversariante-data {
  font-size: 0.8rem;
  color: var(--text-light);
  margin: 0;
}

/* Fichas vencidas */
.ficha-vencida-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  border-left: 4px solid transparent;
  border-radius: var(--border-radius);
  background-color: white;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow);
}

.ficha-vencida-item.expired {
  border-left-color: var(--error-color);
}

.ficha-vencida-item.warning {
  border-left-color: var(--warning-color);
}

.ficha-status {
  font-weight: 500;
  margin: 0.25rem 0;
}

.ficha-vencida-item.expired .ficha-status {
  color: var(--error-color);
}

.ficha-vencida-item.warning .ficha-status {
  color: var(--warning-color);
}

/* Responsividade */
@media (max-width: 992px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  /* .search-container {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .search-container input {
    width: 100%;
  } */
}

/* Estilos para as abas */
.card-tabs {
  display: flex;
  align-items: center;
  background-color: var(--header-background);
  border-bottom: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
}

.tab-button {
  background: none;
  border: none;
  padding: 0.5rem 1rem;
  margin-right: 0.5rem;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-light);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.tab-button.active {
  background-color: var(--primary-color);
  color: white;
}

.tab-button:hover:not(.active) {
  background-color: rgba(0, 0, 0, 0.05);
}

.tab-select {
  margin-left: auto;
  padding: 0.25rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
}

.tab-content {
  display: none;
  padding: 1rem;
}

.tab-content.active {
  display: block;
}

/* Estilos para o ranking de FitCoins */
.fitcoins-ranking-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.fitcoins-ranking-item {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background-color: white;
  position: relative;
}

.ranking-position {
  width: 24px;
  height: 24px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 0.75rem;
  font-weight: bold;
  flex-shrink: 0;
}

.ranking-position.top-1 {
  background-color: gold;
  color: #333;
}

.ranking-position.top-2 {
  background-color: silver;
  color: #333;
}

.ranking-position.top-3 {
  background-color: #cd7f32;
  /* bronze */
  color: white;
}

.fitcoins-value {
  margin-left: auto;
  font-weight: bold;
  color: var(--primary-color);
  background-color: rgba(52, 152, 219, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: var(--border-radius);
}

/* Saldo de FitCoins no card de aluno */
.aluno-fitcoins {
  position: absolute;
  bottom: 0.2rem;
  /* Movido para baixo */

  right: 0.2rem;
  background-color: rgba(52, 152, 219, 0.1);
  color: var(--primary-color);
  font-weight: bold;
  padding: 0.15rem 0.4rem;
  /* Padding menor */

  border-radius: var(--border-radius);
  font-size: 0.7rem;
  /* Fonte menor */

}

.aluno-card {
  position: relative;
}

/* Ícones sociais no card de aluno */

.aluno-social-icons {
  position: absolute;
  top: 2px;
  /* Movido para cima */
  right: 8px;

  display: flex;
  gap: 10px;
}

.aluno-social-icons a {
  font-size: 1.2rem;
  /* Tamanho dos ícones sociais */
  text-decoration: none;
  transition: transform 0.2s ease-in-out;
}

.aluno-social-icons a:hover {
  transform: scale(1.2);
}

.aluno-social-icons .fa-whatsapp {
  color: #25D366;
  /* Cor do WhatsApp */
}

.aluno-social-icons .fa-instagram {
  color: #E4405F;
  /* Cor do Instagram */
}


/* Adicionar ao main.css ou dashboard.css */

/* Ajustar o layout do modal de adicionar aluno */
#modal-add-aluno .modal-content {
  max-width: 600px;
}

#modal-add-aluno .form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

#modal-add-aluno .form-row .form-group {
  flex: 1;
}

#modal-add-aluno .form-group {
  margin-bottom: 1rem;
}

/* Estilo para campos de contato */
#whatsapp,
#instagram {
  padding-left: 30px;
  background-repeat: no-repeat;
  background-position: 8px center;
  background-size: 16px;
}

#whatsapp {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="%2325D366" d="M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z"/></svg>');
}

#instagram {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="%23E4405F" d="M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"/></svg>');
}

/* Modal de Detalhes do Aluno */
.modal-large {
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  /* Adicionar rolagem se necessário */
}

.modal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

/* Abas do modal */
.modal-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 0rem;
}

.modal-tabs .tab-button {
  padding: 0.75rem 1.5rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-light);
  transition: var(--transition);
}

.modal-tabs .tab-button.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.modal-tabs .tab-button:hover:not(.active) {
  color: var(--primary-dark);
  border-bottom-color: rgba(71, 173, 178, 0.3);
}

/* Conteúdo das abas */
.tab-content {
  flex: 1;
  width: 100%;
}

.tab-pane {
  display: none;
  width: 100%;
}

.tab-pane.active {
  display: block;
}

/* Estilo para a lista de fichas */
.fichas-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

/* .fichas-aluno-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-height: 500px;
  overflow-y: auto;
  padding-right: 0.5rem;
} */

.ficha-bloco-header .toggle-icon {
  font-size: 1rem;
  transition: transform 0.3s;
}

.ficha-bloco.collapsed .toggle-icon {
  transform: rotate(-90deg);
}

.ficha-bloco.collapsed .ficha-bloco-content {
  display: none;
}

.ficha-bloco {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: 1rem;
}

.ficha-bloco-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: #f9f9f9;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
}

.ficha-bloco-header h5 {
  margin: 0;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ficha-bloco-header .ficha-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ficha-bloco-header .ficha-status .status-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.ficha-bloco-header .ficha-status .status-badge.ativa {
  background-color: rgba(46, 204, 113, 0.2);
  color: #27ae60;
}

.ficha-bloco-header .ficha-status .status-badge.inativa {
  background-color: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
}

.ficha-bloco-content {
  padding: 1rem;
}

/* Ajustar grid de treinos */
.ficha-treinos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  max-height: 400px;
  overflow-y: auto;
}

.ficha-treino-card {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.ficha-treino-header {
  padding: 0.75rem;
  background-color: rgba(71, 173, 178, 0.1);
  border-bottom: 1px solid var(--border-color);
  font-weight: 500;
  color: var(--primary-color);
}

.ficha-treino-body {
  padding: 0.75rem;
  max-height: 200px;
  overflow-y: auto;
}

.ficha-treino-body pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 0.9rem;
}

.ficha-acoes {
  display: none;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid var(--border-color);
}

.toggle-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 20px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked+.toggle-slider {
  background-color: var(--primary-color);
}

input:checked+.toggle-slider:before {
  transform: translateX(20px);
}

/* Ajustar o estilo do modal para garantir que o conteúdo seja visível */
.modal-content.modal-large {
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.modal-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* Evitar scroll duplo */
}

.tab-content {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0;
}

/* Garantir que os painéis de aba ocupem todo o espaço disponível */
.tab-pane {
  display: none;
  width: 100%;
  height: 100%;
}

.tab-pane.active {
  display: block;
}

/* Estilo para o formulário de edição */
#form-editar-aluno {
  padding: 0.2rem;
}


/* Melhorar o layout das fichas */
.fichas-aluno-list {
  max-height: 500px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

/* Estilos mais específicos para evitar conflitos */
#modal-detalhes-aluno .tab-content {
  display: block !important;
}

#modal-detalhes-aluno .tab-pane {
  width: 100%;
  height: auto;
  min-height: 200px;
  /* Altura mínima para garantir visibilidade */
}

#modal-detalhes-aluno .tab-pane.active {
  display: block !important;
  /* Usar !important para sobrescrever outros estilos */
}

#detalhes-dados-pessoais,
#detalhes-fichas-aluno {
  padding: 1rem;
  background-color: white;
  /* Garantir que o fundo seja visível */
}

/* Adicionar ao dashboard.css */

/* Layout de edição de aluno */
.aluno-edit-container {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.aluno-edit-foto {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary-color);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.aluno-edit-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aluno-edit-dados {
  flex: 1;
}

/* Responsividade para o modal de detalhes do aluno em dispositivos móveis */
@media screen and (max-width: 768px) {

  /* Ajustar tamanho do modal */
  .modal-content.modal-large {
    width: 95%;
    max-width: 100%;
    max-height: 95vh;
  }

  /* Reorganizar layout de edição para dispositivos móveis */
  .aluno-edit-container {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  /* Centralizar e ajustar tamanho da foto */
  .aluno-edit-foto {
    width: 120px;
    height: 120px;
    margin-bottom: 0.5rem;
  }

  /* Fazer os dados ocuparem toda a largura */
  .aluno-edit-dados {
    width: 100%;
  }

  /* Ajustar campos em uma única coluna */
  .aluno-edit-dados .form-row {
    flex-direction: column;
    gap: 0.75rem;
  }

  .aluno-edit-dados .form-group {
    width: 100%;
  }

  /* Aumentar tamanho dos inputs para facilitar digitação */
  .aluno-edit-dados input,
  .aluno-edit-dados select,
  .aluno-edit-dados textarea {
    padding: 0.75rem;
    font-size: 16px !important;
    /* Evita zoom automático em iOS */
  }

  /* Ajustar botões */
  .form-actions {
    padding-top: 1rem;
  }

  .form-actions button {
    width: 100%;
    padding: 0.75rem;
  }

  /* Ajustar abas */
  .modal-tabs {
    justify-content: center;
  }

  .modal-tabs .tab-button {
    flex: 1;
    text-align: center;
    padding: 0.75rem 0.5rem;
  }

  /* Ajustar layout da aba de fichas */
  .fichas-header {
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
  }

  .fichas-header button {
    width: 100%;
  }

  /* Ajustar layout dos cards de treino */
  .ficha-treinos {
    grid-template-columns: 1fr;
  }

  /* Melhorar visualização das fichas */
  .ficha-bloco-header {
    padding: 0.75rem;
  }

  .ficha-bloco-content {
    padding: 0.75rem;
  }
}

/* Ajustes específicos para telas muito pequenas */
@media screen and (max-width: 375px) {
  .aluno-edit-foto {
    width: 100px;
    height: 100px;
  }

  .modal-tabs .tab-button {
    font-size: 0.9rem;
    padding: 0.5rem;
  }
}

.inicio-treino-container {
  display: flex;
  align-items: center;
  margin-right: 15px;
  /* Ajustar margem para a direita em vez da esquerda */
}

.inicio-treino-input {
  margin-left: 5px;
  padding: 3px 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: inherit;
}

/* Ajuste para o layout do ficha-bloco-header */
.ficha-bloco-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px;
}

/* Estilos para o card de estatísticas */
.estatisticas .fas {
  margin-left: 10px;
  color: #008CBA;
}

.stats-section {
  margin-bottom: 20px;
}

.stats-section h4 {
  margin-bottom: 10px;
  color: #333;
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 15px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px;
  background-color: #f9f9f9;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stat-value {
  font-size: 24px;
  font-weight: bold;
  color: #008CBA;
}

.stat-label {
  font-size: 14px;
  color: #666;
  margin-top: 5px;
}

/* Gráfico simples sem Chart.js */
.simple-chart {
  margin-top: 15px;
}

.chart-label {
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
}

.chart-bar {
  height: 25px;
  background-color: #f0f0f0;
  border-radius: 4px;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
}

.chart-fill {
  height: 100%;
  transition: width 0.5s ease-in-out;
}

.chart-value {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #333;
  font-weight: bold;
  font-size: 14px;
}

/* Responsividade para telas menores */
@media screen and (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .report-list .aluno-falta-item {
    /* flex-direction: column;  */
    /* Empilhar informações do aluno e semanas de falta */
    /* align-items: flex-start;  */
    /* Alinhar à esquerda */
    gap: 8px;
  }
}

/* Estilos para o novo card de Relatórios */
#relatorios-card .card-content {
  padding-top: 0;
  /* Remover padding superior para as abas ficarem no topo */
}

/* Contêiner das abas dentro do card de relatórios */
#relatorios-card .tabs-container {
  display: flex;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
  padding: 0 1rem;
  /* Adicionar padding horizontal para alinhar com o conteúdo do card */
}

/* Botões das abas dentro do card de relatórios */
#relatorios-card .tab-button {
  padding: 10px 15px;
  cursor: pointer;
  border: none;
  background-color: transparent;
  font-size: 1rem;
  color: #555;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

#relatorios-card .tab-button:hover {
  color: var(--primary-color);
}

#relatorios-card .tab-button.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  font-weight: bold;
}

/* Conteúdo das abas dentro do card de relatórios */
#relatorios-card .tab-content {
  display: none;
  animation: fadeIn 0.5s;
  padding: 0 0rem 1rem 0rem;
  /* Adicionar padding ao conteúdo das abas */
}

#relatorios-card .tab-content.active {
  display: block;
}

/* Responsividade para as abas do card de relatórios */
@media screen and (max-width: 600px) {
  #relatorios-card .tabs-container {
    flex-direction: column;
    /* Empilhar abas verticalmente */
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Grid para a aba de Acompanhamento */
.report-grid {
  display: grid;
  grid-template-columns: 1fr;
  /* Faz cada card ocupar uma linha inteira */
  gap: 20px;
}

/* Estilo para os cards de aluno em acompanhamento */
.aluno-acompanhamento-card {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 0px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.aluno-acompanhamento-card h3 {
  margin-top: 0;
  margin-bottom: 0px;
  font-size: 1.1rem;
  color: #333;
  display: flex;
  align-items: center;
  background-color: transparent;
  /* Sobrescrever estilo do card-header h3 */
  border-bottom: solid 2px var(--primary-color);
  /* Sobrescrever estilo do card-header h3 */
  padding: 8px;
  /* Sobrescrever estilo do card-header h3 */
}

.aluno-acompanhamento-card h3 img {
  width: 30px;
  /* Mantido */
  height: 30px;
  /* Mantido */
  border-radius: 50%;
  /* Mantido */
  margin-right: 10px;
  /* Mantido */
  object-fit: cover;
  /* Mantido */
  border: 1px solid #ddd;
  /* Mantido */
}

.aluno-acompanhamento-card .report-avaliacoes-table th {
  background-color: #f9f9f9;
  font-weight: bold;
  color: #555;
  text-transform: uppercase;
  /* Cabeçalho em maiúsculas */
  font-size: 0.75em;
  /* Fonte menor para cabeçalho */
}

.aluno-acompanhamento-card h3 .whatsapp-acompanhamento-icon {
  margin-left: 10px;
  font-size: 1.1rem;
  /* Ajuste o tamanho conforme necessário */
  color: #25D366;
  /* Cor do WhatsApp */
  text-decoration: none;
  vertical-align: middle;
  /* Alinha verticalmente com o texto do nome */
}

.aluno-acompanhamento-card h3 img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: 10px;
  object-fit: cover;
  border: 1px solid #ddd;
}



/* Definindo larguras das colunas */
.aluno-acompanhamento-card .report-avaliacoes-table th:nth-child(1),
.aluno-acompanhamento-card .report-avaliacoes-table td:nth-child(1) {
  /* Data */
  width: 35%;
  min-width: 80px;
  /* Largura mínima para a data */
}

.aluno-acompanhamento-card .report-avaliacoes-table th:nth-child(2),
.aluno-acompanhamento-card .report-avaliacoes-table td:nth-child(2) {
  /* Observações */
  width: 55%;
  /* Mais espaço para observações */
  min-width: 120px;
  /* Largura mínima para observações, permitindo rolagem */
}

.aluno-acompanhamento-card .report-avaliacoes-table th:nth-child(3),
.aluno-acompanhamento-card .report-avaliacoes-table td:nth-child(3) {
  /* Desempenho */
  width: 40%;
  min-width: 90px;
  text-align: center;
  /* Centralizar indicadores de desempenho */
}

.aluno-acompanhamento-card .report-avaliacoes-table th,
.aluno-acompanhamento-card .report-avaliacoes-table td {
  padding: 8px;
  padding: 10px 8px;
  /* Mais padding vertical */
  border-bottom: 1px solid #eee;
  text-align: left;
  vertical-align: top;
  /* Alinha o conteúdo ao topo */
  word-wrap: break-word;
  /* Quebra palavras longas */
  /* min-width: 80px;  */
  /* Largura mínima para evitar esmagamento excessivo */

}


.aluno-acompanhamento-card .report-avaliacoes-table td.obs-text {
  white-space: pre-wrap;
  /* Mantém quebras de linha e espaços nas observações */
}

.aluno-acompanhamento-card .report-avaliacoes-table th {
  text-align: center;
}

.aluno-acompanhamento-card .report-avaliacoes-table {
  width: 100%;
  border-collapse: collapse;
  /* Remove espaçamento entre bordas */
  margin-top: 0px;
  font-size: 0.85em;
  /* Levemente menor para mais conteúdo */
  /* margin-top: 10px; Removido para usar o margin-bottom do h3 */
  font-size: 0.9em;
  /* Aumentado para melhor legibilidade */
  table-layout: auto;
  /* Ajuda a controlar larguras de coluna */
  overflow-x: auto;
  /* Permitir rolagem horizontal em telas pequenas */

}

.aluno-acompanhamento-card .report-avaliacoes-table th {
  background-color: #f9f9f9;
  font-weight: bold;
  color: #555;
  color: #444;
  /* Cor um pouco mais escura para o texto do cabeçalho */
  text-transform: uppercase;
  /* Cabeçalho em maiúsculas */
  font-size: 0.75em;
  /* Fonte menor para cabeçalho */
  font-size: 0.8em;
  /* Ajustado para ser legível mas distinto */
}

.aluno-acompanhamento-card .report-avaliacoes-table .obs-date {
  font-weight: bold;
  font-size: 0.9em;
  color: #555;
  white-space: nowrap;
  /* Evita quebra de linha na data */
}

.aluno-acompanhamento-card .report-avaliacoes-table tbody tr:hover {
  background-color: #f5f5f5;
  /* Efeito hover sutil nas linhas */
}

/* Lista para a aba de Faltas */
.report-list .aluno-falta-item {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 10px 15px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  /* Necessário para posicionar o ícone do WhatsApp */

}

.aluno-falta-item .aluno-nome {
  font-weight: 500;
}

.aluno-falta-item .semanas-faltas {
  font-size: 0.9em;
  color: var(--error-color);
  /* Usar cor de erro para faltas */
  font-weight: bold;
}

.aluno-falta-item .whatsapp-falta-icon {
  position: absolute;
  bottom: 10px;
  right: 15px;
  font-size: 1.3rem;
  /* Ajuste o tamanho conforme necessário */
  color: #25D366;
  /* Cor do WhatsApp */
  text-decoration: none;
  transition: transform 0.2s ease-in-out;
}

.aluno-falta-item .whatsapp-falta-icon:hover {
  transform: scale(1.15);
}


/* Mensagem sem dados */
.report-list .no-data,
.report-grid .no-data {
  text-align: center;
  padding: 20px;
  color: #777;
  font-style: italic;
}

/* Estilos para a lista de observações dentro do card de acompanhamento */
.observacoes-list {
  list-style: none;
  padding: 0;
  max-height: 300px;
  /* Limitar altura e adicionar scroll */
  overflow-y: auto;
}

.observacao-item {
  padding: 8px 0;
  border-bottom: 1px dashed #eee;
}

.observacao-item:last-child {
  border-bottom: none;
  /* Remover borda do último item */
}

.observacao-item .obs-date {
  font-weight: bold;
  font-size: 0.9em;
  color: #555;
  margin-bottom: 4px;
}

.observacao-item .obs-text {
  font-size: 0.95em;
  color: #444;
  margin-bottom: 5px;
  white-space: pre-wrap;
  /* Para manter quebras de linha das observações */
}

.observacao-item .desempenho-container {
  display: flex;
  align-items: center;
  font-size: 0.85em;
  color: #666;
}

.observacao-item .desempenho-container .desempenho-label {
  margin-right: 5px;
}

/* Aba FitCoins no Modal Detalhes do Aluno */

.fitcoins-tab-pane {
  /* Usar uma classe mais específica para evitar conflitos */
  padding: 1.5rem;
  /* Aumentar padding geral da aba */
  background-color: #f9fafb;
  /* Fundo muito leve para a aba inteira */

}

.fitcoins-saldo-header {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color-light, #eee);
  text-align: center;
}

.fitcoins-saldo-header h4 {
  margin: 0;
  font-size: 1.2em;
  color: var(--text-medium);

}

#fitcoins-saldo-total-display {
  font-weight: bold;
  color: var(--primary-color);
  font-size: 1.3em;
  /* Tornar o saldo mais destacado */

}


.fitcoins-history-list {
  max-height: 300px;
  /* Altura máxima antes da rolagem */
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 0.75rem;
  margin-bottom: 1.5rem;
  background-color: #ffffff;
  /* Fundo branco para a lista */

}

.fitcoins-history-list .loading-message,
.fitcoins-history-list .empty-message,
.fitcoins-history-list .error-message {
  text-align: center;
  color: var(--text-light);
  padding: 1rem;
}

#detalhes-fitcoins-aluno h5 {
  /* Estilo para os subtítulos */
  margin-top: 0;
  margin-bottom: 1rem;
  /* Mais espaço abaixo do subtítulo */
  font-size: 1.1em;
  color: var(--text-medium);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
  /* Linha sutil abaixo do subtítulo */
}



.transactions-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.transaction-item {
  display: flex;
  /* justify-content: space-between; */
  align-items: center;
  gap: 0.75rem;
  /* Aumentar um pouco o espaço entre os elementos da linha */

  padding: 0.75rem 0.5rem;
  /* Aumentar padding dos itens */
  border-bottom: 1px dashed #eee;
}

.transaction-item:last-child {
  border-bottom: none;
}

.transaction-quantity {
  font-weight: bold;
  min-width: 70px;
  /* Ajuste se necessário */

  flex-shrink: 0;
  /* Não encolhe */
  margin-right: 10px;
}

.transaction-quantity.positive {
  color: var(--success-color, #28a745);
  /* Verde para positivo */
}

.transaction-quantity.negative {
  color: var(--error-color, #dc3545);
  /* Vermelho para negativo */
}

.transaction-observation {
  flex-grow: 1;
  /* Ocupa o espaço restante */
  font-size: 0.9em;
  color: #555;
  word-break: break-word;
  /* Quebra palavras longas para evitar overflow */
}

.transaction-actions {
  flex-shrink: 0;
  margin-left: auto;
  /* Empurra o botão para a direita */

}

.btn-cancel-transaction {
  background: none;
  border: none;
  color: var(--error-color, #dc3545);
  cursor: pointer;
  padding: 0.25rem;
  font-size: 0.9em;
  line-height: 1;
  /* Para melhor alinhamento do ícone */

}

.btn-cancel-transaction:hover {
  color: var(--error-dark, #a71d2a);
}

/* Responsividade para a aba FitCoins */
@media screen and (max-width: 768px) {
  .fitcoins-tab-pane {
    padding: 1rem;
    /* Reduzir padding em telas menores */
  }

  #detalhes-fitcoins-aluno h5 {
    font-size: 1em;
    /* Reduzir tamanho da fonte dos subtítulos */
  }

  .fitcoins-form-row-inline {
    flex-direction: column;
    /* Empilhar campos do formulário */
    gap: 0.75rem;
    align-items: stretch;
    /* Esticar para ocupar a largura */
  }

  #form-add-fitcoins .form-actions {
    text-align: center;
    /* Centralizar botão em telas menores */
  }

  .transaction-item {
    padding: 0.6rem 0.25rem;
    /* Reduzir padding dos itens da transação */
    gap: 0.5rem;
  }

  .transaction-quantity {
    min-width: 60px;
    /* Ajustar largura mínima da quantidade */
  }
}



.fitcoins-separator {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  border: 0;
  border-top: 1px solid var(--border-color);
}

/* Estilos para o formulário de adicionar FitCoins */
#form-add-fitcoins {
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: var(--border-radius-large, 8px);
  /* Usar um raio maior se definido, ou 8px */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  /* Sombra um pouco mais pronunciada */
  margin-top: 1rem;
  /* Espaço acima do formulário */
}

#form-add-fitcoins label {
  display: block;
  /* Garante que o label ocupe a linha toda */
  margin-bottom: 0.5rem;
  /* Espaço entre o label e o input */
  font-weight: 500;
  color: var(--text-dark);
  font-size: 0.9em;

}

#form-add-fitcoins input[type="number"],
#form-add-fitcoins select,
#form-add-fitcoins textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color, #ddd);
  border-radius: var(--border-radius, 4px);
  font-size: 1rem;
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

#form-add-fitcoins input[type="number"]:focus,
#form-add-fitcoins select:focus,
#form-add-fitcoins textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb, 71, 173, 178), 0.25);
  outline: none;
}


#form-add-fitcoins .form-actions {
  text-align: right;
  /* Alinha o botão Salvar à direita */
  margin-top: 1rem;
}

.fitcoins-form-row-inline {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  /* Alinha os campos pela base se tiverem alturas diferentes */
  margin-bottom: 1rem;
}

/* Estilos para indicadores de desempenho (reutilizados/adaptados) */
.desempenho-indicadores {
  display: inline-flex;
  gap: 6px;
  /* Menor espaçamento para a lista */
}

.indicador {
  width: 14px;
  /* Menor para a lista */
  height: 14px;
  /* Menor para a lista */
  border-radius: 50%;
  display: inline-block;
  border: 1px solid #000000ce;
}

.indicador-1 {
  background-color: #ff6b6b;
  /* Red */
}

.indicador-2 {
  background-color: #f3a96c;
  /* Yellow */
}

.indicador-3 {
  background-color: #ffd666;
  /* Green */
}

.indicador-4 {
  background-color: #abc978;
  /* Green */
}

.indicador-5 {
  background-color: #57bb8a;
  /* Green */
}

.indicador-null {
  background-color: #e0e0e0;
  /* Grey for N/A */
}

/* Estilos para o Botão Flutuante (FAB) do Manual */
.fab-manual {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--primary-color);
  /* Ou uma cor de destaque */
  color: white;
  border: none;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: background-color 0.3s ease;
}

.fab-manual:hover {
  background-color: var(--primary-color-dark);
  /* Um tom mais escuro no hover */
}

/* Estilos para o Modal do Manual */
.modal-manual-content {
  width: 85%;
  max-width: 1100px;
  height: 85vh;
  display: flex;
  flex-direction: column;
}

.modal-manual-body {
  display: flex;
  flex-direction: row;
  /* Padrão, mas bom explicitar */
  flex-grow: 1;
  overflow: hidden;
  padding-top: 15px;
  padding-bottom: 15px;
  box-sizing: border-box;
  /* Adicionar aqui também é uma boa prática */
}

.manual-toc-panel {
  flex: 0 0 250px;
  /* Define uma largura base fixa (não cresce, não encolhe) */
  /* Ou você pode manter width: 25% e min-width, mas a abordagem com flex-basis é mais robusta */
  /* width: 25%; */
  /* min-width: 200px; */
  padding-right: 20px;
  border-right: 1px solid #eee;
  overflow-y: auto;
  height: 100%;
  box-sizing: border-box;
  /* Adicionado */

}

.manual-toc-panel h4 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.1em;
  color: var(--text-color-dark);
}

.manual-toc-panel ul {
  list-style: none;
  padding-left: 0;
}

.manual-toc-panel ul ul {
  padding-left: 18px;
  /* Aumentar um pouco para melhor distinção */
}

.manual-toc-panel ul ul ul {
  padding-left: 18px;
  /* Para H3 */
}

.manual-toc-panel ul ul ul ul {
  padding-left: 18px;
  /* Para H4 */
}

.manual-toc-panel li a {
  display: block;
  padding: 6px 0;
  text-decoration: none;
  color: var(--primary-color);
  font-size: 0.95em;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.manual-toc-panel li a:hover,
.manual-toc-panel li a.active-toc {
  color: var(--primary-color-dark);
  font-weight: 600;
}


.manual-content-panel {
  flex: 1;
  /* Permite que este painel cresça para ocupar o espaço restante */
  /* Remove width: 75% para permitir que flex-grow funcione corretamente */
  padding-left: 20px;
  overflow-y: auto;
  height: 100%;
  box-sizing: border-box;
  /* Adicionado */
}

.manual-content-panel h1,
.manual-content-panel h2,
.manual-content-panel h3,
.manual-content-panel h4,
.manual-content-panel h5 {
  /* Adicionando H5 caso use no futuro */
  color: var(--text-color-dark);
  margin-top: 1.5em;
  margin-bottom: 0.8em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid #eee;
}

.manual-content-panel h1:first-child,
.manual-content-panel h2:first-child,
.manual-content-panel h3:first-child,
.manual-content-panel h4:first-child,
.manual-content-panel h5:first-child {
  margin-top: 0;
}

.manual-content-panel h1 {
  font-size: 1.8em;
}

.manual-content-panel h2 {
  font-size: 1.5em;
}

.manual-content-panel h3 {
  font-size: 1.3em;
}

.manual-content-panel h4 {
  font-size: 1.15em;
  color: #444;
}

/* Estilo para H4 */
.manual-content-panel h5 {
  font-size: 1.05em;
  color: #555;
}


.manual-content-panel p {
  line-height: 1.7;
  margin-bottom: 1em;
  color: var(--text-color-light);
}

.manual-content-panel ul,
.manual-content-panel ol {
  margin-bottom: 1em;
  padding-left: 25px;
  /* Ajuste para o primeiro nível de lista no conteúdo */
  color: var(--text-color-light);
}

.manual-content-panel ul li,
.manual-content-panel ol li {
  margin-bottom: 0.5em;
  line-height: 1.6;
}

.manual-content-panel ul ul,
.manual-content-panel ol ol {
  margin-top: 0.5em;
  /* Espaço antes de uma sublista */
  margin-bottom: 0.5em;
  /* Espaço depois de uma sublista */
  padding-left: 25px;
  /* Indentação adicional para sublistas */
}

.manual-content-panel strong {
  font-weight: 600;
  color: var(--text-color-dark);
}

.manual-content-panel em {
  font-style: italic;
}

.manual-content-panel code {
  background-color: #f0f0f0;
  padding: 2px 5px;
  border-radius: 4px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9em;
  color: #c7254e;
  /* Cor similar ao Bootstrap para código */
}

.manual-content-panel pre {
  background-color: #f5f5f5;
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 4px;
  overflow-x: auto;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9em;
  line-height: 1.5;
}

.manual-content-panel pre code {
  background-color: transparent;
  padding: 0;
  border-radius: 0;
  color: inherit;
}

.manual-content-panel hr {
  border: 0;
  height: 1px;
  background-color: #ddd;
  margin: 2em 0;
}

.manual-content-panel a {
  color: var(--primary-color);
  text-decoration: none;
}

.manual-content-panel a:hover {
  text-decoration: underline;
}

/* Responsividade para o modal do manual */
@media (max-width: 768px) {
  .modal-manual-body {
    flex-direction: column;
  }

  .manual-toc-panel {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #eee;
    padding-right: 0;
    margin-bottom: 15px;
    max-height: 30vh;
    /* Limita altura do TOC em telas pequenas */
  }

  .manual-content-panel {
    width: 100%;
    padding-left: 0;
  }
}

/* Separator Inativos */
.alunos-separator {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem 0 1rem;
  position: relative;
}

.alunos-separator::before,
.alunos-separator::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.alunos-separator span {
  padding: 0 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Aluno Inativo */
.aluno-card.inactive {
  opacity: 0.7;
  filter: grayscale(1);
  background-color: #f5f5f5;
  border-style: dashed;
}

.aluno-card.inactive:hover {
  opacity: 1;
  filter: grayscale(0);
  background-color: white;
  border-style: solid;
}

/* --- Estilos para o Card de Pré-Cadastros Pendentes --- */

.pending-registrations .card-header h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge-count {
  background-color: var(--error-color, #e74c3c);
  /* Vermelho para destaque */
  color: white;
  font-size: 0.8rem;
  padding: 0.2em 0.6em;
  border-radius: 10px;
  font-weight: bold;
  min-width: 20px;
  text-align: center;
}

.pending-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pending-item {
  display: flex;
  align-items: center;
  /* Alinha verticalmente */
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background-color: white;
  /* Ou uma cor leve para diferenciar novos */
  border-left: 4px solid var(--warning-color, #f39c12);
  /* Laranja para indicar pendência */
  transition: transform 0.2s;
  justify-content: space-between;
  /* Espaça conteúdo e botão */
}

.pending-item:hover {
  transform: translateX(4px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pending-item-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  /* Ocupa o espaço disponível */
}

.pending-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #eee;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #888;
}

.pending-info h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--text-color);
}

.pending-info p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-light);
}

.btn-details {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-details:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Estilos para o Modal de Detalhes do Cadastro */
.details-group {
  margin-bottom: 1rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 1rem;
}

.details-group:last-child {
  border-bottom: none;
}

.details-group h4 {
  font-size: 0.9rem;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.details-row {
  display: flex;
  gap: 1rem;
  /* Espaço entre colunas */
  flex-wrap: wrap;
  /* Permite quebrar linha se necessário */
  margin-bottom: 0.5rem;
}

.details-item {
  flex: 1;
  min-width: 150px;
  /* Largura mínima para cada item */
}

.details-label {
  display: block;
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 0.1rem;
}

.details-value {
  font-weight: 500;
  color: var(--text-color);
  word-break: break-word;
  /* Evita que email/links estourem */
}

.modal-header .btn-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #999;
}

.btn-danger-outline {
  background-color: transparent;
  border: 1px solid var(--error-color, #e74c3c);
  color: var(--error-color, #e74c3c);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 10px;
  font-weight: 500;
}

.btn-danger-outline:hover {
  background-color: var(--error-color, #e74c3c);
  color: white;
}

/* Estado vazio */
.empty-message {
  text-align: center;
  color: var(--text-light);
  font-style: italic;
  padding: 1rem;
}

/* ====================================
   Modal de Detalhes do Cadastro - Moderno
   ==================================== */
#modal-details-registration .modal-content {
  max-width: 500px;
  border-radius: 16px;
  overflow: hidden;
}

#modal-details-registration .modal-header {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 16px 16px 0 0;
}

#modal-details-registration .modal-header .btn-close {
  color: white;
  opacity: 0.8;
}

#modal-details-registration .modal-header .btn-close:hover {
  opacity: 1;
}

.registration-profile {
  text-align: center;
  padding: 1.5rem 1rem;
  background: #fff;
}

.registration-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 0.75rem;
}

.registration-avatar-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
  color: #999;
  font-size: 2.5rem;
}

.registration-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0 0 0.25rem;
}

.registration-phone {
  font-size: 0.95rem;
  color: #25D366;
  margin: 0;
}

.registration-phone i {
  margin-right: 0.3rem;
}

.registration-info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: #f8f9fa;
}

.info-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: all 0.2s;
}

.info-card:hover {
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.info-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--primary-color);
  color: white;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-card-header i {
  font-size: 0.85rem;
}

.info-card-body {
  padding: 0.6rem 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-color);
  text-align: center;
}

#modal-details-registration .form-actions {
  padding: 1rem 1.25rem;
  border-top: 1px solid #eee;
  gap: 0.75rem;
  background: #fff;
}

/* ====================================
   Card Treino Desafio
   ==================================== */
/* .challenge-card herda estilos de .dashboard-card */

.challenge-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 350px;
  overflow-y: auto;
  padding-right: 5px;
}

/* Scrollbar personalizado */
.challenge-list::-webkit-scrollbar {
  width: 5px;
}

.challenge-list::-webkit-scrollbar-thumb {
  background-color: #ddd;
  border-radius: 4px;
}

.challenge-list::-webkit-scrollbar-track {
  background-color: transparent;
}

.challenge-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background-color: #f9f9f9;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.challenge-item:hover {
  background-color: #f0f0f0;
}

.challenge-item .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.challenge-item .info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  /* Garante truncate do texto */
}

.challenge-item .info .name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.challenge-item .info .sheet {
  font-size: 0.75rem;
  color: var(--text-light);
}

.response-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Cores das respostas */
/* Sim! */
.response-badge.sim {
  background-color: #d4edda;
  color: #155724;
}

/* Aguardar mais um pouco */
.response-badge.aguardar {
  background-color: #fff3cd;
  color: #856404;
}

/* Prefiro no final da ficha */
.response-badge.final {
  background-color: #cce5ff;
  color: #004085;
}

/* Prefiro surpresa */
.response-badge.surpresa {
  background-color: #e2e3ff;
  color: #3f51b5;
}

/* Ainda não.. (ou outros) */
.response-badge.default {
  background-color: #e9ecef;
  color: #495057;
}

.challenge-icon {
  margin-right: 8px;
  font-size: 1.1rem;
}