/* ═══════════════════════════════════════════════════════════════════════════
 * UI COMPONENT: LIVE PRESENCE BUTTON
 * ═══════════════════════════════════════════════════════════════════════════ */
.users-online {
    text-align: center;
    margin-bottom: 15px; /* Gives some breathing room before the menu list starts */
}

.live-stats-btn {
    background: transparent;
    border: none;
    color: #cbd5e1; /* Soft slate text to match your dark background */
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 20px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.live-stats-btn:hover {
    background: rgba(255, 255, 255, 0.08); /* Subtle highlight on hover */
    color: #ffffff;
}

/* --- THE PULSE ANIMATION --- */
.live-pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #22c55e; /* Vibrant 'Live' Green */
    margin-right: 8px;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: afors-pulse 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes afors-pulse {
    to {
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }
}




/* Hide l1 and l2 submenus */
.l1, .l2 {
  display: none;
  max-height: 0; /* Initial max-height for smooth transition */
  overflow: hidden; /* Hide content that overflows */
  transition: max-height 0.6s ease-in-out; /* Add a transition for smooth opening/closing */
}

.l1.open, .l2.open{
  display: block;

}
/* L1 submenu indentation */
.l1.submenu > * { /* Targets direct children of L1 submenus */
  padding-left: 20px; /* indentation of l1 menu */
  background-color: rgba(0, 0, 0, 0.3);
  filter: none;
}

/* L2 submenu indentation */
.l2.submenu > * { /* Targets direct children of L2 submenus */
  /* margin left -20 and padding left 40px indents from the submenu but background colour full width */
  background-color: rgba(0, 0, 0, 0.6);
  padding-left: 40px;
  margin-left: -20px;
  width: calc(100% + 20px);
}


.rotate, .non-rotate {transition: transform 0.6s ease; } /* common transition for both classes */
.rotate {
  transform: rotate(45deg);
  color: #FE3535;
} /* rotate to 45 deg  it will take the transition time above */
.non-rotate {transform: rotate(0deg);  } /* and rotate to 0 degrees, ie normal */


nav { all: unset;
  height: 100vh;
  display: flex;
  flex-direction: column;
} /* the defaults do wierd things to the dom */

.nav-links {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
  border-top: solid 1px rgba(255, 255, 255, 0.1);
}

.nav-links::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.nav-links li {
  list-style: none;
  padding-left: 0; /* Remove default left padding */
  margin-left: 0; /* Remove default left margin */
}
.nav-links::-webkit-scrollbar {
  width: 10px; /* Set the width of the scrollbar */
}

.nav-links::-webkit-scrollbar-track {
  background: #f1f1f1; /* Color of the scrollbar track */
}

.nav-links::-webkit-scrollbar-thumb {
  background: #888; /* Color of the scrollbar thumb */
  border-radius: 5px; /* Add rounded corners to the thumb */
}

.nav-links::-webkit-scrollbar-thumb:hover {
  background: #2e6da4; /* #555; /* Change color on hover */
}

.nav-links .bb {
  border-bottom: 1px solid rgba(0, 0, 0, 0.9);
}


#sectionSubmenu{
  height: 100%;
}


.logo {
  display: flex;
  justify-content: center;
  margin: 15px auto 0;
  border-radius:50%;
  height: 100px;
  align-items: baseline;
}

.user-info {
  text-align: left; /* Left-align the user info */
}

.user-info a, .user-info button {
  display: block;
  padding: 5px 10px;
  text-decoration: none;
  color: inherit;
}

.icon-link { /* Style for the icon links */
  display: flex;
  align-items: center; /* Vertically align icon and text (if any) */
  justify-content: center;
  background: none; /* Remove default button background */
  cursor: pointer;
  text-decoration: none; /* Remove underline from links */
  color: inherit; /* Inherit color from parent */
  margin: 0;
  padding: 0;
  width: 100%;
  height: 72px;
  border-bottom: solid 1px rgba(0, 0, 0, 0.9);
  border-top: solid 1px rgba(255,255,255,0.1);
  border-right: solid 1px rgba(255,255,255,0.1);
  border-left: solid 1px rgba(0, 0, 0, 0.9);
  font-size: 20px;
  border-radius: 2px;
}

.icon-link:hover { /* Add hover effect */
  opacity: 0.7;
}

.users-online {
  font-size: .75rem;
  opacity: .7;
  display: flex;
  justify-content: center;
}

.message-count {
  /* Style for the message count */
  position: absolute;
  font-size: 9px;
  color: white;
  background-color: red;
  padding: 2px 5px;
  border-radius: 50%;
  transform: translate(9px, -9px);
}

.menu-button{
  width: 100%;
  display: flex;
  align-items: center; /* Vertically align the content */
  color: #868ea0;
  font-size: 1rem;
  padding: 0;
  height: 50px;
}
a.menu-button:visited {
  color: #868ea0;
}

.menu-button span {
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  text-transform: capitalize;
}


.menu-button .icon-left {
  /* ... styles for the first icon ... */
  width: 44px;
  text-align: center;

}

.menu-button .icon-right {
  /* ... styles for the last icon ... */
  width: 44px;
  text-align: center;
}
.menu-button .icon-right.fa-circle {
  /* ... styles for the last icon only the fa-circle icons ... */
  font-size: 0.4rem;
  color: inherit;
}

.menu-button:hover {
  background-color: rgba(0, 0, 0, 0.9);
  filter: none;
}

.l1.submenu > .menu-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.l2.submenu > .menu-button:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.fa-avmoz-eurofox,
.fa-avmoz-mfors {
  margin-left: 20px;
  --fa-primary-color: var(--afors-red);
  --fa-secondary-color: var(--afors-blue);
  --fa-secondary-opacity: .6;
}

.menu-meta-data {
  display: flex;
  justify-content: space-between;
  border-top: 2px groove #000000;
  position: absolute;
  bottom: 0;
  left: -1px;
  background: #141820;
  width: 100%;
  padding: 0.5rem;
  text-align: right;
}

.fa-avmoz-colours {
  --fa-primary-color: var(--afors-red);
  --fa-secondary-color: var(--afors-blue);
  --fa-secondary-opacity: 1;
}

/* Primary Icon Colours */
.fa-green  { color: #5ca357; }
.fa-blue   { color: #55a5ff; }
.fa-red    { color: #e35d5d; }
.fa-orange { color: #e09c10; }
.fa-purple { color: #9b59b6; }
.fa-cyan   { color: #00ced1; }
.fa-pink   { color: #ff69b4; }
.fa-amber  { color: #ffbf00; }
.fa-indigo { color: #6666ff; }
.fa-slate  { color: #c5cbd3; }

/* Submenu Variants (Lighter) */
.fa-green-submenu  { color: #b7dfb4; }
.fa-blue-submenu   { color: #55a5ff; }
.fa-red-submenu    { color: #f1aeae; }
.fa-orange-submenu { color: #e09c10; }
.fa-purple-submenu { color: #d7bde2; }
.fa-cyan-submenu   { color: #afeeee; }
.fa-pink-submenu   { color: #ffc0cb; }
.fa-amber-submenu  { color: #ffe4b5; }
.fa-indigo-submenu { color: #b3b3ff; }
.fa-slate-submenu  { color: #cbd5e1; }