/* ideal_life_center /static/css/navbar.css  */

/* Base styles */
body {
  padding-top: 70px;
}

/* Navbar core styles */
.navbar {
  border-bottom: 2px solid #06306e;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1030;
  padding-top: 0.5rem !important;
  background-color: #0e0d0d !important;
}

.navbar-nav {
  display: flex;
  align-items: center;
}

/* Dropdown core styling */
.dropdown-menu {
  background-color: #141414 !important;
  border: 1px solid #333;
  border-radius: 8px;
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.3);
  margin-top: 0;
  min-width: 280px;
  padding: 0.5rem;
  animation: dropdownFade 0.2s ease-in-out;
}

@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-item {
  color: #e1e1e1;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  margin-top: 1px;
}

.dropdown-item:hover {
  background-color: #154b95;
  color: white;
  transform: translateX(5px);
}

/* Search results styling */
#search-results-dropdown {
  margin-top: 40px;
  position: absolute;
  left: 0;
  right: auto;
  width: 100%;
  z-index: 1;
}

#search-results-dropdown .dropdown-menu {
  background-color: #1a1a1a;
  width: 100%;
  max-width: 100%;
  max-height: 60vh;
  overflow-y: auto;
  padding: 6px;
  margin-bottom: 6px;
  margin-top: 6px;
}

.lisearch {
  border-bottom: 1px solid #262626;
  list-style-type: none;
  margin-bottom: 2px;
  margin-left: -20px;
}

.lisearch:last-of-type {
  border: none;
}

.lisearch:hover {
  cursor: pointer;
  border-radius: 10px;
  opacity: 1;
  background: #154b95;
  color: white;
}

.lisearch a {
  overflow-wrap: break-word;
  color: #e1e1e1;
  padding: 3px;
  margin: 2px;
  text-decoration: none;
  font-size: 14px;
}

.lisearch:hover a {
  color: white;
}

/* New compact search result item */
.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  color: #e1e1e1;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.search-result-item:hover,
.search-result-item.active {
  background: #154b95;
  color: #fff;
}

.search-line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.search-main {
  font-size: 13.5px;
  font-weight: 600;
}

.search-meta {
  font-size: 12px;
  color: #a7a7a7;
}

.gender-dot {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid #666;
}

.gender-m {
  background: #2b6cb0;
}

.gender-f {
  background: #d9468f;
}

/* Highlighted term */
mark,
.mark {
  background: transparent;
  color: #fff;
  border-bottom: 2px solid #d2787b;
  padding: 0 0 1px 0;
}

.no-results {
  color: #cfcfcf;
  font-size: 13px;
  padding: 8px;
}

/* Auto-open dropdown on hover */
.nav-item.dropdown:hover .dropdown-menu {
  display: block;
}

/* Navbar hover effects */
.nav-item.dropdown .nav-link.dropdown-toggle {
  position: relative;
  transition: background-color 0.3s ease;
  border-radius: 0.5rem;
}

.nav-item.dropdown .nav-link.dropdown-toggle::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: rgba(162, 6, 8, 1);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-item.dropdown:hover .nav-link.dropdown-toggle::before {
  width: 80%;
}

/* Profile styling */
.profile-pic-navbar {
  width: 33px;
  height: 33px;
  border: 2px solid #000000;
  object-fit: cover;
}

/* Button styling */
.btn-outline-light {
  background-color: #b51f23;
  color: #fff;
  height: 36px !important;
  padding: 0.375rem 0.75rem !important;
}

.btn-outline-light:hover {
  background-color: #d2787b;
  color: #fff;
}

/* Search form */
#search-form {
  width: 420px !important;
  position: relative;
}

#search-form .form-control {
  height: 36px !important;
  padding: 0.375rem 0.75rem !important;
  background-color: #1a1a1a;
  color: #fff;
  border: 1px solid #333;
}

/* Hamburger menu styling */
.navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  padding: 0.25rem;
  transition: all 0.2s ease;
}

.navbar-toggler:hover {
  border-color: rgba(255, 255, 255, 0.5) !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.5)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='1.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
  width: 1.2em;
  height: 1.2em;
}
.mx-md-5 {
  margin-right: 2.3rem !important;
  margin-left: 2.3rem !important;
}

.dropdown-text {
  margin-left: 10px;
}

.more-results-message {
  color: #e1e1e1;
  font-size: 14px;
  margin-top: 10px;
}
