/*=============================================
Interfaz Dashboard
=============================================*/

#wrapper {
  display: flex;
  flex-direction: row;
}

.backgroundImage{
    background-color: #f0f0f5 !important;
}

#sidebar-wrapper {
  min-height: 100vh;
  width: 250px;
  z-index:1;
  transition: all 0.3s;
}

#sidebar-wrapper .sidebar-heading {
  font-size: 1.5rem;
  text-align: center;
  min-width:225px;
}

#sidebar-wrapper .list-group-item {
  padding: 15px 20px;
}

#sidebar-wrapper .list-group-item i {
  margin-right: 10px;
}

#sidebar-wrapper .menu-text {
  display: inline;
}

#sidebar-wrapper.collapsed {
  width: 72px;

}

#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 i{
 margin: 0;
}

#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;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
  }

  #sidebar-wrapper.show {
    left: 0;
    visibility: visible;
    pointer-events: auto;
  }

  #sidebar-wrapper[aria-hidden="true"],
  #sidebar-wrapper[aria-hidden="true"] * {
    visibility: hidden !important;
    pointer-events: none !important;
    transition: none !important;
  }

  #menu-toggle {
    display: block;
    margin-left: 20px;
  }
  
}

.backDashboard{
    background-color: #f0f0f5 !important;
}
.borderDashboard{
    border: 1px solid #dce1e5 !important;
}

/* ─── Sidebar Toggle Button ─── */
.sidebar-toggle-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px !important;
    background: #f0f2f5 !important;
    border: 1px solid #e2e6ea !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: all 0.25s ease;
    padding: 0 !important;
}

.sidebar-toggle-btn:hover {
    background: #e4e8ed !important;
    border-color: #ced3d9 !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.sidebar-toggle-btn:active {
    transform: scale(0.93);
}

.sidebar-toggle-icon {
    font-size: 1rem;
    color: #4b5563;
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}

.sidebar-toggle-btn:hover .sidebar-toggle-icon {
    color: #1e293b;
}

/* Dark mode adjustments */
body.dark-mode .sidebar-toggle-btn {
    background: #23272e !important;
    border-color: #3a3f47 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

body.dark-mode .sidebar-toggle-btn:hover {
    background: #2d3139 !important;
    border-color: #4a5060 !important;
}

body.dark-mode .sidebar-toggle-icon {
    color: #94a3b8;
}

body.dark-mode .sidebar-toggle-btn:hover .sidebar-toggle-icon {
    color: #e2e8f0;
}


