/* backend/public/css/style.css */

/* Reset básico e estilos gerais */
html, body {
    height: 100%;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Fonte moderna e legível */
    background-color: #f8f9fa; /* Cor de fundo clara */
    color: #343a40; /* Cor do texto principal */
}

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

.container {
    flex: 1 0 auto; /* O container ocupa todo o espaço disponível */
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Cabeçalho */
h1, h2, h3, h4, h5, h6 {
    color: #007bff; /* Cor de destaque para títulos */
    font-weight: 600; /* Títulos mais encorpados */
    margin-bottom: 1rem;
}

/* Botões */
.btn {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease-in-out; /* Transição suave */
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}
.btn-secondary:hover {
    background-color: #545b62;
    border-color: #545b62;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-success:hover {
    background-color: #1e7e34;
    border-color: #1e7e34;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #c82333;
}

.btn-info {
  background-color: #17a2b8;
  border-color: #17a2b8;
}
.btn-info:hover {
  background-color: #117a8b;
  border-color: #117a8b;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Formulários */
.form-control {
    border-radius: 0.25rem;
    border: 1px solid #ced4da;
    padding: 0.5rem 0.75rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Tabelas */
.table {
    background-color: white;
    border-radius: 0.25rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15); /* Sombra sutil */
}

.table thead th {
    background-color: #e9ecef;
    border-bottom: 2px solid #dee2e6;
    color: #495057;
    font-weight: 600;
}

.table td, .table th {
  padding: 0.75rem;
  vertical-align: top;
  border-top: 1px solid #dee2e6;
}

/* Alertas */
.alert {
    border-radius: 0.25rem;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
}

/* Cards (usados no login) */
.card {
    border-radius: 0.5rem; /* Bordas mais arredondadas */
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transition: transform 0.1s ease-in-out;
}

.card:hover {
    transform: translateY(-5px); /* Efeito de elevação no hover */
}

.card-header {
    background-color: #007bff;
    color: white;
    font-weight: 600;
    border-bottom: none; /* Remove a borda inferior */
    border-radius: 0.5rem 0.5rem 0 0; /* Arredonda apenas os cantos superiores */
}

/* QR Code */
#qrcode-container {
    background-color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

#qrcode {
  display: flex; /* Centraliza o QR Code */
  justify-content: center;
  align-items: center;
}


/* Layout */
.container {
    max-width: 960px; /* Largura máxima para o conteúdo */
}

/* Responsividade (ajustes para telas menores) */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .btn {
        padding: 0.375rem 0.75rem; /* Botões um pouco menores */
        font-size: 0.875rem;
    }

    .form-control {
        padding: 0.375rem 0.5rem; /* Inputs um pouco menores */
    }
}

/* Rodapé */
footer {
  flex-shrink: 0; /* Garante que o rodapé não encolha */
  text-align: center;
  padding: 1rem 0;
  background-color: #e9ecef;
  color: #6c757d;
  border-top: 1px solid #dee2e6;
  margin-top: 2rem;
}

.text-muted {
  color: #6c757d !important;
}

/* Estilos específicos para a página de login */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;  /* Ocupa a altura total da tela */
}

.login-card {
  width: 100%;
  max-width: 400px; /* Largura máxima do card de login */
}