
.header {
  background: rgba(255, 251, 242, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(29, 29, 58, 0.08);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.navbar {
  padding: 1rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: #1573D4;
  text-decoration: none;
}

.nav-logo i {
  margin-right: 0.5rem;
  font-size: 1.8rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: #1D1D3A;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: #1573D4;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #1573D4;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-auth {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-login,
.btn-register {
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 500;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-login {
  color: #1573D4;
  border: 2px solid #1573D4;
}

.btn-login:hover {
  background: #1573D4;
  color: #FFFBF2;
  transform: translateY(-2px);
}

.btn-register {
  background: #B6D23C;
  color: #1D1D3A;
  border: 2px solid #B6D23C;
}

.btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(182, 210, 60, 0.3);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #1D1D3A;
  margin: 3px 0;
  transition: 0.3s;
}

.nav-auth-logged-out,
.nav-auth-logged-in {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-greeting {
    font-weight: 500;
    color: #1D1D3A;
}

.btn-logout {
    background: none;
    border: 2px solid #ff6b6b;
    color: #ff6b6b;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-logout:hover {
    background: #ff6b6b;
    color: #FFFBF2;
    transform: scale(1.1);
}

.admin-nav-item {
  display: none;
}

.admin-nav-item.show {
  display: block;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: #FFFBF2;
    width: 100%;
    text-align: center;
    transition: left 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-auth-logged-out,
  .nav-auth-logged-in {
    display: none;
  }
}
