header{
  position: fixed;
  width: 100%;
  background-color: transparent;
  top: 0;
  left: 0;
  z-index: 100;
}

.navbar{ 
  width: 90%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  height: 5rem;
}

.logo img{
  height: 4rem;
  cursor: pointer;
}

.navbar .menu{
  display: inline-flex;
  align-items: center;
  gap: 55px;
}

.navbar .menu a{
  color: black;
  transition-duration: 0.4s;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  cursor: pointer;
}

.logo img{
  height: 4rem;
  cursor: pointer;
}

.navbar .menu a:hover{
  color: #E8821A;
  border: 1px;
}

.nav__close{
position: absolute;
top: 1rem;
right: 1.5rem;
}

.nav__toggle,
.nav__close{
  display: flex;
  font-size: 1.25rem;
  color: black;
  cursor: pointer;
}

.material-symbols-outlined{
  margin-left: .5rem;
}


.navbar .log-btn{
  background-color: #4B2D8A;
  border-color: #4B2D8A;

  border-radius: 0.6em;

  padding: 15px;
  cursor: pointer;

  color: #FFF;
  transition-duration: 0.4s;

  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;

  box-shadow: 0 0 40px 40px #4B2D8A inset, 0 0 0 0 #4B2D8A;
  transition: all 150ms ease-in-out;
}

.log-btn:hover{
  box-shadow: 0 0 10px 0 #4B2D8A inset, 0 0 10px 4px #4B2D8A;
}


/*LOGOUT*/
.navbar .logout-btn{
  background-color: #d1422c;
  border-color: #972918;
  border-radius: 0.6em;
  padding: 1rem;
  cursor: pointer;
  color: #FFF;
  transition-duration: 0.4s;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;

  box-shadow: 0 0 40px 40px #972918 inset, 0 0 0 0 #972918;
  transition: all 150ms ease-in-out;
}


.logout-btn:hover{
  box-shadow: 0 0 10px 0 #972918 inset, 0 0 10px 4px #972918;
}


/*Profile*/
.profile-btn{
  background-color: #4B2D8A;
  border-color: #4B2D8A;
  color: #FFF;
  cursor: pointer;
  transition-duration: 0.4s;
  border-radius: 0.6em;
  font-size: 18px;

  display: flex;
  padding: 1rem;
  align-items: center;
}

/* Add blur to header */
.blur-header::after{
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: hsla(0, 0%, 0%, .3);
  backdrop-filter: blur(12px);
  top: 0;
  left: 0;
  z-index: -1;
}


@media screen and (max-width:575px){
  .navbar{
    padding: 0;
  }
  .logo img{
    height: 3rem;
  }
}

@media screen and (min-width: 576px){
  .navbar{
    padding: 0;
  }
  .logo img{
    height: 3rem;
  }
}

/* Navigation for mobile devices */
@media screen and (max-width: 1023px){
  .navbar .menu{
    position: fixed;
    top: -100%;
    left: 0;
    background-color: hsla(0, 0%, 0%, .3);
    width: 100%;
    padding-block: 4rem;
    backdrop-filter: blur(24px);
    transition: top .4s;

    text-align: center;
    display: flex;
    flex-direction: column;
    row-gap: 2.5rem;
  }

  .navbar .menu a{
    font-size: .938rem;
    color: #FFF;
  }

  .navbar .menu button{
    font-size: .938rem;
  }

  .menu.show-menu{
    top: 0;
  }
}

@media screen and (min-width: 1024px) {
  .nav__close,
  .nav__toggle{
    display: none;
  }
}

/* Notifications Styles */
.nav-notifications {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-right: -10px;
}

.notif-btn {
    background: transparent !important;
    border: none !important;
    color: black !important; /* Login navbar uses black text */
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    padding: 10px;
    transition: transform 0.3s ease;
    box-shadow: none !important;
}

.notif-btn .material-symbols-outlined {
    margin-left: 0;
    font-size: 28px;
}

.notif-btn:hover {
    transform: scale(1.1);
    color: #E8821A !important;
}

.notif-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: #d1422c;
    color: white !important;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 50%;
    min-width: 15px;
    text-align: center;
    border: 1px solid white;
    line-height: 1;
}

.notif-dropdown {
    position: absolute !important;
    top: 50px !important; /* Fixed distance from button */
    right: 0 !important;
    width: 320px !important;
    background: #FFF !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
    display: none;
    z-index: 9999 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 1px solid #eee !important;
}

.notif-dropdown.show {
    display: block !important;
}

.notif-header {
    padding: 15px;
    background: #f8f9fa !important;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.notif-header span {
    font-weight: 700;
    color: #333 !important;
    font-size: 14px;
}

.notif-header a#mark-all-read {
    font-size: 12px !important;
    color: #666 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: color 0.2s;
}

.notif-header a#mark-all-read:hover {
    color: #4B2D8A !important;
}

.notif-header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

a.clear-all-notifs {
    font-size: 12px !important;
    color: #d1422c !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    cursor: pointer;
    transition: opacity 0.2s;
}

a.clear-all-notifs:hover {
    opacity: 0.7;
    text-decoration: none !important;
}

.notif-header a#mark-all-read:hover {
    text-decoration: underline !important;
    color: #E8821A !important;
}

.notif-list {
    max-height: 350px;
    overflow-y: auto;
    background: white;
    display: block !important; /* Use block for maximum stability */
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.notif-item-wrapper {
    width: 100% !important;
    display: block !important;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
    margin: 0 !important;
    padding: 0 !important;
}

.notif-item {
    position: relative;
    padding: 15px !important;
    padding-right: 45px !important; /* Space for X */
    display: block !important;
    text-decoration: none !important;
    color: #333 !important;
    background: white;
    text-align: left;
    width: 100% !important;
    box-sizing: border-box !important;
}

.notif-delete {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    color: #bbb;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s ease;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 10;
}

.notif-delete:hover {
    color: #ff4d4d;
    background-color: rgba(255, 77, 77, 0.1);
    transform: translateY(-50%) scale(1.1);
}

.notif-item:hover {
    background: #f4f1ff !important;
}

.notif-item.unread {
    background: #f4f1ff !important;
}

.notif-item .n-msg {
    font-size: 13px !important;
    color: #333 !important;
    line-height: 1.4;
    font-weight: 500;
}

.notif-item .n-date {
    font-size: 11px !important;
    color: #888 !important;
}

.notif-empty {
    padding: 30px;
    text-align: center;
    color: #888 !important;
    font-size: 13px;
    background: white;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
  
