/* Preloader - Fundo Preto e Logo */
#page-loader {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: #000000 !important;
  background-color: #000000 !important;
  z-index: 999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

#page-loader.show {
  opacity: 1 !important;
  pointer-events: all !important;
}

/* Garantir que nada sobrescreva o fundo preto */
#page-loader,
#page-loader * {
  background: transparent !important;
}

#page-loader {
  background: #000000 !important;
  background-color: #000000 !important;
}

/* Animações */
@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 0.8;
  }
}

/* Responsivo */
@media (max-width: 640px) {
  #page-loader img {
    width: 160px !important;
  }
}

/* Outros estilos do sistema */
.page-loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.page-loader-logo {
  width: 200px !important;
  height: auto !important;
  max-width: 200px !important;
  opacity: 0 !important;
  transform: scale(0.8);
  filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0));
  display: block !important;
  visibility: visible !important;
}

.page-loader.active .page-loader-logo {
  animation: logoEntrance 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards,
             logoPulse 3s ease-in-out 1.5s infinite;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

.page-loader-text {
  color: #ffffff !important;
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
}

.page-loader.active .page-loader-text {
  animation: textFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.8s forwards;
}

/* Animação de entrada da logo */
@keyframes logoEntrance {
  0% {
    opacity: 0 !important;
    transform: scale(0.8) translateY(20px);
    filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0));
    visibility: visible !important;
    display: block !important;
  }
  50% {
    opacity: 1 !important;
    transform: scale(1.05) translateY(0);
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.6));
    visibility: visible !important;
    display: block !important;
  }
  70% {
    opacity: 1 !important;
    transform: scale(1);
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.4));
    visibility: visible !important;
    display: block !important;
  }
  100% {
    opacity: 1 !important;
    transform: scale(1);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
    visibility: visible !important;
    display: block !important;
  }
}

/* Animação de fade in do texto */
@keyframes textFadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 0.7;
    transform: translateY(0);
  }
}

/* Animação de pulso sutil para manter atenção */
@keyframes logoPulse {
  0%, 100% {
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.5));
  }
}

/* Responsivo - Ajustar tamanho da logo em telas menores */
@media (max-width: 640px) {
  .page-loader-logo {
    width: 160px;
  }
  
  .page-loader-text {
    font-size: 0.75rem;
  }
}

/* Micro-animações suaves */
.hover-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.shadow-soft {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease;
}

.shadow-soft:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Transições suaves em elementos interativos */
a, button {
  transition: all 0.2s ease;
}

/* Banner topbar global */
.global-banner {
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  padding: 6px 0;
  text-align: center;
  font-size: 13px;
  color: #6b7280;
  position: sticky;
  top: 0;
  z-index: 30;
}
