body {
  margin: 0;
  font-family: Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.nav-bar {
  background-color: #57d7da;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px 20px;
  width: 100%; /* Make the nav-bar full width */
  position: relative;
  z-index: 1001;
}

.menu-bar {
  display: flex;
  justify-content: flex-start; /* Align menu items to the start */
  align-items: center;
  flex-wrap: wrap;
  padding: 0; /* Remove padding */
  margin: 0; /* Remove margin */
  list-style: none;
  width: 100%; /* Ensure the menu bar takes full width */
}

.nav-item {
  display: inline;
}

.nav-text a {
  text-decoration: none;
  color: black;
  padding: 14px 20px;
  display: block;
}
.active{
  background-color: #45b3b7; /* Hover color for top nav bar */
  border-radius: 5px;
}
.nav-text a:hover {
  background-color: #45b3b7; /* Hover color for top nav bar */
  border-radius: 5px;
}

.content-body {
  flex: 1; /* Ensures content body grows and pushes the footer down */
  padding: 20px 50px;
}

footer {
  background-color: #333;
  color: black;
  text-align: center;
  width: 100%;
  position: relative;
  z-index: 1000;
  padding: 7px !important
}

.footer-text a {
  color: black;
  text-decoration: none;
  padding: 10px;
}

.footer-text a:hover {
  background-color: #45b3b7; /* Hover color for footer */
  border-radius: 5px;
}

.footer-made_with {
  font-weight: 700;
  font-size: 12px;
  margin-top: 10px; /* Add space above the footer made with line */
  text-align: center; /* Center text */
}

.shiny-heart {
  font-size: 14px;
  color: red;
  animation: shine 1.5s infinite alternate ease-in-out;
  text-shadow: 0 0 5px #ff99aa, 0 0 10px #ff3366;
}

@keyframes shine {
  0% {
    transform: scale(1);
    text-shadow: 0 0 5px #ff99aa, 0 0 10px #ff3366;
  }
  100% {
    transform: scale(1.2);
    text-shadow: 0 0 10px #ff3366, 0 0 20px #ff0033;
  }
}


/* Centering footer text */
.footer-copyright, .footer-made_with {
  display: block;
  margin: 0 auto;
  text-align: center; /* Center text in footer */
}
.footer-copyright {
  padding-left: 0%;
  width: 15%;
}

/* Hamburger Menu for Mobile */
.hamburger {
  display: none;
  font-size: 30px;
  cursor: pointer;
  color: white;
  background-color: #57d7da;
  border: none;
}

.menu-bar.mobile-nav {
  display: none;
  flex-direction: column;
  align-items: center;
}

.nav-logo {
  align-items: center;
  width: 12%;
}

/* Sliding Popup Menu for Mobile */
.mobile-popup {
  position: fixed;
  top: 0;
  right: -100%;
  width: 40%;
  background-color: #e8f0fe;
  padding-top: 20px;
  z-index: 1000;
  transition: right 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.a-url-img {
  text-decoration: none;
  color: black;
}

.mobile-popup.show {
  right: 0;
}

.close-popup {
  font-size: 30px;
  color: black;
  position: absolute;
  top: 10px;
  right: 20px;
  cursor: pointer;
}

.mobile-popup .nav-item {
  margin: 10px 0;
}
.nav-image {
  width: 50%;
}

/* Responsive CSS */
@media screen and (max-width: 768px) {
  .footer-copyright {
      width: 50%;
  }
  .menu-bar {
      display: none;
  }
  .popup-menu-bar{
      display: block;
  }

  .hamburger {
      display: block;
  }
  .a-url{
      color: black !important;
  }
  .nav-image {
      width: 100%;
  }

  .nav-text a {
      font-size: 16px;
  }

  .contact_us_div {
      padding: 20px;
  }

  .login_user_profile_pic {
      width: 40px !important;
  }

  .footer-made_with {
      font-size: 12px;
  }

  footer {
      padding: 20px 0; /* Add some padding for mobile footer */
  }
}

@media screen and (max-width: 576px) {
  .nav-text a {
      font-size: 14px;
  }

  .contact_us_div {
      padding: 10px;
  }

  .footer-text a {
      font-size: 14px;
      padding: 8px;
  }
}
.dropdown .dropbtn {
  font-size: 16px;
  border: none;
  outline: none;
  color: black;
  padding: 25px 20px;
  background-color: inherit;
  font-family: inherit;
  margin: 0;
}

.dropdown-content {
  display: none;
  position: fixed;
  background-color: #f9f9f9;
  min-width: 120px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  margin-left: 8%;
}

.dropdown-content a {
  float: none;
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.login_user_profile_pic {
  width: 40px !important;
}

.dna-loader {
  display: flex;
  gap: 5px;
  justify-content: center;
  align-items: center;
  padding-top: 15px;
  float: right;
}

.dot {
  width: 8px;
  height: 8px;
  background-color: white;
  border-radius: 50%;
  animation: dna-animation 1s infinite ease-in-out;
}

.dot:nth-child(2) {
  animation-delay: 0.2s;
}
.dot:nth-child(3) {
  animation-delay: 0.4s;
}
.dot:nth-child(4) {
  animation-delay: 0.6s;
}

@keyframes dna-animation {
  0%, 100% {
      transform: translateY(0);
  }
  50% {
      transform: translateY(-15px);
  }
}


.main-wrapper {
  display: flex;
  flex-grow: 1;
  min-height: 80vh;
}

.sidebar {
  width: 220px;
  background-color: #f0f0f0;
  padding-top: 20px;
  height: calc(100vh - 60px);
  position: sticky;
  top: 60px;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-menu li {
  margin: 10px 0;
}

.sidebar-menu li a {
  display: block;
  padding: 10px 20px;
  color: black;
  text-decoration: none;
}

.sidebar-menu li a:hover, .sidebar-menu li a.active {
  background-color: #45b3b7;
  border-radius: 5px;
}

.content-body {
  flex-grow: 1;
  padding: 20px;
}

/* Keep top menu bar for non-logged-in users */
.public-menu {
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 10px;
}

/* Responsive: Sidebar hides on mobile */
@media screen and (max-width: 768px) {
  .sidebar {
    display: none;
  }

  .main-wrapper {
    flex-direction: column;
  }

  .content-body {
    padding: 10px;
  }
}
