/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}
body {
  background: #f8f8f8;
  color: #333;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 10%;
  background: white;
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  border-bottom: 1px solid #6A0DAD; /* Purple border */
}
.logo img {
  height: 50px;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}
.nav-links li {
  display: inline;
}
.nav-links a {
  color: #333;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
}
.btn-login {
  background: #6A0DAD;
  padding: 8px 15px;
  border-radius: 5px;
  color: white;
  text-decoration: none;
  font-weight: bold;
}

/* Hamburger Menu */
.menu-icon {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: #6A0DAD;
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .menu-icon {
    display: block;
    position: relative;
    z-index: 1100;
  }

  .nav-links {
    position: absolute;
    top: 75px;
    right: 0;
    background: white;
    width: 100%;
    flex-direction: column;
    text-align: center;
    padding: 0;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    height: 0;
    overflow: hidden;
    transition: height 0.5s ease-in-out;
  }

  .nav-links.active {
    height: auto;
    padding: 10px 0;
  }

  .nav-links li {
    padding: 10px;
    border-bottom: 1px solid #ddd;
  }
}

/* User Email Display */
#userEmail {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  font-size: 16px;
  font-weight: 500;
  vertical-align: middle;
  padding: 0 10px;
}