@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap");

* {
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ========= HEADER LAYOUT ========= */
header.fixed-top {
  background: #1a1a1a;
  border-bottom: 2px solid #ff6ec7;
  padding: 12px 30px;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
}

/* ========= BRAND (LEFT SIDE) ========= */
#brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

#brand a {
  font-weight: 700;
  font-size: 1.1rem;
  color: #ff6ec7;
  text-decoration: none;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

#brand span.version {
  font-size: 1rem;
  margin-left: 4px;
  color: #ff6ec7;
}

#brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin-right: 5px;
  object-fit: cover;
}

/* ========= NAVIGATION (CENTER) ========= */
nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

nav ul.nav {
  list-style: none;
  display: flex;
  gap: 20px;
  align-items: center;
}

nav ul.nav li a {
  color: #fff;
  padding: 9px 12px;
  text-decoration: none;
  border-radius: 6px;
  transition: 0.25s ease;
  font-weight: 500;
}

nav ul.nav li a:hover {
  background-color: rgba(255, 110, 199, 0.1);
  color: #ff6ec7;
  transform: scale(1.05);
}

.nav-notification {
  position: relative;
}

.notification-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.35rem;
  text-decoration: none;
  padding: 4px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.notification-link:hover {
  color: #ff6ec7;
  transform: scale(1.1);
}

.notification-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.notification-bell.has-alert {
  color: #ff6ec7;
  animation: notificationPulse 1.6s ease-in-out infinite;
}

.bell-icon {
  font-size: 1.2rem;
}

.notification-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #ff3b6f;
  color: #fff;
  border-radius: 999px;
  padding: 0.05rem 0.4rem;
  font-size: 0.65rem;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

/* ========= RIGHT SIDE (AVATAR / DROPDOWN) ========= */
#right-nav {
  display: flex;
  align-items: center;
}

.user-pic,
.user-pic-sub {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.user-pic:hover {
  transform: scale(1.08);
  box-shadow: 0 0 6px rgba(255, 110, 199, 0.5);
}

/* ========= DROPDOWN ========= */
.dropdown-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sub-menu-wrap {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(100% + 10px);
  background: #1a1a1a;
  border: 1px solid #ff6ec7;
  border-radius: 10px;
  padding: 16px 12px;
  min-width: 220px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 999;
}

.sub-menu-wrap.open-menu {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.sub-menu .user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sub-menu .user-info h4 {
  color: #ff6ec7;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sub-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 6px;
  transition: 0.25s ease;
}

.sub-menu-link:hover {
  background-color: rgba(255, 110, 199, 0.1);
  box-shadow: 0 0 5px rgba(255, 110, 199, 0.25);
  color: #ff6ec7;
  transform: scale(1.03);
}

.sub-menu-link img {
  height: 18px;
  margin-right: 8px;
  filter: brightness(1.3);
}

/* ========= HAMBURGER ICON (Mobile) ========= */
#hamburger-icon {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  position: relative;
  z-index: 1001;
}

.bar1,
.bar2,
.bar3 {
  width: 25px;
  height: 3px;
  background-color: #ff6ec7;
  border-radius: 2px;
}

/* ========= MOBILE MENU ========= */
ul.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 10px;
  background: #1a1a1a;
  border: 1px solid #ff6ec7;
  border-radius: 10px;
  padding: 20px;
  margin-top: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  animation: fadeInScale 0.3s ease;
}

ul.mobile-menu.show {
  display: flex;
}

ul.mobile-menu li a {
  color: #fff;
  padding: 8px;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s;
}

ul.mobile-menu li a:hover {
  color: #ff6ec7;
  background-color: rgba(255, 110, 199, 0.1);
  transform: scale(1.03);
}

.user-log {
  color: white;
  margin-bottom: 10px;
  font-size: 14px;
}

/* ========= ANIMATION ========= */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes notificationPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}

/* ========= RESPONSIVE ========= */
@media (max-width: 1080px) {
  nav ul.nav {
    display: none;
  }

  #hamburger-icon {
    display: flex;
  }

  nav {
    justify-content: flex-end;
  }
}
