.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 15px;
  background-color: rgb(247, 239, 252);
  box-shadow: rgb(55, 1, 68) 0px 0px 8px;
  z-index: 1000;
}

.dental-name {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  flex-shrink: 0;
  width: 240px;
  padding: 10px;
}

.nav-bar .dental-name h1 {
  font-family: "Fugaz One", sans-serif;
  color: rgb(133, 17, 133);
  font-size: 28px;
}

.nav-bar .dental-name p {
  color: rgb(177, 74, 177);
  font-size: 15px;
  font-family: "Rubik", sans-serif;
  font-weight: 500;
  margin-left: 150px;
}

.nav-bar nav {
  display: flex;
  justify-content: center;
  flex-grow: 1;
  flex-shrink: 0;
  width: 50%;
}

.nav-bar nav ul {
  list-style: none;
  display: flex;
  gap: 80px;
}

.nav-bar nav ul li a {
  font-family: "Roboto", sans-serif;
  font-size: 20px;
  font-weight: 500;
  text-decoration: none;
  color: rgb(70, 7, 70);
  position: relative;
}

.nav-bar nav ul li a:hover {
  color: rgb(141, 5, 141);
}

.nav-bar nav ul li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: rgb(141, 5, 141);
  transition: width 0.3s ease;
}

.nav-bar nav ul li a:hover::after {
  width: 100%;
}

.nav-bar nav ul li a.active {
  color: rgb(141, 5, 141);
}

.nav-bar nav ul li a.active::after {
  width: 100%;
}

.nav-bar-button {
  width: auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  position: relative;
  flex-grow: 1;
  flex-shrink: 0;
  flex-basis: auto;
}

.nav-bar-button .appointment-button {
  background-color: rgb(206, 154, 255);
  color: rgb(107, 5, 155);
  font-family: "Rubik", sans-serif;
  border: none;
  font-size: 15px;
  font-weight: 500;
  padding: 16px 30px;
  text-decoration: none;
  border-radius: 0 20px 0 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.4s ease;
}

.nav-bar-button .appointment-button:hover {
  background-color: rgb(119, 20, 119);
  color: #ffffff;
}

.nav-bar-button .login-button {
  background-color: rgb(206, 154, 255);
  color: rgb(107, 5, 155);
  font-family: "Rubik", sans-serif;
  border: none;
  font-size: 15px;
  font-weight: 500;
  padding: 16px 80px;
  text-decoration: none;
  border-radius: 0 20px 0 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.4s ease;
}

.nav-bar-button .login-button:hover {
  background-color: rgb(119, 20, 119);
  color: #ffffff;
}

/* Profile Dropdown Styles */
.profile-dropdown {
  position: relative;
  display: inline-block;
}

.profile-button {
  position: relative;
  background-color: rgb(206, 154, 255);
  color: rgb(107, 5, 155);
  font-family: "Rubik", sans-serif;
  border: none;
  font-size: 15px;
  font-weight: 500;
  padding: 16px 25px;
  border-radius: 0 20px 0 20px;
  cursor: pointer;
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 140px;
}

.profile-button:hover {
  background-color: rgb(119, 20, 119);
  color: #ffffff;
}

.profile-button .fas.fa-user-circle {
  font-size: 18px;
}

.dropdown-arrow {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.profile-dropdown.show .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 5px;
  background-color: white;
  min-width: 200px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  z-index: 1001;
  border: 1px solid rgb(206, 154, 255);
}

.dropdown-menu.show {
  display: block;
  animation: fadeIn 0.3s ease;
}

.custom-popup-class {
  font-family: "Poppins", sans-serif;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-item {
  color: rgb(70, 7, 70);
  padding: 12px 20px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Rubik", sans-serif;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.dropdown-item:hover {
  background-color: rgb(248, 242, 250);
  color: rgb(107, 5, 155);
}

.dropdown-item:first-child {
  border-radius: 8px 8px 0 0;
}

.dropdown-item.logout-item {
  color: #dc3545;
  border-radius: 0 0 8px 8px;
}

.dropdown-item.logout-item:hover {
  background-color: #fff5f5;
  color: #c82333;
}

.dropdown-divider {
  height: 1px;
  background-color: rgb(206, 154, 255);
  margin: 5px 0;
}

.logout-mobile {
  background-color: #dc3545 !important;
  color: white !important;
}

.logout-mobile:hover {
  background-color: #c82333 !important;
}

.notification-count-badge {
  background-color: #ff4c4c;
  color: white;
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
  line-height: 1;
  min-width: 15px;
  text-align: center;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
  padding: 6px 8px;
}

.profile-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  z-index: 10;
}

