.navbar {
  background: transparent;
  height: 88px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  top: 0;
  position: fixed;
  z-index: 999;
  width: 100%;
  /* border: 1px solid red; */
}

.navbar.active {
  background: #222932;
}
.logo {
  /* margin-right: 100px; */
  height: 40px;
}
.navbar-for-white-background {
  background: #222932;
}

.navbar-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 85px;
  max-width: 100vw;
  /* border: 2px solid green; */
}

.navbar-logo {
  color: #fff;
  justify-self: start;
  margin-left: 20px;
  cursor: pointer;
  text-decoration: none;
  font-size: 2rem;
  display: flex;
  align-items: center;
}

.nav-menu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 10px;
  list-style: none;
  /* text-align: center; */
  width: 77vw;
  justify-content: space-between;
  /* margin-right: 1rem; */
  /* border: 2px solid blue; */
}

.nav-item {
  height: 80px;
  display: flex;
  align-content: center;
  margin: 0 20px;
}

.nav-links {
  color: #fff;
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 0rem 1rem;
  height: 100%;
}

.nav-links:hover {
  color: #ff7700;
}

.fa-bars {
  color: #fff;
}

.nav-links-mobile {
  display: none;
}

.menu-icon {
  display: none;
}
.nav-mobile-item {
  display: none;
}

.nav-button {
  background-color: #ff7700;
  color: #fff;
  padding: 1rem 1.3rem;
}
.nav-button:hover {
  background-color: #e97006;
  color: #fff;
}
.nav-button-login {
  background-color: #8b8f93;
  color: #fff;
  padding: 1rem 1.3rem;
}

.nav-button-login:hover {
  background-color: rgba(230, 228, 228, 0.85);
  color: #fff;
}

.loggedin-nav-container {
  /* border: 1px solid red; */
  background-color: var(--color-gray);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px;
  /* Feathered header edge (client request): a wide diffuse shadow plus the
     ::after gradient below dissolve the hard boundary into the page */
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}
/* Soft gradient tail under the header — fades the header's bottom edge into
   the page instead of ending on a hard line. Absolutely positioned so it
   overlays the first strip of content without taking up layout space. */
.loggedin-nav-container::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 26px;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1),
    rgba(0, 0, 0, 0)
  );
  pointer-events: none;
  z-index: 2;
}
.loggedin-nav-userinfo {
  /* border: 1px solid green; */
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  /* border: 2px solid red; */
}
.loggedin-nav-name {
  color: #fff;
  font-size: 1.8rem;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  max-width: 120px;
  overflow: visible;
  min-width: 120px;
}
.ant-popover-inner {
  background-color: var(--color-gray) !important;
}
.ant-popover-placement-bottom > .ant-popover-content > .ant-popover-arrow,
.ant-popover-placement-bottomLeft > .ant-popover-content > .ant-popover-arrow,
.ant-popover-placement-bottomRight > .ant-popover-content > .ant-popover-arrow {
  border-top-color: var(--color-gray) !important;
  border-left-color: var(--color-gray) !important;
}

/* Notification Dropdown Styles */
.notification-dropdown {
  width: 360px;
  max-width: 90vw;
  background-color: var(--color-gray);
  border-radius: 8px;
  overflow: hidden;
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.notification-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.notification-badge {
  background-color: #ff7700;
  color: #fff;
  font-size: 1.2rem;
  padding: 2px 8px;
  border-radius: 12px;
  min-width: 20px;
  text-align: center;
}

.mark-all-read-btn {
  color: #ff7700 !important;
  font-size: 1.2rem;
  padding: 4px 8px;
}

.mark-all-read-btn:hover {
  color: #e97006 !important;
}

.notification-list {
  max-height: 400px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 119, 0, 0.5) transparent;
}

.notification-list::-webkit-scrollbar {
  width: 6px;
}

.notification-list::-webkit-scrollbar-track {
  background: transparent;
}

.notification-list::-webkit-scrollbar-thumb {
  background-color: rgba(255, 119, 0, 0.5);
  border-radius: 3px;
}

.notification-list::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 119, 0, 0.7);
}

.notification-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 12px 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.notification-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.notification-item:last-child {
  border-bottom: none;
}

.notification-unread {
  background-color: rgba(255, 119, 0, 0.08);
}

.notification-read {
  opacity: 0.7;
}

.notification-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.notification-item-title {
  font-size: 1.4rem;
  font-weight: 500;
  color: #fff;
  line-height: 1.4;
}

