/* Reset some default browser styles */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
      height: 100%;
      background: #131313;
    }
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}


/* Navbar styles */
.navbar {
  background-color: black; 
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-weight: 700;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  user-select: none;
}

/* Navigation styles */
.nav-links ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  gap: 1rem;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background-color: #2471a3; 
  outline-offset: 3px;
  outline: 2px solid #2471a3; 
  color: white;
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 28px;
  height: 24px;
  justify-content: space-between;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: white;
  border-radius: 2px;
}

#admin-login:hover {
  background: rgba(255, 255, 255, 0.5) ;
  outline-offset: 3px;
  outline: 2px solid white; 
}

/* Responsive behavior */
@media (max-width: 768px) {
  .nav-links ul {
    flex-direction: column;
    position: absolute;
    top: 56px;
    right: 0;
    background-color: #1d4ed8;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
  }

  .nav-links ul.open {
    max-height: 400px; /* enough to show all menu items */
  }

  .nav-links li {
    text-align: center;
    margin: 0.5rem 0;
  }

  .menu-toggle {
    display: flex;
  }
}