html {
  scroll-behavior: smooth;
}

.scroll-link {
  cursor: pointer;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
  left: auto;
  gap: 4px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: rgb(133, 17, 133);
  transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  height: calc(100vh - 80px);
  background-color: rgb(247, 239, 252);
  z-index: 999;
  flex-direction: column;
  padding: 40px 20px;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 40px;
}

.mobile-menu ul li a {
  font-family: "Roboto", sans-serif;
  font-size: 24px;
  font-weight: 500;
  text-decoration: none;
  color: rgb(70, 7, 70);
  padding: 10px 0;
  border-bottom: 1px solid rgb(206, 154, 255);
  display: block;
}

.mobile-menu .mobile-buttons {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-menu .mobile-buttons a {
  background-color: rgb(206, 154, 255);
  color: rgb(107, 5, 155);
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  font-weight: 500;
  padding: 16px 30px;
  text-decoration: none;
  border-radius: 0 20px 0 20px;
  text-align: center;
  transition: all 0.4s ease;
}

.mobile-menu .mobile-buttons a:hover {
  background-color: rgb(119, 20, 119);
  color: #ffffff;
}

@media (max-width: 1565px) {
  .nav-bar nav ul {
    gap: 76px;
  }

  .nav-bar nav ul li a {
    font-size: 20px;
  }

  .nav-bar .dental-name h1 {
    font-size: 28px;
  }

  .nav-bar-button .appointment-button {
    padding: 16px 30px;
    font-size: 14px;
  }
}

@media (max-width: 1200px) {
  .nav-bar nav {
    margin-left: auto;
    width: 40%;
  }

  .nav-bar nav ul {
    gap: 40px;
  }

  .nav-bar-button {
    padding: 0 15px 0 0;
  }
}

@media (max-width: 1253px) {
  .nav-bar-button .appointment-button {
    font-size: 13px;
  }

  .nav-bar-button .login-button {
    padding: 16px 50px;
  }
}

@media (max-width: 1024px) {
  .nav-bar {
    padding: 20px 15px;
    height: 70px;
  }

  .nav-bar nav {
    margin-left: auto;
    width: 35%;
  }

  .nav-bar nav ul {
    gap: 25px;
  }

  .nav-bar nav ul li a {
    font-size: 18px;
  }

  .nav-bar .dental-name h1 {
    font-size: 22px;
  }

  .nav-bar .dental-name p {
    font-size: 13px;
  }

  .nav-bar-button {
    width: 35%;
    gap: 15px;
    padding: 0 10px 0 0;
  }

  .nav-bar-button .appointment-button,
  .nav-bar-button .login-button,
  .profile-button {
    padding: 12px 16px;
    font-size: 13px;
  }

  .nav-bar-button .login-button {
    padding: 12px 30px;
  }

  .profile-button {
    min-width: 110px;
  }
}

@media (max-width: 900px) {
  .nav-bar nav ul {
    gap: 20px;
  }

  .nav-bar nav ul li a {
    font-size: 16px;
  }

  .nav-bar-button .appointment-button,
  .nav-bar-button .login-button,
  .profile-button {
    padding: 10px 12px;
    font-size: 12px;
  }

  .nav-bar-button .login-button {
    padding: 10px 20px;
  }

  .profile-button {
    min-width: 100px;
  }
}

@media (max-width: 768px) {
  .nav-bar {
    padding: 15px;
    height: 60px;
    justify-content: space-between;
  }

  .nav-bar nav,
  .nav-bar-button {
    display: none;
  }

  .hamburger {
    display: flex !important;
    z-index: 1001;
    position: relative;
  }

  .dental-name {
    width: auto;
    flex: 1;
  }

  .nav-bar .dental-name {
    width: auto;
    padding: 5px;
  }

  .nav-bar .dental-name h1 {
    font-size: 20px;
  }

  .nav-bar .dental-name p {
    margin-left: 110px;
    font-size: 12px;
  }

  .main-container {
    padding-top: 60px;
  }

  .mobile-menu {
    top: 60px;
    height: calc(100vh - 60px);
  }
}

@media (max-width: 480px) {
  .nav-bar {
    padding: 10px 15px;
    height: 55px;
  }

  .nav-bar .dental-name h1 {
    font-size: 18px;
  }

  .nav-bar .dental-name p {
    margin-left: 100px;
    font-size: 11px;
  }

  .hamburger span {
    width: 20px;
    height: 2px;
  }

  .main-container {
    padding-top: 55px;
  }

  .mobile-menu {
    top: 55px;
    height: calc(100vh - 55px);
    padding: 30px 15px;
  }

  .mobile-menu ul li a {
    font-size: 20px;
  }
}
