

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--white);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.35s var(--ease);
  border-right: 1px solid var(--border);
}

/* Top accent bar */
.sidebar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--primary) 0%,
    var(--primary-light) 50%,
    var(--accent) 100%
  );
  z-index: 2;
}

/* Scrollable inner container */
.sidebar-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 14px 24px;
  scrollbar-width: none;
}
.sidebar-inner::-webkit-scrollbar {
  display: none;
}

/* Logo section */
.sidebar-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 8px 16px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.sidebar-logo img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(10, 42, 66, 0.18));
}
.sidebar-logo h2 {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--primary);
  margin: 0;
  text-transform: uppercase;
}

/* Region pill */
.sidebar-region {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 4px 14px;
}
.sidebar-region i {
  color: var(--accent);
  font-size: 0.7rem;
}

/* Navigation list */
.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--muted);
  font-weight: 500;
  padding: 9px 12px;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  position: relative;
  cursor: pointer;
}

/* Nav icon bubble */
.sidebar-nav a .nav-icon {
  width: var(--icon-sm);
  height: var(--icon-sm);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 42, 66, 0.04);
  flex-shrink: 0;
  transition: var(--transition-fast);
}
.sidebar-nav a .nav-icon i {
  font-size: 0.9rem;
  color: var(--muted);
  transition: var(--transition-fast);
}

/* Hover state */
.sidebar-nav a:hover {
  color: var(--primary);
  background: rgba(10, 42, 66, 0.03);
}
.sidebar-nav a:hover .nav-icon {
  background: rgba(230, 126, 34, 0.1);
}
.sidebar-nav a:hover .nav-icon i {
  color: var(--accent);
}

/* Active state */
.sidebar-nav a.active {
  color: var(--primary);
  font-weight: 700;
  background: linear-gradient(
    to right,
    rgba(230, 126, 34, 0.1),
    rgba(10, 42, 66, 0.03)
  );
}
.sidebar-nav a.active .nav-icon {
  background: rgba(230, 126, 34, 0.14);
}
.sidebar-nav a.active .nav-icon i {
  color: var(--accent);
}

/* Active left-edge indicator */
.sidebar-nav a.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}

/* "New" / upcoming nav item */
.sidebar-nav a.nav-upcoming {
  color: var(--primary);
  font-weight: 700;
  background: linear-gradient(
    135deg,
    rgba(18, 100, 173, 0.1),
    rgba(10, 42, 66, 0.03)
  );
  border: 1px solid var(--label-border);
}
.sidebar-nav a.nav-upcoming .nav-icon {
  background: rgba(18, 100, 173, 0.1);
}
.sidebar-nav a.nav-upcoming .nav-icon i {
  color: var(--label-color);
}

.sidebar-nav a.nav-upcoming::after {
  content: "New";
  margin-left: auto;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--label-color);
  background: rgba(18, 100, 173, 0.12);
  border: 1px solid rgba(18, 100, 173, 0.16);
  padding: 0.18rem 0.35rem;
  border-radius: 999px;
  line-height: 1;
}
.sidebar-nav a.nav-upcoming:hover {
  background: linear-gradient(
    135deg,
    rgba(18, 100, 173, 0.14),
    rgba(10, 42, 66, 0.05)
  );
  border-color: rgba(18, 100, 173, 0.22);
}
.sidebar-nav a.nav-upcoming.active {
  background: linear-gradient(
    135deg,
    rgba(18, 100, 173, 0.16),
    rgba(10, 42, 66, 0.06)
  );
}

/* Divider */
.sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 10px 2px;
  border: none;
}

/* Footer section */
.sidebar-footer {
  margin-top: auto;
  padding-top: 14px;
  position: relative;
}
.sidebar-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 2px;
  right: 2px;
  height: 1px;
  background: var(--border);
}

/* Social icons row */
.sidebar-social {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 10px;
}
.sidebar-social a {
  width: var(--icon-sm);
  height: var(--icon-sm);
  border-radius: 8px;
  background: rgba(10, 42, 66, 0.04);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.sidebar-social a:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(230, 126, 34, 0.28);
}

/* Mobile hamburger toggle */
.menu-toggle {
  display: none;
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1060;
  background: var(--primary);
  color: var(--white);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  padding: 0;
}
.menu-toggle:hover {
  background: var(--accent);
}
.menu-toggle #menuIcon {
  font-size: 2rem;
  line-height: 1;
}

/* Overlay backdrop */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
  z-index: 1040;
  backdrop-filter: blur(3px);
}
