/* Sidebar Menu Styles Extracted from agent_home.css */

.dashboard-sidebar {
  width: 2.4rem;
  flex-shrink: 0;
  padding: 0; 
  position: sticky;
  top: 0.88rem;
  display: flex;
  flex-direction: column;
}

/* If header is sticky, sidebar needs to account for it. 
   Header is sticky in home.css (.top-nav-bar { position: sticky; top: 0; })
   So sidebar sticky top should be header height + margin.
*/

.sidebar-menu {
  background: #fff;
  border-radius: 0.16rem;
  padding: 0.16rem;
  box-shadow: 0 1px 4px rgba(0,21,41,0.08);
  border: 1px solid #EBEEF5;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: calc(100vh - 1.12rem);
  height: auto;
  flex: 1;
  justify-content: space-between;
  box-sizing: border-box;
  overflow-y: hidden;
  position: relative;
  z-index: 10;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 0.16rem;
  padding: 0.08rem 0.16rem;
  border-radius: 0.08rem;
  cursor: pointer;
  color: #585858;
  transition: all 0.2s;
  font-size: 0.14rem;
  text-decoration: none;
  margin-bottom: 0;
  flex-shrink: 1;
  position: relative;
  z-index: 1;
  opacity: 1 !important;
}

.menu-item.mb-5 {
  margin-bottom: 5px;
}

.menu-item i,
.menu-item svg {
  font-size: 0.18rem;
  flex-shrink: 0;
}

.menu-item:hover {
  background: #f0efff !important;
  color: #9967f0 !important;
  opacity: 1 !important;
}

.menu-item.active {
  background: #f0efff !important;
  color: #9967f0 !important;
  font-weight: 600;
  border-bottom: none;
  padding: 0.08rem 0.16rem;
  opacity: 1 !important;
}

/* Menu Section Header */
.menu-section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.12rem;
    color: #909399;
    font-weight: 600;
    margin: 0 0.16rem;
}

.menu-section-header::before,
.menu-section-header::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: #EBEEF5;
}

.menu-section-header::before {
    margin-right: 0.08rem;
}

.menu-section-header::after {
    margin-left: 0.08rem;
}

/* Userinfo Page Sidebar Override */
.userinfo-page .dashboard-sidebar {
    height: 900px;
}
