/*
 * AUDITOR IA - A65E155
 * Identidad visual de navegación lateral.
 * No modifica estados, permisos ni funcionamiento.
 */

.sidebar {
  background:
    radial-gradient(
      ellipse at 10% 5%,
      rgba(25, 174, 170, .22),
      transparent 48%
    ),
    linear-gradient(
      180deg,
      #123b56 0%,
      #10334d 48%,
      #09283d 100%
    ) !important;

  color: #e8f5fa;
  border-right: 1px solid rgba(30, 184, 174, .22);
  box-shadow: 5px 0 22px rgba(8, 42, 63, .08);
}

/* Textos e iconos de navegación */
.sidebar .nav-link,
.sidebar a.nav-link {
  color: #e1eff7;
  border-radius: 9px;
  transition:
    background-color .18s ease,
    color .18s ease;
}

.sidebar .nav-link:hover,
.sidebar a.nav-link:hover {
  background: rgba(33, 193, 181, .16);
  color: #ffffff;
}

/* Encabezados de los grupos desplegables */
.sidebar .nav-group-label {
  color: #a6d9e4;
  font-weight: 700;
  letter-spacing: .045em;
  border-radius: 9px;
}

.sidebar .nav-group-label:hover {
  background: rgba(33, 193, 181, .12);
  color: #ffffff;
}

.sidebar .nav-group-label::after {
  color: #7ddbd5;
  opacity: .85;
}

/* Grupos abiertos */
.sidebar .nav-group.auditor-nav-open {
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(136, 215, 218, .09);
}

.sidebar .nav-group.auditor-nav-open > .nav-link,
.sidebar .nav-group.auditor-nav-open > a.nav-link {
  color: #d9f0f5;
}

.sidebar .nav-group.auditor-nav-has-active > .nav-group-label {
  color: #67e4d7;
}

/* Elemento de navegación activo */
.sidebar .nav-link.active,
.sidebar a.nav-link.active,
.sidebar .nav-link[aria-current="page"] {
  background: rgba(20, 184, 166, .20);
  color: #ffffff;
  font-weight: 700;
  box-shadow: inset 3px 0 0 #43d7c8;
}

/* Etiquetas institucionales */
.sidebar .brand,
.sidebar .brand-title,
.sidebar .sidebar-brand {
  color: #ffffff;
}

.sidebar .brand-subtitle,
.sidebar .sidebar-subtitle {
  color: #a9d5df;
}

/* Enfoque accesible con teclado */
.sidebar a:focus-visible,
.sidebar .nav-group-label:focus-visible {
  outline: 2px solid #5eead4;
  outline-offset: 2px;
}

/* Mantener intactas las reglas de visibilidad
   y despliegue de auditor-sidebar.css */