.notification-item-body {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notification-time {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}

.notification-dot {
  width: 8px;
  height: 8px;
  background-color: #ff7700;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
  margin-left: 12px;
}

.notification-loading,
.notification-empty {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 32px 16px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.4rem;
}

.notification-load-more {
  display: flex;
  justify-content: center;
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.notification-load-more .ant-btn-link {
  color: #ff7700 !important;
  font-size: 1.3rem;
}

.notification-load-more .ant-btn-link:hover {
  color: #e97006 !important;
}

/* Legacy styles - kept for backward compatibility */
.notification-container {
  display: "flex";
  flex-direction: column;
  width: 300px;
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
}
.notification-row {
  cursor: pointer;
}
.notification-row-read {
  /* border: 2px solid red; */
}

.notification-row-unread {
  position: relative;
}

.notification-row-unread::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #ff7700;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}

.divider {
  border: 1px solid #fff;
  margin: 0 10px;
}
@media screen and (max-width: 700px) {
  .loggedin-nav-userinfo {
    width: fit-content;
  }
}

@media screen and (max-width: 1024px) {
  .nav-menu {
    width: 80vw;
    display: flex;
  }
}

@media screen and (max-width: 960px) {
  .navbar {
    position: fixed;
    background-color: transparent;
  }
  .nav-item {
    height: 150px;
    margin: 10px 40px;

    /* border: 2px solid yellow; */
  }
  .nav-menu {
    display: flex;
    /* flex-direction: column; */
    width: 100%;
    height: 100vh;
    position: absolute;
    top: 80px;
    left: -100%;
    opacity: 1;
    transition: all 0.5s ease;
    /* border: 1px solid blue; */
  }

  .nav-menu.active {
    background: #222932;
    left: 0;
    opacity: 1;
    transition: all 0.5s ease;
    z-index: 1;
    display: flex;
    opacity: 0.9;
    /* border: 1px solid red; */
    display: flex;
    flex-direction: column;
    justify-content: start;
  }

  .nav-links {
    text-align: center;
    width: 100%;
    /* border: 1px solid red; */
  }

  .nav-links:hover {
    background-color: #fff;
    color: #242424;
    border-radius: 0;
  }

  /* Scoped to the public navbar only — the logged-in navbar logo must stay
     in flow, otherwise it pins to the viewport top on mobile scroll */
  .navbar .navbar-logo {
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(0%, 50%);
  }

  .menu-icon {
    display: block;
    position: absolute;
    top: 30px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
  }

  .fa-times {
    color: #fff;
    font-size: 2rem;
  }

  .nav-links-mobile {
    display: block;
    text-align: center;
    margin: 2rem auto;
    border-radius: 4px;
    width: 80%;
    text-decoration: none;
    font-size: 1.5rem;
    background-color: transparent;
    color: #fff;
    padding: 14px 20px;
    border: 1px solid #fff;
    transition: all 0.3s ease-out;
  }

  .nav-links-mobile:hover {
    background: #fff;
    color: #242424;
    transition: 250ms;
  }
  .nav-item {
    display: flex;
    flex-direction: column;
  }
  .navbar {
    justify-content: flex-end;
    padding-right: 100px;
  }
}

@media screen and (max-width: 500px) {
  .small-screenlogo {
    height: 30px;
  }
  .loggedin-nav-userinfo {
    width: fit-content;
  }
  .logo {
    margin-top: 15px;
    height: 25px;
  }
  .navbar {
    padding-right: 50px;
  }
}

/* ============================================
   RESPONSIVE NAVBAR USER INFO
   ============================================ */

/* Username row with ellipsis and arrow */
.loggedin-nav-name .username-row {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px;
  max-width: 100px;
  overflow: hidden;
  white-space: nowrap;
}

.loggedin-nav-name .username-text {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  max-width: 80px;
}

.loggedin-nav-name .dropdown-arrow {
  flex-shrink: 0 !important;
  font-size: 10px !important;
}

.loggedin-nav-name .points-row {
  color: #677182;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.loggedin-nav-name .points-row img {
  width: 16px;
  height: 16px;
}

/* Keep avatar size consistent */
.loggedin-nav-userinfo .ant-avatar {
  min-width: 36px !important;
  min-height: 36px !important;
  width: 36px !important;
  height: 36px !important;
  flex-shrink: 0;
}

/* Responsive: Tablet */
@media screen and (max-width: 768px) {
  .loggedin-nav-userinfo {
    gap: 8px;
  }

  .loggedin-nav-name {
    max-width: 90px;
  }

  .loggedin-nav-name .username-text {
    /* max-width: 50px; */
    font-size: 1.5rem;
  }

  .loggedin-nav-name .points-row {
    font-size: 1.4rem;
  }

  .loggedin-nav-userinfo .ant-avatar {
    min-width: 32px !important;
    min-height: 32px !important;
    width: 32px !important;
    height: 32px !important;
    margin-right: 10px !important;
  }

  .loggedin-nav-userinfo .ant-badge {
    margin-right: 10px !important;
  }

  .loggedin-nav-userinfo .anticon-bell {
    font-size: 2rem !important;
    margin-right: 10px !important;
  }
}

/* Responsive: Mobile */
@media screen and (max-width: 480px) {
  .loggedin-nav-userinfo {
    gap: 5px;
  }

  .loggedin-nav-name {
    max-width: 70px;
  }

  .loggedin-nav-name .username-text {
    /* max-width: 35px; */
    font-size: 1.4rem;
  }

  .loggedin-nav-name .dropdown-arrow {
    font-size: 9px !important;
  }

  .loggedin-nav-name .points-row {
    font-size: 1.2rem;
  }

  .loggedin-nav-name .points-row img {
    width: 14px;
    height: 14px;
  }

  .loggedin-nav-userinfo .ant-avatar {
    min-width: 28px !important;
    min-height: 28px !important;
    width: 28px !important;
    height: 28px !important;
    margin-right: 5px !important;
  }

  .loggedin-nav-userinfo .ant-badge {
    margin-right: 5px !important;
  }

  .loggedin-nav-userinfo .anticon-bell {
    font-size: 1.8rem !important;
    padding: 3px !important;
    margin-right: 5px !important;
  }
}

/* Responsive: Extra Small Mobile */
@media screen and (max-width: 360px) {
  .loggedin-nav-name {
    max-width: 55px;
  }

  .loggedin-nav-name .username-text {
    /* max-width: 25px; */
    font-size: 1.3rem;
  }

  .loggedin-nav-name .points-row {
    display: none;
  }

  .loggedin-nav-userinfo .ant-avatar {
    min-width: 26px !important;
    min-height: 26px !important;
    width: 26px !important;
    height: 26px !important;
  }

  .loggedin-nav-userinfo .anticon-bell {
    font-size: 1.6rem !important;
  }
}
