html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

/* Estilos de la aplicación: login y contenedor principal */
.login-page { min-height: calc(100vh - 60px); padding: 2rem; }
.login-card { width: 100%; max-width: 420px; background: #ffffff; border-radius: 12px; padding: 1.5rem; }

@media (max-width: 576px) {
  .login-card { margin: 0 1rem; }
}

.app-shell { min-height: calc(100vh - 60px); }
.sidebar { width: 220px; background: #0d6efd; color: white; min-height: calc(100vh - 60px); flex: 0 0 220px; }
.sidebar .nav-link { color: rgba(255,255,255,0.9); }
.sidebar .nav-link.active { font-weight: 600; color: #fff; }

/* Estilos para offcanvas sidebar (mostrar solo al pulsar hamburguesa) */
.offcanvas.offcanvas-start {
  width: 220px;
  background: #0d6efd;
  color: white;
}
.offcanvas.offcanvas-start .offcanvas-header {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.offcanvas.offcanvas-start .offcanvas-title { color: white; }
.offcanvas.offcanvas-start .nav-link { color: rgba(255,255,255,0.95); }
.offcanvas.offcanvas-start .nav-link.active { color: #fff; font-weight:600; }
.offcanvas.offcanvas-start .btn-close { filter: invert(1) sepia(0) saturate(0) hue-rotate(180deg); }
.topbar { background: #f8f9fa; border-bottom: 1px solid #e9ecef; }
.content { background: #f1f5fb; }

/* En pantallas pequeñas el sidebar usa la clase collapse de Bootstrap; se muestra con el botón hamburguesa */
@media (max-width: 991.98px) {
  .app-shell { padding: 0; }
  .sidebar { position: relative; }
}

/* Ajustes para que el contenido ocupe todo el ancho cuando sidebar está oculto */
@media (max-width: 991.98px) {
  .content { padding-left: 1rem; padding-right: 1rem; }
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}