@use '../shared/hr-common.scss';

.hr-layout-container {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.sidenav-container {
  flex: 1;
  height: 100%;
}

.sidenav {
  background-color: #ffffff;
  border-right: 1px solid #e0e0e0;
  transition: width 0.3s ease;
  
  &.expanded {
    width: 250px;
  }
  
  &.collapsed {
    width: 70px;
  }
}

.sidenav-header {
  display: flex;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #e0e0e0;
  background-color: #1a3a6e; /* 深蓝色 */
  color: white;
  height: 64px;
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hr-logo {
  height: 32px;
  margin-right: 12px;
}

.hr-icon {
  height: 32px;
}

.sidenav-title {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-list {
  padding-top: 8px;
}

.mat-list-item {
  border-radius: 0 24px 24px 0;
  margin: 6px 10px 6px 0; /* 略微放大留白 */
  position: relative;
  
  &:hover {
    background-color: rgba(22, 93, 255, 0.06);
  }
}

.active-link {
  background-color: rgba(22, 93, 255, 0.12);
  color: #165DFF;
  position: relative;
  
  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #165DFF, #7c3aed);
  }
  
  .mat-icon {
    color: #165DFF;
  }
}

.mat-icon {
  color: #616161;
}

.sidenav-footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 16px 0;
  border-top: 1px solid #e0e0e0;
}

.sidenav-content {
  background-color: #f5f5f5;
  padding: 20px;
  overflow-y: auto;
}