/* theme.css */

body.dark-mode {
  background-color: #121212 !important;
  color: #ffffff !important;
}

.card.dark-mode {
  background-color: #1e1e1e;
  color: #ffffff;
}

#result.dark-mode {
  color: #ffffff;
  background-color: #1e1e1e;
  border: 1px solid #444;
  border-radius: 0.5rem;
  padding: 1rem;
  display: inline-block;
  animation: fadeIn 0.5s ease-in-out;
}

#result {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  padding: 1rem;
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 500;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 576px) {
  #result {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
  }
  .d-flex.align-items-center.gap-2 {
    flex-direction: column;
    align-items: stretch !important;
    gap: 0.5rem;
  }
  .d-flex.align-items-center.gap-2 > * {
    width: 100%;
  }
}

.form-label.dark-mode,
.form-select.dark-mode,
.form-control.dark-mode {
  background-color: #1e1e1e;
  color: #ffffff;
  border-color: #444;
}

.btn-toggle {
  position: relative;
  z-index: 10;
  background-color: #333;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background-color 0.3s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-toggle:hover {
  background-color: #555;
}

/* Corrige o alinhamento do select com o botão */
.form-select.align-middle {
  height: 38px;
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}
/* Garantir texto branco no modo escuro */
.dark-mode,
.dark-mode p,
.dark-mode .text-muted {
  color: #ffffff !important;
}
