.sidebar {
  width: var(--sidebar-width);
  background-color: #ffffff;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  z-index: 100;
  transition: width 0.3s ease;
  overflow: hidden;
}

.sidebar.collapsed {
  width: 70px;
}

.sidebar-header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  border-bottom: 1px solid transparent;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow: hidden;
  white-space: nowrap;
}

.logo-area.centered {
  justify-content: center;
  width: 100%;
  padding: 0;
}

.logo-box {
  width: 36px;
  height: 36px;
  background-color: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  min-width: 36px;
}

.logo-text {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--primary);
}

.toggle-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: white;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  position: absolute;
  right: -12px;
  top: 75px;
  z-index: 10;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

.toggle-btn:hover {
  background-color: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

.nav-menu {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 0.75rem;
}

.nav-item {
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  color: #64748b;
  border-radius: var(--radius-md);
  transition: all 0.2s;
  text-decoration: none;
  gap: 1rem;
  white-space: nowrap;
}

.icon-wrapper {
  min-width: 24px;
  display: flex;
  justify-content: center;
}

.nav-label {
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav-item:hover {
  background-color: #f1f5f9;
  color: var(--primary);
}

.router-link-exact-active {
  background-color: var(--primary-light);
  color: var(--primary);
  position: relative;
  font-weight: 600;
}

.router-link-exact-active::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 70%;
  width: 3px;
  background-color: var(--primary);
  border-radius: 4px 0 0 4px;
}

.sidebar.collapsed .router-link-exact-active::after {
  right: 0;
}

.sidebar.collapsed .nav-item {
  justify-content: center;
  padding: 0;
}

.sidebar.collapsed .nav-label {
  display: none;
}

.brand-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.brand-logo.small {
  height: 24px;
}