/* Estilos para la barra lateral minimizada */
.left-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  transition: width 0.3s ease;
  background-color: #fff;
  width: 250px;
  height: 100%;
  z-index: 11;
  border-right: 1px solid rgb(229, 234, 239);
}

.left-sidebar.minimized {
  width: 70px; /* Ancho cuando está minimizada */
}

.left-sidebar .hide-menu {
  display: inline-block;
  transition: opacity 0.3s ease;
}

.left-sidebar.minimized .hide-menu {
  opacity: 0; /* Oculta el texto */
  pointer-events: none;
  /* display: none; */
}

.left-sidebar.minimized .box-downloadApp {
  opacity: 0; /* Oculta el texto */
  display: none;
}

.left-sidebar.minimized .brand-logo .logo-img img {
  width: 42px !important;
}

.left-sidebar .sidebar-nav .material-symbols-rounded {
  margin-right: 10px; /* Añadir espacio a los iconos */
  transition: margin-right 0.3s ease;
}

.left-sidebar.minimized .sidebar-nav .material-symbols-rounded {
  margin-right: 0; /* Elimina el margen derecho de los iconos */
}

/* Estilos del botón de alternancia */
.toggle-btn {
  position: fixed;
  top: 10px;
  left: 260px; /* Ajusta la posición para estar justo al lado del aside */
  background: #fff;
  border: none;
  padding: 5px 5px;
  cursor: pointer;
  z-index: 1000;
  /* box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2); */
  transition: left 0.3s ease;
}

.left-sidebar.minimized + .toggle-btn {
  left: 80px; /* Ajustar la posición del botón cuando minimizamos */
}

/* Estilos cuando el sidebar está expandido */
.page-wrapper {
  display: flex;
  transition: margin-left 0.3s ease;
  margin-left: 250px;
}

.body-wrapper {
  flex-grow: 1;
  transition: margin-left 0.3s ease;
}

.app-header {
  width: calc(100% - 250px); /* El header se adaptará al ancho disponible */
  margin-left: 250px;
  transition: margin-left 0.3s ease, width 0.3s ease;
}

/* Estilos cuando el sidebar está minimizado */
.page-wrapper.minimized {
  margin-left: 70px; /* Ancho del sidebar minimizado */
}

.left-sidebar.minimized {
  width: 75px;
}

/* .body-wrapper.minimized {
  padding-left: 20px;
} */

.app-header.minimized {
  width: calc(100% - 70px);
  margin-left: 70px;
}

#sidebarToggle {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 9999;
}