:root {
    --insp-primary: #7C191E;    /* Merah Maroon Elegan */
    --insp-primary-dark: #5A1115; /* Merah Maroon Lebih Gelap (untuk hover/footer) */
    --insp-gold: #C5A059;       /* Emas Lembut */
    --insp-gold-light: #DFCA9B; /* Emas Lebih Terang */
    --insp-text-light: #F0F0F0; /* Putih Lembut untuk teks di atas warna gelap */
}

/* TOPBAR */
.ppid-topbar {
  min-height: 36px;
  background: #C5A059;
  color: #fff;
  display: flex;
  align-items: center;
  font-size: 13px;
  transition: transform 0.3s ease;
}
/* isi topbar */
.ppid-topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap; /* 🔥 WAJIB */
}

.ppid-topbar a {
  color: #dbe4ee;
  text-decoration: none;
  white-space: nowrap;
}

.ppid-topbar a:hover {
  color: #ffc107;
}

/* ===============================
   TOPBAR MOBILE FIX
================================ */
@media (max-width: 576px) {
  .ppid-topbar {
    font-size: 12px;
    padding: 6px 0;
  }

  .ppid-topbar .container {
    flex-direction: column; /* 🔥 TIDAK BERTUMPUK */
    align-items: center;
    text-align: center;
    gap: 4px;
  }
}

/* NAVBAR */
.ppid-navbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: #7C191E;
}

/* NAV LINK EFFECT */
.ppid-navbar .nav-link {
  position: relative;
  color: #ffffffcc;
  padding: 8px 14px;
}
.nav-link {
  color: #ffc107;
}

.ppid-navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #1c55a9, #ffc107);
  transform: translateX(-50%);
  transition: 0.25s;
}

.ppid-navbar .nav-link:hover::after,
.ppid-navbar .nav-link.active::after {
  width: 70%;
  color: #ffc107;
}

.ppid-navbar .nav-link.active {
  color: #ffde59;
  font-weight: 600;
}
.ppid-navbar .navbar-nav > .nav-item {
  margin-left: 10px;
  margin-right: 10px;
}
@media (max-width: 991px) {
  .ppid-navbar .navbar-nav .nav-link {
    padding: 5px 10px;
    margin-bottom: 6px;
    color: #ffde59;
  }
}
/* ===============================
   DROPDOWN HOVER (DESKTOP ONLY)
================================ */
@media (min-width: 992px) {
  .ppid-navbar .dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
    animation: dropdownFade 0.25s ease;
    color: #ffde59;
  }

  .ppid-navbar .dropdown-menu {
    margin-top: 0;
  }
}

/* Animasi halus */
@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ===============================
   FOOTER
================================ */
.ppid-footer {
  background-color: #5A1115; /* Warna abu-abu sangat muda yang bersih */
  border-top: 1px solid #eaeaea;
  position: relative;
}

/* Memperbaiki warna Teks Muted Bootstrap agar terang di BG Biru */
.ppid-footer .text-muted {
  color: rgba(255, 255, 255, 0.75) !important; /* Putih transparan */
}

.ppid-footer .bi {
  color: #C5A059 !important;
}
/* Memperbaiki warna Judul (fw-bold) */
.ppid-footer h5.text-dark,
.ppid-footer h6.text-dark {
  color: #ffffff !important; /* Menjadi Putih */
}
.footer-link {
  color: #6c757d;
  text-decoration: none;
  transition:
    color 0.3s ease,
    padding-left 0.3s ease;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.footer-link:hover {
  color: #C5A059; /* Warna biru primary Bootstrap */
  padding-left: 5px; /* Efek geser sedikit ke kanan saat disorot */
}

.ppid-footer a {
  /* color: var(--bs-primary); */
  color: white;
  text-decoration: none;
}

.ppid-footer a:hover {
  text-decoration: underline;
}

.ppid-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background-color: #ffffff;
  color: #6c757d;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}
.ppid-social:hover {
  color: #C5A059;
  /* transform: translateY(-2px); */
  /* color: #ffffff; */
  transform: translateY(-3px); /* Efek melayang */
  box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
}
/* BACK TO TOP BUTTON */
#ppidBackToTop {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background-color: #82828260;
  color: #ffffff;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  z-index: 999;
}

#ppidBackToTop:hover {
  transform: translateY(-3px);
  background-color: #4361ee;
}
/* ===============================
   FOOTER
================================ */

