body {
  background-color: #111827;
  color: #f3f4f6;
  font-family: 'Inter', sans-serif;
}

input,
select,
button {
  background-color: #1f2937;
  color: #f3f4f6;
  border-color: #4b5563;
}

.card {
  background-color: #1f2937;
}

table thead {
  background-color: #374151;
}

table tbody tr:nth-child(odd) {
  background-color: #1f2937;
}

table tbody tr:nth-child(even) {
  background-color: #111827;
}

.text-green-600 {
  color: #10b981;
}

.text-red-600 {
  color: #ef4444;
}

img {
  transition: transform 0.3s ease;
}

img:hover {
  transform: scale(1.1);
}

.bg-gray-700 {
  transition: all 0.3s ease;
}

.bg-gray-700:hover {
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.text-yellow-400 {
  color: #facc15;
}

.text-green-400 {
  color: #4ade80;
}

.trade-city {
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.trade-city-buy {
  background-color: #1e3a8a;
  color: #93c5fd;
}

.trade-city-sell {
  background-color: #166534;
  color: #86efac;
}

/* Novos estilos adicionados */
.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.hover\:shadow-xl:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.transition-shadow {
  transition-property: box-shadow;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.text-blue-300 {
  color: #93c5fd;
}

.text-green-300 {
  color: #6ee7b7;
}

.text-yellow-300 {
  color: #fde047;
}

.text-purple-300 {
  color: #d8b4fe;
}

/* Estilos para o rodapé */
footer {
  background-color: #111827;
  transition: all 0.3s ease;
}

footer:hover {
  color: #e5e7eb;
}

.min-h-screen {
  min-height: 100vh;
}

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

.navbar {
  background-color: #1f2937;
  transition: all 0.3s ease;
}

.navbar a {
  transition: color 0.2s ease;
}

.navbar a:hover {
  color: #60a5fa;
}

#barra-progresso {
  transition: width 0.4s ease, opacity 0.3s ease;
}

.btn-voltar {
  background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
  border: 1px solid #4a5568;
  transition: all 0.3s ease;
}

.btn-voltar:hover {
  transform: translateX(-3px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-refino:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #1a202c;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.page-transition.active {
  opacity: 1;
  pointer-events: all;
}

.loader {
  width: 48px;
  height: 48px;
  border: 5px solid #4a5568;
  border-bottom-color: #4299e1;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.content-wrapper {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.content-wrapper.fade-out {
  opacity: 0;
  transition: opacity 0.3s ease-out;
  /* Deve corresponder ao timeout do JS */
}

/* Garante que o conteúdo fique oculto durante o carregamento */
.content-wrapper[style*="opacity:0"] {
  display: block !important;
  visibility: hidden;
}

.content-wrapper {
  opacity: 0;
  /* Começa invisível */
  transition: opacity 0.3s ease-in 0.1s;
  /* Pequeno delay para a transição */
}

/* Idiomas */
.language-selector img {
  width: 40px;
  height: 28px;
  cursor: pointer;
  margin-right: 10px;
  transition: transform 0.2s;
}

.language-selector img:hover {
  transform: scale(1.1);
}

.footer-language {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-selector {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Estilos específicos para o tema no index */
html.light .card-refino {
  background-color: #ffffff !important;
  color: #1f2937 !important;
  border-color: #e5e7eb !important;
}

html.light .card-refino h3 {
  color: #1f2937;
}

html.light .card-refino p {
  color: #4b5563;
}

/* Cores específicas para cada card no tema claro */
html.light .text-blue-300 {
  color: #3b82f6 !important;
}

html.light .text-orange-300 {
  color: #f97316 !important;
}

html.light .text-purple-300 {
  color: #8b5cf6 !important;
}

html.light .text-green-300 {
  color: #10b981 !important;
}

html.light .text-gray-300 {
  color: #6b7280 !important;
}

html.light .text-red-300 {
  color: #ef4444 !important;
}

/* Imagens Circular */
.img-circular {
  width: 100px;       /* tamanho desejado */
  height: 300px;
  object-fit: cover;  /* imagem centralizada e proporcional */
  border-radius: 50%;
}

/* Logo */
.logo {
    max-width: 180px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 24px var(--primary));
	align-items: center;
}

.pulse-logo {
    animation: pulse 1.6s infinite;
    box-shadow: 0 0 0 0 rgba(0, 255, 245, 0.7);
    transition: box-shadow 0.3s;
}