
/* Navbar container asosiy sozlamalar */
.navbar-custom {
  background: rgba(30, 126, 52, 0.9);
  border-bottom: 1px solid rgba(30, 126, 52, 0.3);
  padding: 0.75rem 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease;
  position: sticky;
  top: 0;
  z-index: 1030;
}

/* Navbar ichidagi markazlangan container */
.navbar-inner-container {
  width: 90%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
}

/* Mobil versiyada chap tomonga joylashtirish */
@media (max-width: 991.98px) {
  .navbar-inner-container {
    justify-content: flex-start;
    gap: 0.75rem;
  }
}

/* Logo o'lchamlar - yumaloq */
.navbar-logo {
  height: 45px;
  width: 45px;
  object-fit: contain;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 4px;
}

/* O'ng tomondagi logo rasm */
.navbar-logo-right {
  height: 40px;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
}

/* Company name (Navbar brand text) */
.navbar-company-name {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.navbar-company-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  line-height: 1;
}

/* Mobil versiya uchun company name */
.navbar-company-name-mobile {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

/* Navigation link asosiy sozlamalar */
.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0 0.5rem;
  padding: 0.5rem 0.75rem !important;
  transition: all 0.2s ease;
  position: relative;
  border-radius: 6px;
}

/* Link hover effekti */
.navbar-nav .nav-link:hover {
  color: #fff !important;
  background-color: rgba(255, 255, 255, 0.1);
}

/* Aktiv link stillar */
.navbar-nav .nav-link.active {
  color: #fff !important;
  font-weight: 600;
}

/* Aktiv linkning pastidan chiziq */
.navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.2s ease;
}

/* =====================================================
   DROPDOWN MENYUSINI HOVER EFFEKTI
   ===================================================== */
/* Dropdown trigger linkining hover holatida menu chiqishi */
.dropdown-toggle::after {
  display: none;
}

/* Dropdown menu sozlamalar */
.dropdown-menu {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(30, 126, 52, 0.1);
  border-radius: 8px;
  padding: 0.5rem 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: dropdownShow 0.2s ease forwards;
  min-width: 220px;
}

/* Dropdown menu chiqish animatsiyasi */
@keyframes dropdownShow {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dropdown item stillar */
.dropdown-item {
  color: #333;
  font-weight: 500;
  padding: 0.65rem 1.25rem;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

/* Dropdown item hover holatida */
.dropdown-item:hover {
  background-color: rgba(30, 126, 52, 0.1);
  color: #1e7e34;
  border-left-color: #1e7e34;
}

/* Dropdown item active holatida */
.dropdown-item.active {
  background-color: rgba(30, 126, 52, 0.15);
  color: #1e7e34;
  border-left-color: #1e7e34;
}

/* Dropdown divider */
.dropdown-divider {
  margin: 0.5rem 0;
  border-color: rgba(30, 126, 52, 0.1);
}

/* Dropdown trigger linkini hover qilsa menu chiqadi */
.dropdown:hover .dropdown-menu {
  display: block;
  opacity: 1;
  visibility: visible;
}

/* Dropdown toggle linkini hover holatida */
.navbar-nav .dropdown-toggle:hover {
  color: #fff !important;
  background-color: rgba(255, 255, 255, 0.1);
}

/* Dropdown toggle active holatida */
.navbar-nav .dropdown-toggle.active {
  color: #fff !important;
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0.1);
}

/* Dropdown toggle active holatida pastdan chiziq */
.navbar-nav .dropdown-toggle.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.2s ease;
  display: block !important;
}

/* =====================================================
   TABLET VERSIYA (991px dan pastida)
   ===================================================== */
@media (max-width: 991.98px) {
  .navbar-custom {
    padding: 0.6rem 0;
  }

  .navbar-logo {
    height: 40px;
    width: 40px;
  }

  .navbar-company-name {
    font-size: 0.9rem;
  }

  .navbar-company-subtitle {
    font-size: 0.7rem;
  }

  .navbar-nav {
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
  }

  .navbar-nav .nav-link {
    padding: 0.65rem 0.5rem !important;
    margin: 0.3rem 0;
    font-size: 0.9rem;
  }

  /* Mobile menyu ochilganda aktiv linki highlight qilish */
  .navbar-nav .nav-link.active::after {
    display: none;
  }

  .navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
  }

  .navbar-nav .nav-link.active:hover {
    background-color: rgba(255, 255, 255, 0.15);
  }
}

/* =====================================================
   MOBIL VERSIYA (575px dan pastida)
   ===================================================== */
@media (max-width: 575.98px) {
  .navbar-custom {
    padding: 0.5rem 0;
  }

  .navbar-inner-container {
    width: 95%;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .navbar-logo {
    height: 36px;
    width: 36px;
  }

  .navbar-company-name {
    font-size: 0.85rem;
  }

  .navbar-company-subtitle {
    font-size: 0.65rem;
  }

  .navbar-nav .nav-link {
    font-size: 0.85rem;
    padding: 0.55rem 0.4rem !important;
    margin: 0.25rem 0;
  }

  .navbar-nav {
    margin-top: 0.8rem;
    padding-top: 0.8rem;
  }
}

/* =====================================================
   TOGGLER DUGMASI (Mobile menu button)
   ===================================================== */
.navbar-toggler-custom {
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.25rem 0.5rem;
  transition: all 0.2s ease;
}

.navbar-toggler-custom:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background-color: rgba(255, 255, 255, 0.1);
}

