.logo{
    width: 90px !important;
    height: auto !important;
}

.logo-login{
  width: 80px;
  height: auto;
  object-fit: contain;       /* Biar gambar gak melar */
  border-radius: 50%;        /* Biar bulat, opsional */
}

.logo-panel{
  width: 60px;
  height: auto;
  object-fit: contain;
  border-radius: 50%;
}
.navbar-header{
    background-color: rgb(191, 26, 8) !important;
}

.navbar-item{
    transition: none;
}



.dropdown-item{
    /* display: none; */
    position: absolute;
    z-index: 9999;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border-radius: 4px;
    padding: 0.5rem;
}

.dropdown-item:hover{
    background-color: #ffffff;

}

.dropdown-padding{
    padding: 5px 15px;
}

.dropdown-link{
    text-decoration: none;
    transition: color 0.3s ease;
}

.li-peraturan{
    position: relative;
}

.navbar-link:hover + .dropdown-item,
.dropdown-item:hover {
  display: block;
}

#peraturanDropdown {
  user-select: none;
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none;    /* Firefox */
  -ms-user-select: none;     /* IE10+ */
}

#dropdownContainerPeraturan {
    display:none;
    max-width: 300px;
    width: max-content;
    left: 0; /* nempel ke kiri parent */
    right: auto;
    position: absolute;
    z-index: 9999;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    padding: 0.5rem;
    overflow-wrap: break-word;
}

@media(max-width: 1175px){
  .nav-x {
    display: none !important;
  }
      .burger{
        display: block !important;
    }
      .custom-gap {
    display: none !important;
  }

}

#search-dropdown-main, #search-dropdown-modal, .dropdown-item-search {
    position: absolute;
    z-index: 9999;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border-radius: 4px;
    padding: 0.5rem;
    max-height: 250px;
    overflow-y: auto;
}

#searchWrapper-main .with-user{
  max-width: 405px;
}

#searchWrapper-main .no-user{
  max-width: 575px;
}

/* Bungkus padding */
.dropdown-padding {
  padding: 10px 15px;
  border-bottom: 1px solid #f0f0f0;
   transition: background-color 0.2s ease, color 0.2s ease; 
}

#dropdownContainerPeraturan .dropdown-padding.active{
  background-color: rgb(191, 26, 8);
    font-weight: bold;
    border-radius: 5px;
}

#dropdownContainerPeraturan .dropdown-padding:hover{
  background-color: #ce0f2e;
  color: white;
  border-radius: 5px;
}

/* Link styling */
#dropdownContainerPeraturan .dropdown-link {
  display: block;
  color: rgb(191, 26, 8) !important;
  font-weight: 500;
  text-decoration: none;
  font-size: 15px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

#dropdownContainerPeraturan .dropdown-padding.active .dropdown-link{
    color: white !important;
}

//bagian dropdown search
.dropdown-item-search .dropdown-link{
  display: block;
  color: black !important;
  font-weight: 500;
  font-size: 15px;
}

.dropdown-item-search .dropdown-link:hover{
  color: rgb(191, 26, 8) !important;
}


/* Hover efek */
#dropdownContainerPeraturan .dropdown-link:hover {
  color: white !important; 
  border-radius: 6px;
}

.uc-offcanvas-bar a{
  color: black !important; 
}

.uc-offcanvas-bar a:hover{
  color: rgb(191, 26, 8) !important; 
}

.search-icon-btn {
  position: absolute;
  top: 50%;
  right: 10px; /* <- ubah ke left: 10px; kalau mau icon di kiri */
  transform: translateY(-50%);
  border: none;
  background: transparent;
  cursor: pointer;
  color: #777;
}


#userDropdownWrapper{
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  min-width: 180px;
}

.custom-user-dropdown {
  position: absolute;
  top: 100%; /* muncul tepat di bawah trigger */
  left: 0;
  background-color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  z-index: 9999;
  min-width: 200px;
  padding: 0.5rem 0;
  display: block;
}

