/* Biru tua custom untuk sidebar dan navbar */
.bg-primary,
.navbar.bg-primary,
.offcanvas.text-bg-primary,
.accordion-item.bg-primary,
.accordion-button.bg-primary {
  background-color: #0d1a4a !important; /* biru tua */
}
h1 {
  font-weight: 600;
}

.text-primary {
  color: #0d1a4a !important;
}
/* Styling untuk judul sidebar */
.offcanvas-title {
  font-size: 1.6rem; /* Membesarkan tulisan "Menu" */
  font-weight: bold; /* Tebalkan tulisannya */
  letter-spacing: 1px; /* Jarak antar huruf sedikit lebih longgar */
}

/* Styling untuk link menu */
.offcanvas-body .nav-link {
  font-size: 1.2rem; /* Perbesar font menu */
  margin-bottom: 10px; /* Kasih jarak antar menu */
  transition: 0.3s; /* Animasi halus saat hover */
}

/* Efek saat cursor diarahkan ke menu */
.offcanvas-body .nav-link:hover {
  background-color: rgba(34, 4, 4, 0.2); /* sedikit highlight */
  border-radius: 5px; /* sudut tumpul */
  padding-left: 10px; /* geser sedikit ke kanan saat hover */
}
h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 4px;
  background-color: #004aad; /* warna biru garis bawah */
  border-radius: 2px;
}

.info-item h5 {
  color: #004aad;
}

.info-item ul {
  border-top: 1px solid #ddd;
  margin-top: 10px;
  padding-top: 10px;
}

.info-item ul li {
  border-bottom: 1px solid #a5ad32e5;
  padding: 5px 0;
  font-size: 0.9rem;
  color: #161616;
}

.info-item ul li:last-child {
  border-bottom: none;
}

.btn-search {
  color: white;
  background: linear-gradient(90deg, #004aad, #0d1a4a); /* gradasi biru */
  border: none;
  transition: 0.3s;
}

.btn-search:hover {
  background: linear-gradient(
    90deg,
    #003a8c,
    #0d1a4a
  ); /* warna sedikit lebih gelap saat hover */
}
.list-group-item.active {
  background-color: #0d1a4a;
  border-color: #0d1a4a;
}
.list-group-item {
  transition: 0.2s ease;
  border-radius: 6px;
  margin-bottom: 4px;
}
.list-group-item:hover {
  background-color: #f3f0ff;
  transform: translateX(4px);
}
/* Styles untuk sidebar tabel (Kolom 4) */
.sidebar-table .table {
  margin-bottom: 0;
}
.visitor-box {
  background: #efefef;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
.visitor-title {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 8px;
}
.visitor-count {
  display: inline-block;
  background: #fff;
  padding: 8px 18px;
  font-weight: 700;
  font-size: 1.25rem;
  border-radius: 6px;
  letter-spacing: 2px;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.04);
}
.panel-row td {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 6px;
  margin-bottom: 8px;
}
.panel-row td .small-link {
  font-size: 0.85rem;
  opacity: 0.9;
  margin-top: 4px;
}
.panel-yellow td {
  background: #f6c23e;
  color: #222;
}
.panel-teal td {
  background: #17a2b8;
  color: #fff;
}
.panel-green td {
  background: #28a745;
  color: #fff;
}
.panel-blue td {
  background: #0d6efd;
  color: #fff;
}
.panel-gray td {
  background: #6c757d;
  color: #fff;
}
.panel-dark td {
  background: #343a40;
  color: #fff;
}
.panel-red td {
  background: #d9534f;
  color: #fff;
}

@media (max-width: 767px) {
  .visitor-count {
    font-size: 1rem;
    padding: 6px 12px;
  }
  .panel-row td {
    margin-bottom: 10px;
    flex-direction: column;
    align-items: flex-start;
  }
  .panel-row td i {
    margin-bottom: 6px;
  }
}

/* Responsive scaling for visitor counter */
.visitor-count {
  font-size: clamp(1rem, 2.3vw, 1.25rem);
}

/* Modern, more-visible headers for h4 list-group headers */
h4.list-group-item.active {
  background: linear-gradient(90deg, #0d1a4a 0%, #003a8c 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(13, 26, 74, 0.18);
  padding: 10px 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

h4.list-group-item.active .bi {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.05rem;
}

h4.list-group-item.active:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(13, 26, 74, 0.22);
}

@media (max-width: 575px) {
  h4.list-group-item.active {
    font-size: 1rem;
    padding: 10px 12px;
    border-radius: 8px;
  }
}

/* Product grid (static, non-carousel) styles */
.sec-berita {
  background: #fff;
}
.sec-berita h3 {
  letter-spacing: 1px;
  font-weight: 800;
}
.products-row .product-card {
  border: none;
}
.product-card .card-img-top {
  width: 100%;
  height: 250px;
  object-fit: cover;
}
.product-card .card-body {
  padding-top: 8px;
  padding-bottom: 8px;
}
.product-title {
  font-size: 0.85rem;
  height: 40px;
  overflow: hidden;
  margin-bottom: 6px;
}
.price {
  font-weight: 700;
}
.badge-custom { /* removed - badges were removed from HTML */ }

@media (min-width: 1200px) {
  .product-card .card-img-top {
    height: 250px;
  }
}

@media (max-width: 576px) {
  .product-card .card-img-top {
    height: 180px;
  }
}
