/* Fixed left sidebar navigation */

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 260px;
  background: #fffdf8;
  border-right: 1px solid #e8e4da;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 0.9rem;
  z-index: 100;
}

.sidebar .logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 0 0.6rem 1.25rem;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  color: #3d3a33;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.15s ease;
}

.nav-item:hover { background: #f3efe4; }

.nav-item.active {
  background: #ede7d8;
  color: #1c1a15;
  font-weight: 600;
}

.sidebar .sidebar-footer {
  margin-top: auto;
  padding: 0.75rem 0.6rem 0;
  border-top: 1px solid #e8e4da;
  font-size: 0.75rem;
  color: #8a8577;
}

.nav-toggle {
  display: none;
}

@media (max-width: 767px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }
  .sidebar.open { transform: translateX(0); }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sidebar { transition: none; }
}
