/* Mengimpor Font Poppins dari Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

/* Menerapkan font ke seluruh halaman */
body {
  font-family: "Poppins", sans-serif;
  background-color: #f8f9fa; /* Warna background abu-abu sangat muda yang nyaman di mata */
  color: #333;
}

/* Hapus style navbar lama jika ada, atau biarkan default dari bootstrap */

.navbar-brand {
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Modifikasi Card agar ujungnya membulat dan bayangannya halus */
.card-custom {
  border: none;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Bayangan sangat tipis, tidak bikin sakit mata */
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* Efek melayang saat card disentuh mouse (Hover) */
.card-custom:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

/* Membulatkan tombol */
.btn {
  border-radius: 8px;
  font-weight: 500;
  padding: 0.6rem 1.5rem;
}

/* Jarak ekstra untuk section agar lega (Whitespace) */
.section-padding {
  padding-top: 80px;
  padding-bottom: 80px;
}

/* Sidebar Layout Styles */
#wrapper {
  overflow-x: hidden;
}

#sidebar-wrapper {
  min-height: 100vh;
  margin-left: -17rem;
  transition: margin 0.25s ease-out;
  width: 17rem;
  z-index: 1000;
  background-color: #4b5efc; /* Bright modern blue */
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

/* Sidebar Scrollbar */
.sidebar-body::-webkit-scrollbar {
  width: 5px;
}
.sidebar-body::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar-body::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}
.sidebar-body::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

#sidebar-wrapper .sidebar-heading {
  height: 76px;
  border-bottom-color: rgba(255, 255, 255, 0.05) !important;
}

#sidebar-wrapper .nav-heading {
  margin-bottom: 0.5rem;
}

#sidebar-wrapper .nav-link {
  color: #8a99af;
  padding: 0.75rem 1.25rem;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border-radius: 8px;
  margin: 0.2rem 1rem;
}

#sidebar-wrapper .nav-link i {
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

#sidebar-wrapper .nav-link:hover,
#sidebar-wrapper .nav-link.active {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.15);
  transform: none;
}

#sidebar-wrapper .nav-link:hover i,
#sidebar-wrapper .nav-link.active i {
  color: #ffffff;
}

#page-content-wrapper {
  min-width: 0;
  width: 100%;
}

#wrapper.toggled #sidebar-wrapper {
  margin-left: 0;
}

@media (min-width: 992px) {
  #sidebar-wrapper {
    margin-left: 0;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
  }

  #page-content-wrapper {
    min-width: 0;
    width: calc(100% - 17rem);
    margin-left: 17rem;
    transition: margin 0.25s ease-out, width 0.25s ease-out;
  }

  #wrapper.toggled #sidebar-wrapper {
    margin-left: -17rem;
  }
  
  #wrapper.toggled #page-content-wrapper {
    margin-left: 0;
    width: 100%;
  }
}

/* Bottom Nav Mobile */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #ffffff;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.08);
  z-index: 1030;
  display: flex;
  justify-content: flex-start;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  padding: 0.8rem 0.5rem;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.bottom-nav::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Opera */
}

.bottom-nav .nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.7rem;
  color: #8a99af;
  text-decoration: none;
  font-weight: 500;
  flex: 0 0 auto;
  min-width: 72px; /* Ensure links have enough space */
  text-align: center;
  gap: 4px;
}

.bottom-nav .nav-link i {
  font-size: 1.4rem;
  transition: all 0.3s ease;
}

.bottom-nav .nav-link.active {
  color: #4b5efc;
}

.bottom-nav .nav-link.active i {
  transform: translateY(-3px);
  color: #4b5efc;
}

@media (max-width: 991.98px) {
  #page-content-wrapper .container-fluid {
    padding-bottom: 90px !important;
  }
  #sidebar-wrapper {
    display: none !important;
  }
}

/* Horizontal Scroll Container for News Cards */
.horizontal-scroll-container {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: #c1c1c1 #f1f1f1;
}

.horizontal-scroll-container > div {
  scroll-snap-align: start;
}

.horizontal-scroll-container::-webkit-scrollbar {
  height: 8px;
}
.horizontal-scroll-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}
.horizontal-scroll-container::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 10px;
}
.horizontal-scroll-container::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

