* {
  margin: 0;
  padding: 0;
  font-family: 'Inter', 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;
}

.jc-ai-btn {
  position: fixed;
  right: 24px;
  bottom: 92px;
  z-index: 1045;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 12px 18px;
  border: 0;
  border-radius: 999px;

  color: #fff;
  background: #087a2d;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);

  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 650;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.jc-ai-btn:hover {
  color: #fff;
  background: #066624;
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.jc-ai-panel {
  position: fixed;
  right: 24px;
  bottom: 154px;
  z-index: 1045;

  width: min(390px, calc(100vw - 32px));
  padding: 18px;

  background: #fff;
  border: 1px solid #e3e7e4;
  border-radius: 16px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .jc-ai-btn {
    right: 16px;
    bottom: 86px;
  }

  .jc-ai-panel {
    right: 16px;
    bottom: 144px;
  }
}