:root {
  --nav-bg: #333;
  --nav-text: #fff;
  --nav-active: #ff9800;
  --nav-hover: #ff9800;
  --nav-bar: #00bcd4;
  --badge-bg: red;
  --dropdown-bg: #fff;
  --dropdown-text: #333;
  --dropdown-hover: #f0f0f0;
}

[data-theme="dark"] {
  --nav-bg: #222;
  --nav-text: #ddd;
  --nav-active: #ffcc80;
  --nav-hover: #ffcc80;
  --nav-bar: #4dd0e1;
  --badge-bg: #ff6b6b;
  --dropdown-bg: #333;
  --dropdown-text: #ddd;
  --dropdown-hover: #444;
}
#nav-container{
  box-sizing: border-box;
}
 
 .fslb-logo-image{
    height:40px;
    width:240px;
 }
 .navbar  { 
    z-index:999;
    display: flex; 
    justify-content: space-evenly;
    align-items: center; 
    background-color: var(--nav-bg);
    color: var(--nav-text);
    padding: 10px 20px; 
    position: fixed; 
    top:0;
    width:100%;
    box-shadow: 2px 0 8px rgba(0,0,0,0.3);
} 
.icon{
    font-size: 1.6rem;
}
.menu-logo { 
    font-size: 1.5rem; 
    font-weight: bold; 
} 
.menu-items ul { 
    display: flex; 
    justify-content: center;
    align-items: flex-end; /*align to bottom of navbar*/
    list-style: none; 
    padding-left: 0; 
    text-align: center;
} 
.menu-items ul li { margin: 0 20px; 
    position: relative; 
} 

/* Show both icon + text by default */
.link-text {
    display: inline;
  }
.nav-link { 
    text-align: center;
    color: var(--nav-text); 
    text-decoration: none; 
    font-size: 1rem; 
    padding: 8px 0; 
    display: flex;
  align-items: center;
  gap: 8px; /* space between icon and text */
    position: relative; 
    transition: color 0.3s ease; 
} 
/* Hover Effect with Animated Bar */ 
.nav-link:hover { 
    color: var(--nav-hover);
} 
.nav-link:hover::after { width: 100%; /* Full width on hover */ } 
.nav-link.active { color: var(--nav-active); } 
.nav-link.active::after { 
    content: ''; 
    position: absolute; 
    bottom: 0; left: 0; width: 100%; 
    height: 3px; 
    /* Blue color for active tab */ 
    border-radius: 2px; 
    background-color: var(--nav-bar);
} 
/* Animated Bar Styling */ 
.nav-link::after { 
    content: ''; 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 0%; 
    /* Start with no bar */ 
    height: 3px; 
    /* background-color: #00bcd4;  */
    /* Blue color */ 
    border-radius: 2px; 
    transition: width 0.3s ease-in-out; 
    /* Animate width */ 
    background-color: var(--nav-bar);
} 
/* Badge Styles */ 
.has-badge .badge { 
    position: absolute; 
    top: -5px; 
    right: -20px; 
    background-color: var(--badge-bg);
  color: var(--nav-text);
    font-size: 0.8rem; 
    border-radius: 50%; 
    height:20px;
    width:20px;

} 
/*optional icons, displayed only in desktop mode*/
.nav-icon { 
    display:none;
 } 
/* Hamburger Menu */ 
.hamburger-menu { 
    display: none; 
    cursor: pointer; 
    flex-direction: column; 
    justify-content: space-around; 
    align-items: center; 
    height: 24px; width: 30px; 
} 
/* Animate Hamburger */
.bar {
    width: 30px;
    height: 4px;
    background-color: var(--nav-text);
    border-radius: 5px;
    transition: all 0.3s ease;
  }
  /* Transform when menu is open */
