/* === sidebar === */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--bg-sidebar);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgb(255 255 255 / 8%);
}

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

.sidebar-logo-svg {
  width: 100%;
  max-width: 180px;
  height: auto;
}

.nav-links {
  list-style: none;
  padding: 1rem 0.75rem;
  flex: 1;
}

.nav-links li { margin-bottom: 0.25rem; }

.nav-links a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-sidebar);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.15s ease;
  text-decoration: none;
}

.nav-links a:hover {
  background: rgb(255 255 255 / 8%);
  color: #FFF;
  text-decoration: none;
}

.nav-links a.active {
  background: var(--primary);
  color: var(--secondary);
  box-shadow: 0 2px 8px rgb(177 250 51 / 30%);
  font-weight: 600;
}

.nav-links a svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.nav-links a.active svg,
.nav-links a:hover svg {
  opacity: 1;
}

.sidebar-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 8%);
}

.sidebar-footer-text {
  font-size: 0.75rem;
  color: rgb(255 255 255 / 30%);
}

.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-profile-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  border: 2px solid rgb(255 255 255 / 15%);
}

.sidebar-profile-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--secondary);
  font-size: 0.75rem;
  font-weight: 700;
}

.sidebar-profile-info {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.sidebar-profile-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #FFF;
  line-height: 1.3;
}

.sidebar-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: rgb(255 255 255 / 4%);
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 6px;
  color: var(--text-sidebar);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sidebar-logout:hover {
  color: #FFF;
  background: rgb(255 255 255 / 12%);
  border-color: rgb(255 255 255 / 40%);
}