/* BREADCRUMBS */
.ppid-breadcrumbs {
  background: linear-gradient(135deg, #f8fafc, #eef2ff);
  padding: 70px 0 40px;
  margin-top: 0;
  animation: breadcrumbFade 0.6s ease both;
  text-align: center;
}
.ppid-breadcrumbs-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #21242c;
  animation: slideDown 0.5s ease both;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.ppid-breadcrumbs-list {
  list-style: none;
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 14px;
  color: #64748b;
  animation: fadeUp 0.5s ease both;
}

.ppid-breadcrumbs-list li::before {
  content: "›";
  margin: 0 6px;
  color: #94a3b8;
}

.ppid-breadcrumbs-list li:first-child::before {
  content: "";
}

.ppid-breadcrumbs h1 {
  font-size: 28px;
  font-weight: 700;
}
.ppid-breadcrumbs-list a {
  color: #475569;
  text-decoration: none;
}

.ppid-breadcrumbs-list a:hover {
  color: #4f46e5;
  /* text-decoration: underline; */
}
.ppid-breadcrumbs-list .active {
  font-weight: 600;
  color: #0f172a;
}
.ppid-breadcrumbs ol {
  display: flex;
  justify-content: center;
  gap: 8px;
  list-style: none;
  padding: 0;
}
/* ===============================
   ANIMATION
================================ */
@keyframes breadcrumbFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* .ppid-breadcrumbs li::before {
  content: "›";
  margin: 0 6px;
} */

/* .ppid-breadcrumbs li:first-child::before {
  content: "";
} */

/* ===============================
   HERO PPID
================================ */

.ppid-hero {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, #4e46e5dc, #6366f1);
  color: #fff;
}

.ppid-hero h1 {
  font-weight: 700;
  margin-bottom: 16px;
}

.ppid-hero p {
  max-width: 720px;
  margin: auto;
  opacity: 0.9;
}

.ppid-hero-actions .btn {
  border-radius: 30px;
  padding: 10px 26px;
}

/* ===============================
   QUICK ACCESS
================================ */

.ppid-quick-access {
  padding: 70px 0;
  background: #f8fafc;
}

.ppid-card {
  background: white;
  padding: 30px;
  border-radius: 16px;
  text-align: center;
  height: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  transition: 0.25s;
}

.ppid-card i {
  font-size: 32px;
  color: #4f46e5;
}

.ppid-card h5 {
  margin-top: 12px;
  font-weight: 600;
}

.ppid-card:hover {
  transform: translateY(-6px);
}

/* ===============================
   PROFIL PPID DI SINI
================================ */

/* wrapper halaman PPID */
.ppid-layout {
  min-height: calc(100vh - 200px); /* header + footer */
}

/* page header */
.ppid-page-header {
  border-left: 4px solid var(--bs-primary);
  padding-left: 1rem;
}

/* card interaction ringan */
.card {
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
}

/* Berkala */
:root {
  --ppid-primary: #4361ee;
  --ppid-bg: #f8f9fc;
  --ppid-text: #2c3e50;
  --ppid-muted: #6c757d;
}

/* ==============================
   CONTAINER
============================== */

.ppid-container {
  background: var(--ppid-bg);
  min-height: 100vh;
  padding: 25px 0 40px 0;
}

/* ==============================
   HEADER CARD
============================== */

.header-card {
  background: linear-gradient(135deg, #ffffff 0%, #eef1ff 100%);
  border-radius: 18px;
  border-left: 6px solid var(--ppid-primary) !important;
  transition: 0.3s ease;
}

.header-card:hover {
  transform: translateY(-2px);
}

/* ==============================
   ICON SHAPE
============================== */

.icon-shape {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 12px;
  font-size: 18px;
}

/* ==============================
   STAT CARD
============================== */

.stat-card {
  border-radius: 14px;
  transition: all 0.3s ease;
  border: none;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08) !important;
}

.stat-card h2 {
  font-size: 28px;
}

.stat-card .card-body {
  padding: 22px;
}

/* ==============================
   ACCORDION
============================== */

.accordion-item {
  border-radius: 14px !important;
  overflow: hidden;
  border: none !important;
  margin-bottom: 15px;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.05);
}

.accordion-button {
  padding: 1.15rem 1.25rem;
  font-weight: 600;
  background: #fff;
  transition: 0.25s ease;
}

.accordion-button:hover {
  background: #f7f9ff;
}

.accordion-button:not(.collapsed) {
  background: #eef1ff;
  color: var(--ppid-primary);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
}

.accordion-button::after {
  background-size: 1rem;
  transition: transform 0.3s ease;
}

/* ==============================
   BADGE FILE COUNT
============================== */

