.sidebar {
    position: sticky;
    top: 0;
    z-index: 60;
    display: flex;
    height: 100vh;
    flex-direction: column;
    border-right: 1px solid var(--border);
    background: #101827;
    color: white;
  }
  
  .sidebar-brand {
    display: flex;
    min-height: var(--topbar-height);
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  
  .sidebar-logo {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 14px;
  }
  
  .sidebar-brand strong {
    display: block;
    font-size: 16px;
  }
  
  .sidebar-brand span {
    display: block;
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.52);
    font-size: 11px;
    font-weight: 700;
  }
  
  .sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 14px 12px 18px;
  }
  
  .nav-group + .nav-group {
    margin-top: 18px;
  }
  
  .nav-group-title {
    padding: 0 10px 7px;
    color: rgba(255, 255, 255, 0.38);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
  }
  
  .nav-item {
    display: flex;
    width: 100%;
    min-height: 42px;
    align-items: center;
    gap: 11px;
    padding: 9px 11px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    text-align: left;
    transition:
      background var(--transition),
      color var(--transition),
      transform var(--transition);
  }
  
  .nav-item:hover {
    background: rgba(255, 255, 255, 0.07);
    color: white;
  }
  
  .nav-item.active {
    background: linear-gradient(
      135deg,
      rgba(37, 99, 235, 0.94),
      rgba(124, 58, 237, 0.84)
    );
    color: white;
    box-shadow:
      0 10px 24px rgba(37, 99, 235, 0.24);
  }
  
  .nav-item:active {
    transform: scale(0.985);
  }
  
  .nav-icon {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    color: inherit;
    font-size: 14px;
    font-weight: 900;
  }
  
  .sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  
  .user-avatar {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.11);
    color: white;
    font-weight: 900;
  }
  
  .user-info {
    min-width: 0;
    flex: 1;
  }
  
  .user-info strong,
  .user-info span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  .user-info strong {
    font-size: 13px;
  }
  
  .user-info span {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.46);
    font-size: 11px;
  }