.navbar.open .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .navbar.open .bar:nth-child(2) {
    opacity: 0;
  }
  .navbar.open .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .notification-avatar {
    border-radius: 50%;
    position:relative;
    height:50px;
    width:50px;
  }

  .dropdown {
    position: relative;
  }
  
  .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0; transform: translateX(-50%);
    background-color: var(--dropdown-bg);
    color: var(--dropdown-text);
    min-width: 300px;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border-radius: 4px;
    z-index: 1000;
  }
  
  .dropdown:hover .dropdown-content {
    display: block;
  }
  
  .notification-item {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 10px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    cursor: pointer;
    transition: background 0.3s ease;
    position:relative;
  }
  
  .notification-item:hover {
    background-color: var(--dropdown-hover);
  }
  
  .notification-item.unread {
    background-color: rgba(var(--badge-bg), 0.1);
  }
  
  .notification-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
  }
  
  .notification-message {
    flex: 1;
    font-size: 0.9rem;
    text-align:left;
  }
  
  .notification-timestamp {
    font-size: 0.8rem;
    opacity: 0.7;
    text-align: right;
    width: 100%;
  }
  .notification-dismiss {
    position: absolute;
    bottom: 8px;
    left: 10px;
    font-size: 0.8rem;
    text-align:left;
    opacity:0.7;
    color: var(--dropdown-text);
    cursor: pointer;
    transition: color 0.3s ease;
  }
  
  .notification-dismiss:hover {
    color: var(--nav-hover);
  }
  
  .dismiss-all {
    text-align: center;
    padding: 10px;
    border-top: 1px solid rgba(0,0,0,0.1);
  }
  
  #dismiss-all-btn {
    /* background-color: var(--nav-bar); */
    /* color: var(--nav-text); */
    width:100%;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
  }
  
  #dismiss-all-btn:hover {
    background-color: var(--nav-hover);
  }





/* Mobile Navigation Styles */ 
@media (max-width: 768px) { 
    .menu-items { 
        display: none;
        z-index:1;
     } 
    .hamburger-menu { 
      display: flex;
      margin-left:auto; /*push right*/
     } 
    .navbar.open .menu-items { 
        display: flex; 
        flex-direction: column;
        align-items: flex-start;
        position: fixed; 
        top: 60px; 
        left: 0; 
        width: 65px; 
        background-color: var(--nav-bg);
        height: 100vh; 
        padding: 10px 10px 20px; 
        animation: slideIn 0.3s ease-out; 
        /* box-shadow: 
            8px 0 8px rgba(0,0,0,0.3),   /* right side */
            /* -8px 0 8px rgba(0,0,0,0.3);   left side */

    } 
    .navbar.open .menu-items ul { 
        z-index:100;
        flex-direction: column; 
        /* align-items: center;  */
        width:100%;
    }
    .menu-items ul li { 
        margin: 20px 0;
        width:100%;
     } 
     .navbar.open .nav-link {
        display:flex;
        align-items: center;
        width: 100%;
        justify-content: flex-start;
        font-size: 1.5rem;
        position: relative;
      }

      /* Hide text, show icons */
  .navbar.open .link-text {
    display: none;
  }
  .navbar.open .nav-icon {
    display: flex;
    margin-right: 10px;
    font-size: 2.0rem;
    

  }
  /* Keep badges aligned next to icons */
  .navbar.open .has-badge .badge {
    position: absolute;
    top: -5px;
    right: 30px; /* position relative to icon */
  }
  .nav-link{
    display:flex;
    align-content: center;
    left:0px;
  }
.nav-link.active::after { 
    content: ''; 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; height: 3px; 
    background-color: var(--nav-bar); 
    border-radius: 2px; 
}
.navbar.open .icon {
    display: inline-flex;       /* center the FA icon */
    align-items: center;
    justify-content: center;
    width: 42px;                /* fixed width for consistency */
    height: 40px;
    margin-right: 0;
    text-align: center;
    overflow: hidden;           /* prevent spillover */
    flex-shrink: 0;             /* don’t let it squish */
    font-size:2.0rem;
    position:relative;
    right:-2px;
  }
.menu-items{
    left:5px;
}
} /*end media*/

/* Sliding Animation */ 
@keyframes slideIn {
    from { left: -100%; } to { left: 0; } 
} 