.badge {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* ==============================
   TABLE
============================== */

.table {
  margin-bottom: 0;
}

.table thead th {
  background: #f8f9fa;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1px;
  color: #6c757d;
  border-top: none;
  border-bottom: 1px solid #e9ecef;
}

.table tbody tr {
  transition: 0.15s ease;
}

.table tbody tr:hover {
  background: #f9fbff;
}

.table td {
  vertical-align: middle;
}

/* ==============================
   BUTTON VIEW
============================== */

.btn-view {
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 13px;
  transition: 0.2s ease;
}

.btn-view:hover {
  background: var(--ppid-primary);
  color: #fff;
  border-color: var(--ppid-primary);
}

/* ==============================
   EMPTY STATE
============================== */

.empty-state {
  text-align: center;
  padding: 40px 20px;
}

.empty-state img {
  width: 120px;
  opacity: 0.5;
}

.empty-state p {
  margin-top: 12px;
  color: var(--ppid-muted);
}

/* ==============================
   RESPONSIVE
============================== */

@media (max-width: 992px) {
  .stat-card h2 {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .header-card .card-body {
    padding: 20px;
  }

  .accordion-button {
    padding: 14px;
  }
}

@media (max-width: 576px) {
  .ppid-container {
    padding: 10px 0 30px 0;
  }

  .icon-shape {
    width: 42px;
    height: 42px;
  }

  .stat-card .card-body {
    text-align: center;
  }

  .table thead {
    font-size: 10px;
  }
}

/* Detial DOk */
/* Membuat sidebar kanan mengikuti scroll (Sticky Top) */
@media (min-width: 992px) {
  .sticky-sidebar {
    position: sticky;
    top: 2rem; /* Jarak dari atas layar saat menempel */
    z-index: 10;
  }
}

/* HOME */

.ppid-card-modern {
  border-radius: 16px;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

.ppid-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08) !important;
  border-color: rgba(0, 0, 0, 0.1);
}

.ppid-icon-box {
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.ppid-card-modern:hover .ppid-icon-box {
  transform: scale(1.1);
}

/*  */
/* =======================================
   HERO SECTION MODERN PPID
======================================= */
.hero-ppid-modern {
  background: linear-gradient(to bottom, var(--insp-primary), var(--insp-primary-dark)) !important;
  position: relative;
  padding: 100px 0 80px 0;
  overflow: hidden;
  color: white;
}

.informasi-section {
  padding-top: 30px;
}

/* Lingkaran cahaya hiasan di background */
.hero-ppid-modern::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.3) 0%,
    rgba(0, 0, 0, 0) 70%
  );
  border-radius: 50%;
  z-index: 0;
}

/* Glassmorphism Card untuk 4 Formulir */
.glass-form-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 25px 20px;
  text-align: center;
  transition: all 0.4s ease;
  height: 100%;
  position: relative;
  z-index: 2;
}

.glass-form-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.glass-icon-wrapper {
  width: 65px;
  height: 65px;
  margin: 0 auto 15px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.8rem;
  transition: transform 0.3s;
}

.glass-form-card:hover .glass-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
}

/* Warna unik per ikon */
.icon-info {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}
.icon-warning {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}
.icon-danger {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}
.icon-success {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.counter-number {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0;
  line-height: 1;
}

/* Bilah Pencarian Modern dengan Glassmorphism */
.search-bar-modern {
  background: rgba(255, 255, 255, 0.1); /* Transparansi putih tipis */
  backdrop-filter: blur(10px); /* Efek kaca buram */
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2); /* Border transparan tipis */
  border-radius: 50px; /* Pinggiran bulat penuh */
  padding: 10px;
}

.search-bar-modern .form-control {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.1rem;
  padding-left: 20px;
}

.search-bar-modern .form-control::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.search-bar-modern .form-control:focus {
  box-shadow: none; /* Hilangkan box shadow default */
  border: none;
  background: transparent;
  color: white;
}

.search-bar-modern .btn {
  border-radius: 50px;
  padding: 10px 25px;
  font-weight: 600;
}

/* =======================================
  VISI MISI PPID
======================================= */
.ppid-header-badge {
  letter-spacing: 1px;
  font-weight: 600;
}

.card-hover-modern {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.card-hover-modern:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08) !important;
  border-color: rgba(13, 110, 253, 0.2);
}

