* {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}

html {
  overflow-y: scroll;
}


body {
  overflow-x: hidden;
}

#loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  /* Semi-transparent background */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  /* Ensure it appears above all content */
}

.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-left-color: #006600;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  position: fixed;
  top: 50%;
  left: 50%;
  margin-top: -25px;
  /* Half of the height */
  margin-left: -25px;
  /* Half of the width */
  z-index: 10000;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.footer-placeholder {
  height: 60px;
  /* This should match the height of the footer */
}

/* Nav menu */
.nav-mob-bottom {
  width: 100%;
  height: 60px;
  position: fixed;
  bottom: 0;
  padding: 0;
  background-color: #333;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 10000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.nav-mob-bottom a {
  color: #f9f9f9;
  text-align: center;
  display: flex;
  text-decoration: none;
  flex-direction: column;
  align-items: center;
  font-size: 14px;
  padding: 10px;
  transition: color 0.3s ease;
}

.nav-mob-bottom a:hover {
  color: #85888C;
}

/* Styling for SVG icons */
.nav-mob-bottom svg {
  width: 24px;
  /* Matches the font-size of .icon */
  height: 24px;
  fill: #f9f9f9;
  /* Default icon color */
  transition: fill 0.3s ease;
}

.nav-mob-bottom a:hover svg {
  fill: #85888C;
  /* Matches hover color */
}

.nav-mob-bottom .icon {
  font-size: 24px;
}

.usrname-mob-bottom {
  text-align: center;
  background-color: #008000;
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #f9f9f9;
  font-size: 1.5em;
  font-weight: 300;
  margin: 0 auto 5px;
}

.usrname-mob-bottom a {
  text-decoration: none;
  color: inherit;
}

/*Message badge*/
.message-icon {
  position: relative;
  display: inline-block;
}

.badge {
  position: absolute;
  top: 0;
  right: -2px;
  background-color: #ff0000;
  color: white;
  border-radius: 50%;
  padding: 3px 7px;
  font-size: 12px;
  font-weight: bold;
  display: inline-block;
  max-width: 20px;
  /* Ensures the badge is a perfect circle */
  max-height: 22px;
  text-align: center;
}