/* css/nav.css */

/* Top Navigation Bar */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 50px;
  background: #2c3e50;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 1000;
}
.logo {
  font-size: 1.2rem;
  font-weight: bold;
}

/* Hamburger & Sidebar */
.hamburger {
  font-size: 1.5rem;
  cursor: pointer;
}
.sidebar {
  position: fixed;
  top: 50px; left: -250px;
  width: 250px; bottom: 0;
  background: #34495e;
  color: white;
  padding: 20px;
  transition: left 0.3s;
  z-index: 999;
}
.sidebar.open {
  left: 0;
}
.sidebar a {
  display: block;
  padding: 10px 0;
  color: white;
  text-decoration: none;
}
.sidebar a:hover {
  background: rgba(255,255,255,0.1);
}
/* Shift main content over when sidebar is open */
.main.shift {
  margin-left: 250px;
}

/* Dark‑mode slider in the header */
.toggle-switch {
  position: relative;
  width: 50px;
  height: 24px;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-switch .slider {
  position: absolute;
  inset: 0;
  background-color: #ccc;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.toggle-switch .slider::before {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  top: 2px; left: 2px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
}
.toggle-switch input:checked + .slider {
  background-color: #2ecc71;
}
.toggle-switch input:checked + .slider::before {
  transform: translateX(26px);
}

.breadcrumb {
  margin: 1rem 0;
  font-size: 0.9rem;
}
.breadcrumb a {
  color: #2ecc71;
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}

.logo img {
  vertical-align: middle;
  height: 32px;
}