/* ✅ ALINHAMENTO VISUAL: Botões de Formação agora copiam estilo dos Dias */
/* Baseado em .day-toggle de inscricao-servos.html */

.formation-buttons-container {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.formation-btn {
  /* Copiar estilo de .day-toggle */
  padding: 7px 14px;  /* Reduzido mais 10% (de 8px 16px) */
  border: 2px solid #673AB7;
  border-radius: 25px;
  background: white;
  color: #673AB7;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.81em;  /* Reduzido mais 10% (de 0.9em) */
  min-width: 100px;  /* Reduzido mais 10% (de 110px) */
  text-align: center;
  user-select: none;
}

.formation-btn:hover:not(:disabled):not(.formation-disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(103, 58, 183, 0.3);
  background: #f3e5f5;
}

/* Estados específicos das formações */
.formation-disabled {
  background: #e0e0e0;
  border-color: #bdbdbd;
  color: #757575;
  cursor: not-allowed;
  opacity: 0.6;
}

.formation-available {
  /* Mantém estilo base - roxo */
  background: white;
  border-color: #673AB7;
  color: #673AB7;
}

/* Selecionado/Completo - copiar .day-toggle.selected */
.formation-completed {
  background: linear-gradient(135deg, #673AB7, #512DA8);
  border-color: #673AB7;
  color: white;
  box-shadow: 0 4px 15px rgba(103, 58, 183, 0.4);
}

.formation-completed:hover {
  background: linear-gradient(135deg, #512DA8, #4527A0);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(103, 58, 183, 0.5);
}

/* Perdido - mantém vermelho */
.formation-missed {
  background: linear-gradient(135deg, #F44336, #D32F2F);
  border-color: #D32F2F;
  color: white;
  cursor: not-allowed;
}

.formation-missed.can-edit {
  cursor: pointer;
  opacity: 0.9;
}

.formation-missed.can-edit:hover {
  opacity: 1;
  box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4);
}

/* Indicadores de formação no grid */
.formation-indicators {
  display: flex;
  gap: 5px;
  justify-content: center;
  align-items: center;
}

.formation-indicator {
  font-size: 1.2em;
  display: inline-block;
}

.formation-indicator.completed {
  /* Emoji 🎓 será renderizado via JavaScript */
  color: #4caf50;
}

.formation-indicator.pending {
  opacity: 0.3;
  filter: grayscale(100%);
}

/* Responsividade */
@media (max-width: 768px) {
  .formation-buttons-container {
    flex-direction: column;
  }
  
  .formation-btn {
    width: 100%;
  }
  
  .formation-indicators {
    gap: 3px;
  }
  
  .formation-indicator {
    font-size: 1em;
  }
}
