@import url('https://fonts.googleapis.com/css2?family=Roboto+Flex&display=swap');

body {
    font-family: 'Roboto Flex', sans-serif;
    overflow-x: hidden;
}

.navbar-menu {
    background-color: #8c52ff;
}

.login {
    background-color: #8c52ff;
}


#newPassword {
    display: none;
}

#card_footer_login {
    display: none;
}

/* ======== SIDENAV GENERAL ======== */
/* Menú lateral base */
.sidenav {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  background-color: #111;
  overflow-y: auto;
  transition: all 0.3s ease;
  padding-top: 60px;
  display: none;
}

/* Estado abierto */
.sidenav.open {
  width: 250px;
  display: block;
}

/* Botón cerrar */
.sidenav .closebtn {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

/* Fondo oscuro al abrir */
#overlay {
  position: fixed;
  display: none;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 9998;
  transition: opacity 0.3s ease;
}

#overlay.active {
  display: block;
  opacity: 1;
}

/* Animación slide-in */
.sidenav.open {
  animation: slideIn 0.3s forwards;
}

@keyframes slideIn {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

/* Submenús */
.br-menu-link {
  display: block;
  padding: 10px 20px;
  color: #fff;
  cursor: pointer;
}

.br-menu-link:hover {
  background-color: rgba(255,255,255,0.1);
}

/* Submenú contenido (colapsado) */
.submenu {
  display: none;
  padding-left: 20px;
}

.submenu.show {
  display: block;
}
