.sidebar {
  position: fixed;
  top: 0;
  left: -280px;
  width: 240px;
  height: 100%;
  background-color: var(--color-bg2);
  border-right: 2px solid var(--color-primary);
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.15);
  padding: 1.5rem;
  transition: left 0.3s ease;
  z-index: 1000;
  font-family: "Segoe UI", sans-serif;
  display: flex;
  flex-direction: column;
}

.sidebar.show {
  left: 0;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.sidebar h3 {
  margin: 0;
  color: var(--color-primary);
  font-size: 1.3rem;
  font-weight: bold;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--color-primary);
  cursor: pointer;
  padding: 5px;
  transition: transform 0.2s ease;
}

.close-btn:hover {
  transform: rotate(90deg);
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
}

.sidebar ul li {
  margin-bottom: 1rem;
}

.sidebar ul li a {
  text-decoration: none;
  color: var(--color-text);
  background-color: var(--color-bg);
  display: block;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.sidebar ul li a:hover {
  background-color: var(--color-secondary);
  color: #fff;
}

/* Optional: sticky footer inside sidebar */
.sidebar-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #ddd;
  font-size: 0.9rem;
  color: var(--color-nav-text);
  text-align: center;
}
