/* Base Styles */
header {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  padding: 5px;
  background-color: #283531;
}

.disabled-link {
  pointer-events: none; 
  color: gray !important ;         
  cursor: not-allowed; 
  text-decoration: none;
}


header .navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1250px;
  margin: 0 auto;
}

.navbar .logo img {
  width: 50px;
  height: auto;
  vertical-align: middle;
}

.navbar .logo {
  color: #fff;
  font-weight: 600;
  font-size: 2.0rem;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.navbar .logo span {
  margin-left: 10px;
}

.navbar .menu-links {
  display: flex;
  list-style: none;
  gap: 35px;
  padding-top: 10px;
}

.navbar a {
  color: #fff;
  text-decoration: none;
  padding: 8px 10px;
  position: relative;
}

.navbar a.active {
  color: #58A5B7 !important;
}

.navbar .nav-item.dropdown a:hover{
  border-bottom: none !important;
}

.navbar a:hover {
  border-bottom: none !important;
}

.navbar a::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 3px;
  bottom: 0;
  left: 0;
  background-color: #58A5B7;
  visibility: hidden;
  transform: scaleX(0);
  transition: transform 0.3s ease, visibility 0.3s ease;
}

.navbar a:hover::before,
.navbar a.active::before {
  visibility: visible;
  transform: scaleX(1);
}

.navbar a.active:hover::before {
  background-color: #283531;
}

#close-menu-btn {
  position: absolute !important;
  right: 20px !important;
  top: 20px !important;
  cursor: pointer !important;
  display: none !important;
}

#hamburger-btn {
  color: #fff !important;
  cursor: pointer !important;
  display: none !important;
}

.nav-item.dropdown .nav-link {
  padding: 0 10px;
  display: flex;
  align-items: center;
  height: 100%;
  color: #fff;
  border-bottom: none !important;
  transition: none !important; 
  position: relative; 
}

.nav-item.dropdown .nav-link::before {
  content: ''; 
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: transparent; 
  visibility: hidden;
  transform: scaleX(0);
  transition: none !important; 
}

.nav-item.dropdown .nav-link:hover {
  color: #58A5B7 !important; 
  background-color: transparent !important; 
  border-bottom: none !important;
  transition: none !important; 
}

.nav-item.dropdown .dropdown-item:before {
  content: ''; 
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: transparent; 
  visibility: hidden;
  transform: scaleX(0);
  transition: none !important; 
}

.nav-item.dropdown .dropdown-item:hover {
  color: white !important; 
  background-color: #58A5B7 !important; 
  border-bottom: none !important;
  transition: none !important; 
}

.nav-item .dropdown-item {
  border-bottom: none !important; 
  transition: none !important; 
}

.nav-item .dropdown-menu {
  background-color: #fff !important;
  border: none !important;
  padding: 5px !important;
}

.nav-item .dropdown-menu.show {
  display: block !important; 
}

.nav-item .dropdown-item {
  color: #000 !important; 
}

.nav-item .dropdown-item:hover {
  background-color: #58A5B7 !important; 
  color: #fff !important;
}

.notification-item {
  position: relative;
}

.notification-item .dropdown-menu {
  max-height: 500px;
  overflow-y: auto;
  width: 100%;
  max-width: 300px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 10px 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.notification-item .dropdown-item:before {
  content: ''; 
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: transparent; 
  visibility: hidden;
  transform: scaleX(0);
  transition: none !important; 
  padding: 10px 15px;
  text-decoration: none;
  white-space: normal;
  word-wrap: break-word;
}

.notification-item .dropdown-item {
  color: #333;
  padding: 10px 15px;
  text-decoration: none;
  white-space: normal;
  word-wrap: break-word;
}

.notification-item .dropdown-item:hover {
  background-color: #f0f0f0;
}

.badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #F8C613;
  color: #fff;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 0.75rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

#postAdoptionModal .modal-dialog {
  max-width: 1200px; 
}

#postAdoptionModal .modal-dialog  .form-section{
  background-color: white !important;
  padding: 0 !important;
  margin: 0 !important;
}

#notificationModal .modal-dialog {
  position: fixed;
  right: 20px;
  top: 20px;
  margin: 0;
  width: 300px; /* Default width for larger screens */
  max-width: 100%; /* Prevent modal from exceeding screen width */
  z-index: 1050;
}

#notificationModal .modal-content {
  border-radius: 8px;
}

#notificationModal .modal-header {
  border-bottom: 1px solid gray !important;
}

#notificationModal .modal-body {
  padding: 0 !important;
}

#notificationModal .modal-body p {
  padding: 0 10px !important;
}

#notificationModal .modal-body i {
  font-size: 32px !important;
  padding-left: 10px !important;
  color: #F8C613;
}

#notificationModal .notification-item {
  border-bottom: 1px solid gray;
}

#notificationModal .notification-item a {
  text-decoration: none;
  color: #000;
}

#notificationModal .notification-item:hover {
  background-color: #ddd;
}

