/* ===== SISTEMA DE LOADING SIMPLIFICADO ===== */

/* Container principal do loading */
.loading-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(247, 245, 246, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.3s ease-out;
}

.loading-container.hidden {
  opacity: 0;
  pointer-events: none;
}

/* 4 bolinhas animadas */
.loading-dots {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.loading-dot {
  width: 12px;
  height: 12px;
  background-color: #333;
  border-radius: 50%;
  animation: dotBounce 1.4s ease-in-out infinite both;
}

.loading-dot:nth-child(1) { animation-delay: -0.32s; }
.loading-dot:nth-child(2) { animation-delay: -0.16s; }
.loading-dot:nth-child(3) { animation-delay: 0s; }
.loading-dot:nth-child(4) { animation-delay: 0.16s; }

@keyframes dotBounce {
  0%, 80%, 100% {
    transform: scale(0);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Versão mobile */
@media (max-width: 768px) {
  .loading-dot {
    width: 10px;
    height: 10px;
  }
  
  .loading-dots {
    gap: 10px;
  }
}

/* Estados de transição */
.loading-container.fade-out {
  animation: fadeOut 0.3s ease-out forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    pointer-events: none;
  }
}
