/* Sidebar base */
.sidebar {
  position: fixed;
  top: 0;
  right: 0; /* Slide in from right */
  height: 100%;
  width: 260px;
  background-color: #26a69a;
  padding-top: 70px; /* space for header */
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
  color: white;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  text-align: left;
  overflow-y: auto;
}

/* Sidebar open */
.sidebar.visible {
  transform: translateX(0);
}

/* Sidebar closed */
.sidebar.hidden {
  transform: translateX(100%);
}

/* Sidebar header */
.sidebar-header {
  font-size: 20px;
  font-weight: bold;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  background-color: #239a8a;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-close {
  font-size: 20px;
  cursor: pointer;
}

/* Link list */
.sidebar-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-links li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-links a {
  display: block;
  padding: 14px 20px;
  text-decoration: none;
  color: white;
  font-size: 16px;
  transition: background 0.2s ease;
}

.sidebar-links a:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

/* Optional body setting to prevent horizontal scroll */
body {
  overflow-x: hidden;
}

.sidebar.visible {
  transform: translateX(0);
}
/* Add this to support .show */
.sidebar.show {
  transform: translateX(0);
}

/* Force sidebar links to stay white */
.sidebar .sidebar-links a {
  color: #fff !important;
}