/* Small Screen Sizes - Mobile (up to 430px) */
@media (max-width: 430px) {
  #notificationModal .modal-dialog {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    width: 90%; /* Adjust width to 90% of the screen */
    max-width: 350px; /* Set a maximum width to prevent modal from being too large */
  }

  #notificationModal .modal-header {
    font-size: 1.2rem; /* Adjust header font size for small screens */
  }

  #notificationModal .modal-body i {
    font-size: 28px; /* Slightly reduce icon size */
  }
}

/* Medium Screen Sizes (from 431px to 768px) */
@media (min-width: 431px) and (max-width: 768px) {
  #notificationModal .modal-dialog {
    position: fixed;
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
    width: 85%; /* Set width to 85% of the screen width */
    max-width: 400px; /* Set a max width for moderate screens */
  }

  #notificationModal .modal-body i {
    font-size: 30px; /* Adjust icon size for medium screens */
  }
}

/* Large Screen Sizes (from 769px to 1100px) */
@media (min-width: 769px) and (max-width: 1100px) {
  #notificationModal .modal-dialog {
    position: fixed;
    right: 20px;
    top: 20px;
    margin: 0;
    width: 350px; /* Set a fixed width for larger screens */
  }

  #notificationModal .modal-body i {
    font-size: 32px; /* Set icon size for larger screens */
  }
}

/* Extra Large Screen Sizes (above 1100px) */
@media (min-width: 1101px) {
  #notificationModal .modal-dialog {
    position: fixed;
    right: 20px;
    top: 20px;
    margin: 0;
    width: 350px; /* Set fixed width for very large screens */
  }

  #notificationModal .modal-body i {
    font-size: 34px; /* Adjust icon size for very large screens */
  }
}

/* Other styles */
#clearNotificationsBtn {
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

#clearNotificationsBtn:hover {
  color: #dc3545; /* Red color for hover */
  text-decoration: underline; /* Underline on hover */
}

/* Style for unread notifications */
.notification-item.unread {
  background-color: #f1fcff;
  border-left: 5px solid #58A5B7; 
}

/* Style for read notifications */
.notification-item.read {
  background-color: #e2e3e5; /* Light gray background */
  color: #6c757d; /* Gray text */
}

.notification-item {
  transition: background-color 0.3s ease, font-weight 0.3s ease;
}

/* Media queries for mobile navigation and responsiveness */
@media (max-width: 1100px) {
  header {
    padding: 10px !important;
    z-index: 1000 !important;
  }

  header.show-mobile-menu::before {
    content: "" !important;
    position: fixed !important;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(5px);
  }

  .navbar .logo {
    font-size: 1.7rem !important;
  }

  #hamburger-btn, #close-menu-btn {
    display: block !important;
  }

  header.show-mobile-menu .navbar .menu-links {
    left: 0 !important;
  }

  .navbar .menu-links {
    position: fixed !important;
    top: 0 !important;
    left: -250px !important;
    width: 250px !important;
    height: 100vh !important;
    background: #fff !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 40px 0 !important;
    transition: left 0.3s ease !important; 
  }

  .nav-item.dropdown .dropdown-menu {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    position: static !important;
    background-color: transparent !important;
    box-shadow: none !important;
  }

  .nav-item .dropdown-item {
    display: block !important;
    background-color: transparent !important;
    color: #000 !important;
    padding: 10px 0 !important;
    text-align: center;
  }

  .navbar .menu-links a,
  .nav-item .dropdown-item {
    color: #000 !important;
    width: 100%; /* Ensure full-width links */
    text-align: center;
  }

  .nav-item .dropdown-item:hover {
    background-color: #f0f0f0 !important;
    color: #000 !important;
    border-bottom: 2px solid #58A5B7 !important;
  }

  .nav-item .dropdown-item:hover {
    background-color: #58A5B7 !important;
    color: #fff !important;
  }

  .nav-item .dropdown-item i {
    margin-right: 10px;
  }

  #notification {
    position: absolute;
    right: 20px;
    top: 20px;
    display: none; 
  }

  header.show-mobile-menu #notification {
    display: block;
    right: 60px; 
  }

  .nav-item.dropdown .nav-link {
    width: 100%;
    display: flex;
    justify-content: space-between;
  }

  .navbar .dropdown-item {
    color: #000;
  }

  .nav-item.dropdown .nav-link {
    display: none !important;
  }

  .nav-item.dropdown .dropdown-menu {
    display: flex !important;
    flex-direction: column;
    position: static !important;
    background-color: transparent !important;
    box-shadow: none !important;
  }

  .nav-item.dropdown .dropdown-item {
    display: block !important;
    background-color: transparent !important;
    color: #fff !important;
    padding: 10px 0 !important;
    color: #000 !important;
  }

  .nav-item .dropdown-item:hover {
    background-color: #f0f0f0 !important; 
    color: #000 !important;
    border-bottom: 2px solid #58A5B7 !important; 
  }
}
