/* Importa a fonte 'Inter' para uma aparência mais moderna */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');

:root {
  --bs-body-font-family: 'Inter', sans-serif;
  --bs-body-bg: #212529;
}

html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* --- Estilos da Tela de Login --- */
.login-wrapper {
  display: flex;
  flex-grow: 1;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: radial-gradient(circle, rgba(33,37,41,1) 0%, rgba(21,23,25,1) 100%);
}

.login-card {
  border: 0;
  border-radius: 1rem;
  background-color: var(--bs-dark);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.login-logo {
  width: 60px;
  height: auto;
  margin-bottom: 1rem;
  opacity: 0.9;
}

/* --- Estilos da Aplicação Principal --- */
#appSection {
  flex-grow: 1;
}

.navbar {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card {
  border: 1px solid var(--bs-border-color);
}

/* --- Animação do Scanner --- */
.qr-region {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  background-color: #111;
  border: 1px solid var(--bs-border-color);
  min-height: 300px; /* Garante altura mínima */
}

.qr-region::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.8), transparent);
  animation: scan 2.5s infinite linear;
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.7);
  opacity: 0;
  transition: opacity 0.3s;
}

.qr-region.scanning::after {
  opacity: 1;
}

@keyframes scan {
  0% { transform: translateY(-10px); }
  50% { transform: translateY(calc(100% + 5px)); }
  100% { transform: translateY(-10px); }
}

/* --- Botões com ícones --- */
.btn .bi {
  vertical-align: middle;
  margin-top: -3px;
}
