.background {
  background-image: url("../images/backgrounds/background.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  padding-bottom: 30px;
  position: fixed; /* Fixa o fundo ao rolar */
  top: 0; /* Alinha ao topo */
  left: 0; /* Alinha à esquerda */
  width: 100%; /* Largura total */
  height: 100%; /* Altura total da tela */
  z-index: -1; /* Coloca atrás de todos os elementos */
}

.card-subtitle{
  max-width: 450px;
}

.scrollable-form {
  max-height: 640px;

  overflow-y: auto;

}

.btn-radio-group .btn {
  margin-right: 15px;
  /* Espaçamento entre botões */
}


.nowrap {
  flex-wrap: nowrap;
}

.flex {
  display: flex;
  gap: 30px;
}

.flex-grow-1 {
  flex-grow: 1;
}

.flex-grow-2 {
  flex-grow: 2;
}

.photo {
  width: 150px;
}

.details .icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-size: contain;
  background-repeat: no-repeat;
}

.icon-clock {
  background-image: url('../icons/mdi_clock-outline.svg');
}

.icon-gender {
  background-image: url('../icons/icons8_gender.svg');
}

.icon-diagnosis {
  background-image: url('../icons/Mental.svg');
}

.icon-unit {
  background-image: url('../icons/lucide_school.svg');
}

.icon-phone {
  background-image: url('../icons/Contatos.svg');
}

.icon-group {
  background-image: url('../icons/grupo.svg');
}

.icon-responsible {
  background-image: url('../icons/Responsaveis.svg');
}

.icon-suporte {
  background-image: url('../icons/bx_support.svg');
}

.flex-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}


body {
  font-family: Arial, sans-serif;
}

.student-card .card {
  width: 300px;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  background-color: #fff;
  margin: 20px;
  /* Added margin for better spacing */
}

.student-card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background-color: #f9f9f9;
  border-bottom: 1px solid #ddd;
}

.student-card .card-header .status {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: green;
}

.student-card .card-body {
  padding: 15px;
}

.student-card .card-body .profile {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.student-card .card-body .profile img {
  border-radius: 50%;
  margin-right: 15px;
}

.student-card .card-body .details {
  font-size: 14px;
  color: #555;
}

.student-card .card-body .details div {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.student-card .card-body .details div i {
  margin-right: 10px;
}

.student-card .card-footer {
  padding: 15px;
  background-color: #f9f9f9;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.student-card .progress-bar {
  width: 100%;
  height: 10px;
  background-color: #eee;
  border-radius: 5px;
  overflow: hidden;
  margin-top: 10px;
}

.student-card .progress-bar .progress {
  height: 100%;
  width: 24%;
  background-color: #007bff;
}

.student-card .details .icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-size: contain;
  background-repeat: no-repeat;
}

.student-card .icon-clock {
  background-image: url('@@webRoot/assets/icons/mdi_clock-outline.svg');
}

.student-card .icon-gender {
  background-image: url('@@webRoot/assets/icons/icons8_gender.svg');
}

.student-card .icon-diagnosis {
  background-image: url('@@webRoot/assets/icons/Mental.svg');
}

.student-card .icon-unit {
  background-image: url('@@webRoot/assets/icons/lucide_school.svg');
}

.student-card .icon-phone {
  background-image: url('@@webRoot/assets/icons/Contatos.svg');
}

.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.preloader-logo {
  width: 150px;
  height: auto;
  margin-bottom: 20px;
}

.preloader-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #5d87ff; /* Cor principal da Realce */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* WIZARD */
.wizard-content .wizard > .steps > ul > li.current .step {
  border-color: var(--bs-primary);
  background-color: var(--bs-primary);
  color: var(--bs-white);
}

.wizard-content .wizard > .steps > ul > li.done .step {
  background-color: var(--bs-white);
  border-color: var(--bs-primary);
  color: #2a3547;
}

.wizard > .steps .current a:active {
  
  background: #9dc8e2;
  color: var(--bs-white);
  cursor: default;
}

.wizard > .steps > ul > li {
  width: 20%;
  float: left;
}

.wizard > .steps .done a {
  background: var(--bs-white);
  color: #2a3547;
}
.wizard > .steps .done a:hover {
  background: var(--bs-white);
  color: #2a3547;
}
.wizard > .steps .done a:active {
  background: #489f1f;
  color: #fff;
}

/* ===== DASHBOARD ADMINISTRATIVO ===== */

/* Estados de carregamento para contadores */
.loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #5D87FF;
  border-radius: 50%;
  animation: loading-spin 1s linear infinite;
}

@keyframes loading-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Animação suave para contadores */
.counter-animation {
  transition: all 0.3s ease-in-out;
}

/* Melhoria visual para cards de métricas */
.card.bg-primary-subtle:hover,
.card.bg-success-subtle:hover,
.card.bg-warning-subtle:hover,
.card.bg-info-subtle:hover {
  transform: translateY(-2px);
  transition: transform 0.2s ease-in-out;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Loading state para gráficos */
.chart-loading {
  position: relative;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart-loading::before {
  content: 'Carregando dados...';
  position: absolute;
  font-size: 14px;
  color: #666;
  z-index: 10;
}

.chart-loading::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #5D87FF;
  border-radius: 50%;
  animation: loading-spin 1s linear infinite;
  margin-top: 30px;
}

/* Responsividade para gráficos */
@media (max-width: 768px) {
  .chart-container {
    margin-bottom: 20px;
  }
  
  .card h5.card-title {
    font-size: 1.1rem;
  }
  
  .card p.card-subtitle {
    font-size: 0.9rem;
  }
}