/*=============================================
Interfaz Dashboard
=============================================*/

#wrapper {
  display: flex;
  flex-direction: row;
}

#sidebar-wrapper {
  min-height: 100vh;
  width: 250px;
  z-index: 1;
  padding: 14px 12px;
  background: linear-gradient(180deg, #5b6df6 0%, #4b5be8 45%, #4452d6 100%);
  box-shadow: 16px 0 40px rgba(49, 65, 180, 0.18);
  transition: all 0.3s ease;
}

#sidebar-wrapper .sidebar-heading {
  font-size: 1.45rem;
  text-align: left;
  min-width: 225px;
  padding: 14px 16px;
  margin-bottom: 12px !important;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
}

#sidebar-wrapper .sidebar-heading .menu-text {
  color: #ffffff !important;
}

#sidebar-wrapper .borderDashboard {
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
}

#sidebar-wrapper .list-group {
  gap: 6px;
  background: transparent;
}

#sidebar-wrapper .list-group-item {
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 16px;
  overflow: visible;
}

#sidebar-wrapper .list-group-item > a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 12px 52px 12px 14px;
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.88) !important;
  text-decoration: none;
  transition: all 0.25s ease;
}

#sidebar-wrapper .list-group-item i {
  width: 18px;
  margin-right: 12px;
  text-align: center;
  font-size: 1rem;
  color: #ffffff !important;
}

#sidebar-wrapper .menu-text {
  display: inline;
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
}

#sidebar-wrapper .btnPages {
  border: 0 !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 8px 18px rgba(25, 36, 100, 0.16);
}

#sidebar-wrapper .btnPages i {
  color: #4452d6 !important;
}

#sidebar-wrapper .myPage.menu-text {
  color: #ffffff !important;
}

#sidebar-wrapper > .myPage {
  width: calc(100% - 24px);
  margin-left: 0 !important;
  padding: 12px 14px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  text-align: left;
  transition: all 0.25s ease;
}

#sidebar-wrapper > .myPage:hover {
  background: rgba(255, 255, 255, 0.16) !important;
}

/* Hover blanco */
#sidebar-wrapper .list-group-item > a:hover {
  background: #ffffff !important;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(20, 30, 90, 0.10);
  transform: none;
}

#sidebar-wrapper .list-group-item > a:hover .menu-text,
#sidebar-wrapper .list-group-item > a:hover i {
  color: #4b5be8 !important;
}

/* Activo fijo real */
#sidebar-wrapper .sidebar-nav-item.is-active > a {
  background: #ffffff !important;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(20, 30, 90, 0.10);
}

#sidebar-wrapper .sidebar-nav-item.is-active > a .menu-text,
#sidebar-wrapper .sidebar-nav-item.is-active > a i {
  color: #4b5be8 !important;
}

#sidebar-wrapper.collapsed {
  width: 80px;
}

#sidebar-wrapper.collapsed .sidebar-heading {
  min-width: 50px;
  text-align: center;
  padding: 14px 8px;
}

#sidebar-wrapper.collapsed .menu-text {
  display: none;
}

#sidebar-wrapper.collapsed .list-group-item {
  margin-right: 0;
  text-align: center;
}

#sidebar-wrapper.collapsed .list-group-item > a {
  justify-content: center;
  padding: 12px 10px;
  border-radius: 18px;
}

#sidebar-wrapper.collapsed .list-group-item i {
  margin: 0;
  width: auto;
}

#sidebar-wrapper.collapsed .btnPages {
  right: 50% !important;
  top: auto !important;
  bottom: -12px;
  transform: translateX(50%);
}

#sidebar-wrapper.collapsed > .myPage {
  text-align: center;
  padding: 12px 8px !important;
}

#page-content-wrapper {
  flex-grow: 1;
  width: 50%;
}

/* Float the sidebar for mobile */
@media (max-width: 768px) {
  #sidebar-wrapper {
    position: fixed;
    z-index: 1000;
    height: 100%;
    left: -250px;
    transition: all 0.3s ease;
  }

  #sidebar-wrapper.show {
    left: 0;
  }

  #menu-toggle {
    display: block;
    margin-left: 20px;
  }
}

.backDashboard {
  background: linear-gradient(180deg, #eef1fb 0%, #f6f7fc 100%) !important;
}

.borderDashboard {
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
}