/* Desain Visi */
.visi-box {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.visi-quote-icon {
  position: absolute;
  top: -20px;
  left: -10px;
  font-size: 8rem;
  color: rgba(13, 110, 253, 0.05);
  z-index: -1;
  transform: rotate(-10deg);
}
.visi-text {
  font-size: 1.25rem;
  line-height: 1.8;
  color: #2b3452;
}

/* Desain Misi */
.misi-item {
  transition: all 0.3s ease;
  border-radius: 12px;
  border: 1px solid transparent;
}
.misi-item:hover {
  background-color: #f8f9fa;
  border-color: rgba(13, 110, 253, 0.1);
  transform: translateX(8px);
}
.misi-icon-box {
  width: 45px;
  height: 45px;
  min-width: 45px;
  background-color: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}
.misi-item:hover .misi-icon-box {
  transform: scale(1.1) rotate(5deg);
  background-color: #0d6efd;
  color: white;
}

/* Animasi Load */
.fade-up-element {
  animation: fadeUpAnim 0.6s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}
.delay-1 {
  animation-delay: 0.1s;
}
.delay-2 {
  animation-delay: 0.3s;
}

@keyframes fadeUpAnim {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   TUGAS DAN FUNGSI PPID STYLES
========================================================= */

.ppid-header-badge {
  letter-spacing: 1px;
  font-weight: 600;
}

/* Efek Hover Universal untuk Card */
.card-hover-modern {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.card-hover-modern:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08) !important;
  border-color: rgba(13, 110, 253, 0.2);
}

/* --- Desain Card Tugas Utama --- */
.tugas-box {
  background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
  color: white;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.tugas-bg-icon {
  position: absolute;
  right: -20px;
  bottom: -30px;
  font-size: 12rem;
  color: rgba(255, 255, 255, 0.05);
  z-index: -1;
  transform: rotate(15deg);
}

.tugas-text {
  font-size: 1.15rem;
  line-height: 1.8;
  font-weight: 300;
}

/* --- Desain List Rincian Fungsi --- */
.fungsi-item {
  transition: all 0.3s ease;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.03);
  background: #ffffff;
}

.fungsi-item:hover {
  background-color: #f8f9fa;
  border-color: rgba(13, 110, 253, 0.15);
  transform: translateX(8px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.fungsi-number {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background-color: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.fungsi-item:hover .fungsi-number {
  background-color: #0d6efd;
  color: white;
}

/* --- Animasi Fade Up (Muncul Halus) --- */
.fade-up-element {
  animation: fadeUpAnim 0.6s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

.delay-1 {
  animation-delay: 0.1s;
}
.delay-2 {
  animation-delay: 0.3s;
}

@keyframes fadeUpAnim {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   STRUKTUR ORGANISASI PPID STYLES
========================================================= */

/* Desain Card Pejabat */
.org-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  z-index: 1;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  height: 100%;
}

.org-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(13, 110, 253, 0.1) !important;
  border-color: rgba(13, 110, 253, 0.3);
}

/* Lingkaran Foto/Avatar Pejabat */
.org-avatar {
  width: 100px;
  height: 100px;
  margin: 0 auto 1.25rem auto;
  background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #adb5bd;
  border: 4px solid #ffffff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

/* Gambar asli jika ada foto */
.org-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Badge Hierarki (Warna berbeda tiap level) */
.tier-1 .org-badge {
  background-color: #0d6efd;
  color: white;
} /* Pembina */
.tier-2 .org-badge {
  background-color: #198754;
  color: white;
} /* Ketua */
.tier-3 .org-badge {
  background-color: #6c757d;
  color: white;
} /* Anggota/Bidang */

/* Garis Penghubung (Hanya tampil di Desktop) */
@media (min-width: 992px) {
  .org-connector-down::after {
    content: "";
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 30px;
    background-color: rgba(13, 110, 253, 0.2);
  }
}

/* =====================================
   MODERN SEARCH BAR UI PADA HALAMAN INFORMASI PUBLIK
===================================== */
.search-box-modern {
  position: relative;
  background: #ffffff;
  border-radius: 50px;
  padding: 6px 15px;
  display: flex;
  align-items: center;
  border: 2px solid transparent;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Efek saat diklik / mulai mengetik */
.search-box-modern:focus-within {
  border-color: rgba(13, 110, 253, 0.3);
  box-shadow: 0 10px 25px rgba(13, 110, 253, 0.15);
  transform: translateY(-2px);
}

.search-box-modern .search-icon {
  color: #adb5bd;
  font-size: 1.2rem;
  margin-left: 10px;
  margin-right: 15px;
  transition: color 0.3s ease;
}

.search-box-modern:focus-within .search-icon {
  color: #0d6efd; /* Ikon berubah biru saat aktif */
}

.search-box-modern .form-control {
  border: none;
  box-shadow: none;
  font-size: 1.1rem;
  padding: 12px 0;
  background: transparent;
}

.search-box-modern .form-control:focus {
  outline: none;
}

/* Tombol Silang (X) Dinamis */
.btn-clear-search {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0;
  transform: scale(0.8);
  visibility: hidden;
}

/* Class ini ditambahkan oleh JS agar tombol X muncul dengan animasi */
.btn-clear-search.show {
  opacity: 1;
  transform: scale(1);
  visibility: visible;
}

.btn-clear-search:hover {
  background: #dc3545;
  color: #ffffff;
}