.custom-user-dropdown .dropdown-link {
   display: block;
  font-weight: 500;
  text-decoration: none;
  font-size: 15px;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.custom-user-dropdown .dropdown-link:hover{
  /* background-color: rgb(191, 26, 8); */
  color: rgb(191, 26, 8) !important;
  /* border-radius: 5px; */
}

.d-none {
  display: none !important;
}

.header-profile {
  align-items: center;       /* Biar semuanya rata tengah vertikal */
  gap: 0.5rem;               /* Jarak antar elemen (opsional) */
}

.header-profile img.logo {
  width: 40px;
  height: 40px;
  object-fit: contain;       /* Biar gambar gak melar */
  border-radius: 50%;        /* Biar bulat, opsional */
}

.header-profile p {
  white-space: nowrap;
  max-width: 150px;         /* Atur sesuai kebutuhan */
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-profile-side{
  gap: 1rem;
}

#searchWrapper-modal input {
    width: 100% !important;
    padding-right: 2.5rem !important; /* kasih ruang buat icon */
}

.search-icon-btn {
    position: absolute;
    /* right: 0.10rem; */
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    z-index: 10;
    font-size: 1rem;
}

@media (max-width: 576px) {
    .search-icon-btn i {
        font-size: 1rem !important;
    }

    #searchWrapper-modal input {
        font-size: 0.9rem !important;
    }
}

.navbar-header .navbar-link:hover,
.navbar-header .navbar-link.active {
  background-color: #fff !important;
  color: rgb(191, 26, 8) !important;
  border-radius: 6px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(191,26,8,0.07);
  transition: background 0.2s, color 0.2s;
}

.uc-nav .navbar-link.active a{
  color: rgb(191, 26, 8) !important;
}

.uc-nav .uc-parent.active .peraturan{
  color: rgb(191, 26, 8) !important;
}

.uc-nav .uc-parent .uc-nav-sub .anak-peraturan.active a{
  color: rgb(191, 26, 8) !important;
}

/* Statistik Pengunjung */
.visitor-stats,
.visitor-stats-main {
  background: #fff7f7;
  border: 1px solid #ffe3e3;
  border-radius: 8px;
  padding: 10px 18px;
  margin-top: 8px;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(191, 26, 8, 0.07);
  font-size: initial;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
}

/* TOTAL PENGUNJUNG */
.visitor-stats .visitor-total,
.visitor-stats-main .visitor-total {
  color: rgb(191, 26, 8);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
}

/* TOTAL PER PAGE */
.visitor-stats .visitor-page,
.visitor-stats-main .visitor-page {
  color: #333;
  font-weight: 500;
  font-size: 0.98rem;
}

@media(max-width: 1175px){
      .visitor-stats-main {
    display: none;
  }
}

@media (max-width: 1400px){
  .uc-navbar-left{
    flex-wrap: nowrap;
    gap: 0.9rem !important;
  }
  .header-profile{
    gap: 0;
  }

  .visitor-stats-main {
    font-size: 0.9rem;
    padding: 6px 12px;
  }

  .visitor-stats-main .visitor-total {
    font-size: 1rem;
  }

  .visitor-stats-main .visitor-page {
    font-size: 0.9rem;
  }

}

@media(max-width: 1199.2px){
  .visitor-stats-main {
    padding: 6px 0.1px;
  }
  .uc-logo a {
    gap: 0;
  }
  .visitor-stats-main .visitor-total{
    font-size: 1.2rem;
  }
  .visitor-stats-main .visitor-page{
    font-size: 1.2rem;
  }

  .scrolling-text {
  /* overflow: hidden; */
  white-space: nowrap;
  box-sizing: border-box;
  animation: scrollText 8s linear infinite;
  font-weight: 600;
  color: rgb(191, 26, 8);
  font-size: 1rem;
  padding: 2px 0;
  max-width: 100%;
}

@keyframes scrollText {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}
}