/* Base para transições suaves */
.smooth-transition {
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* Estado inicial para elementos que vão aparecer com animação */
.fade-in-start {
  opacity: 0;
  transform: translateY(10px);
}

/* Animação de giro para o ícone de busca */
@keyframes spin-slow {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.animate-spin-slow {
  animation: spin-slow 2s linear infinite;
}

/* Estilo da seta do tooltip */
#tooltip::before {
  content: "";
  position: absolute;
  top: -6px; /* Posiciona a seta acima da caixa do tooltip */
  right: 10px;
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent white transparent; /* Cria um triângulo usando bordas */
}

/* Estilos Gerais para Botões */
.btn {
    @apply font-bold py-2 px-4 rounded-lg transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-800;
}
.btn-primary {
    @apply bg-teal-600 hover:bg-teal-700 text-white focus:ring-teal-500;
}
.btn-secondary {
    @apply bg-gray-600 hover:bg-gray-700 text-white focus:ring-gray-500;
}
.btn-danger {
    @apply bg-red-600 hover:bg-red-700 text-white focus:ring-red-500;
}

/* Estilos para Modais */
.modal-container {
    @apply fixed inset-0 bg-black bg-opacity-70 flex items-center justify-center z-50;
}
.modal-content {
    @apply bg-gray-800 rounded-lg shadow-xl p-6 md:p-8 w-full max-w-md m-4;
}

/* Estilos para Inputs de Formulário */
.label {
    @apply block text-sm font-medium text-gray-300 mb-1;
}
.input-field {
    @apply shadow-sm bg-gray-700 border border-gray-600 text-white text-sm rounded-lg focus:ring-teal-500 focus:border-teal-500 block w-full p-2.5;
}

/* Status da Conexão */
.status-dot {
    @apply w-3 h-3 rounded-full mr-2;
}
.status-dot.connected {
    @apply bg-green-500;
}
.status-dot.disconnected {
    @apply bg-red-500;
}
.hidden {
    display: none;
}

.status-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-left: 8px;
}
.status-dot.connected {
    background-color: #10B981; /* Verde */
}
.status-dot.disconnected {
    background-color: #EF4444; /* Vermelho */
}