/* Reusable Sidebar Styles */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 10002;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.sidebar-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 300px;
  background: #141414;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 10003;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
  overflow-y: auto;
}

.sidebar.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.sidebar .sidebar-header {
  margin-bottom: 18px;
}

.sidebar .sidebar-close {
  background: rgba(255, 255, 255, 0.07);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  outline: none;
}

.sidebar .sidebar-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.sidebar .sidebar-close:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.2);
}

.sidebar a {
  color: #eaf7ff;
  text-decoration: none;
  font-size: 16px;
  padding: 10px 0 10px 10px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.sidebar a:hover {
  background: #222222;
  color: #ffffff;
}

.hidden {
  display: none !important;
}

@media (max-width: 768px) {
  .sidebar {
    width: 85vw;
    padding: 18px 8px 8px 8px;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
  }
}