.navbar-toggler-custom:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.2);
  outline: none;
}

.navbar-toggler-custom .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='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* =====================================================
   CONFLICT OLDINI OLISH - Bootstrap tiklash
   ===================================================== */

/* Navbar-brand bilan Bootstrap sozlamalarini tiklash */
.navbar-custom .navbar-brand {
  padding-left: 0;
  padding-right: 1rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.navbar-custom .navbar-brand:hover,
.navbar-custom .navbar-brand:focus {
  color: #fff;
}

/* Navbar-collapse tiklash */
.navbar-custom .navbar-collapse {
  justify-content: center;
  flex-grow: 1;
  margin: 0 1rem;
}

/* Navbar-nav tiklash */
.navbar-custom .navbar-nav {
  gap: 0.25rem;
  flex-wrap: nowrap;
}

/* =====================================================
   EKSTRA QOLAYLIK
   ===================================================== */

/* Navbar hover holatida biroz oqroqlash */
.navbar-custom:hover {
  background: rgba(30, 126, 52, 0.95);
}

/* Accessibility: focus-visible uchun yaxshi ko'rinish */
.navbar-custom .nav-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.4);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Print stili */
@media print {
  .navbar-custom {
    background: transparent;
    border: none;
    box-shadow: none;
  }
}

/* =====================================================
   BIOLABARATORIYA SHAXSIY KABINETI TUGMASI
   ===================================================== */

.btn-cabinet {
  background-color: #0d6efd;
  color: #fff !important;
  border: none;
  padding: 0.5rem 0.8rem !important;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  white-space: normal;
  flex-shrink: 0;
  margin-left: 0.5rem !important;
  line-height: 1.2;
}

.cabinet-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 1rem;
}

.cabinet-text {
  text-align: left;
}

.btn-cabinet:hover {
  background-color: #0b5ed7;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
  transform: translateY(-2px);
}

.btn-cabinet:focus {
  outline: 2px solid rgba(13, 110, 253, 0.4);
  outline-offset: 2px;
}

/* Tablet versiya */
@media (max-width: 991.98px) {
  .btn-cabinet {
    margin-top: 0.8rem !important;
    margin-left: 0 !important;
    width: 100%;
    justify-content: center;
  }
}

/* Mobil versiya */
@media (max-width: 575.98px) {
  .btn-cabinet {
    font-size: 0.85rem;
    padding: 0.45rem 0.9rem !important;
  }
}


/* OFF-CANVAS SIDEBAR STYLES */
.sidebar-mobile {
  width: 320px !important;
  background: linear-gradient(135deg, rgba(30, 126, 52, 0.98), rgba(20, 90, 40, 0.98));
  backdrop-filter: blur(12px);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-mobile .offcanvas-header {
  padding: 1.5rem 1.25rem;
}

.sidebar-mobile .list-group-item a {
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.9;
  transition: all 0.2s ease;
}

.sidebar-mobile .list-group-item a:hover,
.sidebar-mobile .list-group-item a.active-sidebar {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding-left: 0.5rem;
}

.sidebar-mobile .collapse a {
  font-size: 0.95rem;
  opacity: 0.9;
  padding: 0.5rem 0.75rem;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
  margin-bottom: 0.25rem;
  border-radius: 4px;
}

.sidebar-mobile .collapse a:hover {
  opacity: 1;
  padding-left: 1rem;
  background-color: rgba(255, 255, 255, 0.12);
  border-left-color: rgba(255, 255, 255, 0.6);
}

.sidebar-contact {
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.sidebar-contact h6 {
  font-size: 1rem;
  opacity: 1;
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 0.75rem;
}

.sidebar-contact .contact-item {
  padding: 0.5rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.sidebar-contact .contact-item:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.sidebar-contact .contact-icon {
  width: 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.sidebar-contact .contact-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  line-height: 1.4;
}

.sidebar-contact .contact-link {
  color: #fff !important;
  text-decoration: none;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 1px;
}

.sidebar-contact .contact-link:hover {
  color: #fff !important;
  border-bottom-color: rgba(255, 255, 255, 0.8);
  opacity: 1;
}

.offcanvas-footer {
  background-color: rgba(0, 0, 0, 0.15);
}

/* Accordion chevron animatsiya */
.collapse + a > i.bi-chevron-down,
[data-bs-toggle="collapse"]:not(.collapsed) > i.bi-chevron-down {
  transform: rotate(180deg);
}

.transition {
  transition: transform 0.3s ease;
}

/* Mobil kabinet tugmasi */
@media (max-width: 991.98px) {
  .btn-cabinet {
    margin-left: 0 !important;
  }
}

/* Overlay ni qorong‘iroq qilish */
.offcanvas-backdrop.show {
  background-color: rgba(0, 0, 0, 0.6) !important;
}