/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: sans-serif;
}

/* Top Navigation */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: var(--primary-color);
  color: white;
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-links {
  display: flex;
  gap: 1rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
}

/* Hamburger button (hidden by default) */
.hamburger {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* Main container layout */
.container {
  display: grid;
  grid-template-columns: 30% 70%;
  flex: 1;
}

/* Sidebar */
.sidebar {
  background-color: var(--secondary-color);
  padding: 1rem;
  color: white;
}

/* Main Content */
.main-content {
  padding: 1rem;
}

/* Footer */
.footer {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  padding: 1rem;
}

/* Responsive layout */
@media (max-width: 768px) {
  .container {
    grid-template-columns: 1fr;
  }

  .nav-links {
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    background-color: var(--primary-color);
    width: 100%;
    display: none;
  }

  .nav-links.show {
    display: flex;
  }

  .hamburger {
    display: block;
  }
}

.sidebar-links {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.sidebar-links li {
  margin-bottom: 0.5rem;
}

.sidebar-links a {
  color: white;
  text-decoration: none;
}

.sidebar-links a:hover {
  text-decoration: underline;
}

#snippetSearch {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
}

#searchResults a {
  display: block;
  padding: 0.3rem 0;
  color: var(--text-color);
  text-decoration: none;
}

#searchResults a:hover {
  text-decoration: underline;
}

