body {
  background-color: #f8f9fa;
}

.card {
  border: none;
  border-radius: 10px;
}

.card .card-body {
  padding: 2rem;
}

.navbar {
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
}
/* Botões de ação: button_to gera <form> em bloco — inline-block evita empilhar */
.button_to { display: inline-block; }

/* ===== Contraste: corrige cinza claro ilegível ===== */
/* Dropdown select2 (campo Bicicleta) — opções escuras sobre fundo branco */
.select2-container--default .select2-results__option {
  color: #212529 !important;
  background-color: #ffffff !important;
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
  color: #ffffff !important;
  background-color: #0d6efd !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #212529 !important;
}
.select2-dropdown {
  background-color: #ffffff !important;
  border: 1px solid #ced4da !important;
}

/* Títulos de seção e labels do formulário — escuros e legíveis */
.card-title, h1, h2, h3, h4, h5, .form-label, .fw-semibold {
  color: #212529 !important;
}
.text-muted {
  color: #6c757d !important;
}

/* ADAPTA-FIX-CONTRASTE — tema escuro + select2 legível */
.select2-container--default .select2-results__option {
  color: #212529 !important;
  background-color: #ffffff !important;
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
  color: #ffffff !important;
  background-color: #0d6efd !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #212529 !important;
}
.select2-container--default .select2-selection--single {
  background-color: #ffffff !important;
  border-color: #ced4da !important;
}
.select2-dropdown {
  background-color: #ffffff !important;
}
.card-title {
  color: #212529 !important;
}

/* ADAPTA-THEME-UNIFY — modo claro consistente */
[data-bs-theme="light"] body,
body {
  background-color: #f8f9fa !important;
  color: #212529 !important;
}

/* ADAPTA-TABLE-ALIGN — alinhamento vertical consistente + largura da coluna Aluno */
.table td, .table th {
  vertical-align: middle !important;
}
.table td:first-child,
.table th:first-child {
  max-width: 260px;
  white-space: normal;
  word-wrap: break-word;
}

/* ADAPTA-DARK-UNIFY — tema escuro consistente + select2 legível */
[data-bs-theme="dark"] body {
  background-color: #212529 !important;
  color: #dee2e6 !important;
}
[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .card-header {
  background-color: #2b3035 !important;
  color: #dee2e6 !important;
  border-color: #495057 !important;
}
[data-bs-theme="dark"] .card-title,
[data-bs-theme="dark"] .form-label,
[data-bs-theme="dark"] .fw-semibold {
  color: #f8f9fa !important;
}
[data-bs-theme="dark"] .table {
  --bs-table-bg: #2b3035 !important;
  color: #dee2e6 !important;
}
[data-bs-theme="dark"] .table thead th {
  background-color: #343a40 !important;
  color: #f8f9fa !important;
}
/* select2 no tema escuro: fundo escuro + texto claro (legível) */
[data-bs-theme="dark"] .select2-container .select2-results__option,
[data-bs-theme="dark"] .select2-container--default .select2-results__option {
  color: #dee2e6 !important;
  background-color: #2b3035 !important;
}
[data-bs-theme="dark"] .select2-container .select2-results__option--highlighted.select2-results__option--selectable,
[data-bs-theme="dark"] .select2-container--default .select2-results__option--highlighted[aria-selected] {
  color: #fff !important;
  background-color: #0d6efd !important;
}
[data-bs-theme="dark"] .select2-container .select2-selection__rendered,
[data-bs-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #dee2e6 !important;
}
[data-bs-theme="dark"] .select2-dropdown,
[data-bs-theme="dark"] .select2-container .select2-dropdown {
  background-color: #2b3035 !important;
  border-color: #495057 !important;
}
