/* ==========================================================================
   Global Styles
   ========================================================================== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Fustat", sans-serif;
}

main.container-fluid {
  width: 100%;
  margin: 0;
  padding: 0;
}

/* ==========================================================================
   Layout & Map
   ========================================================================== */
#map {
  height: 500px;
}

#tree {
  width: 100%;
  height: 100vh;
}

.profil {
  background-image: url();
}

/* SECTION SPACING */
.section {
  padding: 48px 0;
}

.section-sm {
  padding: 30px 0;
}

.section-lg {
  padding: 100px 0;
}

section.profil-bg {
  min-height: 600px;
}

/* CONTAINER FULL WIDTH */
.container-fluid-edge {
  padding-left: 0;
  padding-right: 0;
}

/* TEXT CENTERING HELPER */
.text-center-sm {
  text-align: center;
}

@media (min-width: 768px) {
  .text-center-sm {
    text-align: left;
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  color: #212529;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
} /* Page Title */
h2 {
  font-size: 2rem;
} /* Section Title */
h3 {
  font-size: 1.5rem;
} /* Subsection */

p {
  font-size: 1rem;
  color: #444;
  line-height: 1.7;
  margin-bottom: 1rem;
}

a {
  color: #0d6efd;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.profil-bg {
  position: relative;
  z-index: 0;
  background: url("/img/background-1.jpeg") no-repeat center center / cover;
  overflow: hidden;
}

.profil-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.185); /* overlay gelap */
  z-index: 1;
}

/* .profil-bg::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 100px; /* lebih tinggi untuk gradasi halus */
/* background: linear-gradient(
    to top,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 255, 255, 0.5) 40%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0) 60%
  );
  z-index: 2;
} */

.profil-bg .container {
  position: relative;
  z-index: 3;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
navbar {
  background-color: white;
}

.navbar-nav {
  padding: 0 48px;
}

.nav-item {
  font-size: 12px;
  margin: 0 12px;
  font-weight: 500;
}

li a {
  font-size: 16px;
}

/* ==========================================================================
   Dropdown Menu Behavior
   ========================================================================== */

/* Nonaktifkan klik pada dropdown (khusus untuk UX hover) */
.navbar-nav .dropdown-toggle {
  cursor: pointer;
}

/* Dropdown muncul saat hover */
.nav-item.dropdown:hover .dropdown-menu {
  display: block;
  margin-top: 0;
}

/* Dropdown box besar & shadow */
.custom-dropdown {
  width: 320px;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  margin-top: 10px; /* Jarak dari navbar */
}

/* Judul menu besar */
.dropdown-item.large-item {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.25rem 0;
  color: #212529;
  text-decoration: none;
}

.dropdown-item.large-item:hover {
  background-color: #f8f9fa;
}

/* Label deskripsi kecil di bawah item */
.dropdown-item .item-desc {
  font-size: 0.8rem;
  color: #6c757d;
  margin-top: 2px;
}

/* Hindari flicker dan pastikan posisi konsisten */
/* .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 250px;
  height: 280px;
  text-align: center;
  padding: 1rem;
  margin-top: 0;
  background-color: white;
  border: 1px solid #ddd;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  box-sizing: border-box;
  z-index: 1000;
} */

/* Dropdown item */
/* .dropdown-item {text-align: left !important;cursor: pointer;padding: 0.2rem 1rem;} */

/* Grid isi dropdown: 1 kolom */
/* .dropdown-grid {display: grid;grid-template-columns: 1fr;gap: 0.5rem;height: 100%;overflow-y: auto;} */

/* ==========================================================================
   Kategori Sidebar (List di Kiri Map)
   ========================================================================== */
.row .col-md-4 ul li a {
  font-size: 18px;
  cursor: pointer;
}

/* ==========================================================================
   Tampilan Node (struktur data pohon atau sejenisnya)
   ========================================================================== */
.boc-node {
  background-color: white !important;
  color: black !important;
  border: 1px solid #ccc !important;
}

.boc-node .field_0,
.boc-node .field_1 {
  color: black !important;
}

.boc-node img {
  object-fit: cover;
  height: 100px;
}

/* ==========================================================================
   Input Form
   ========================================================================== */

input.form-control::placeholder {
  color: #aaa;
  font-size: 16px;
}

.search-input {
  background: linear-gradient(
    270deg,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.2)
  );
  backdrop-filter: blur(6px);
  transition: background 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-input:hover {
  background: linear-gradient(
    270deg,
    rgba(164, 214, 231, 0.4),
    rgba(200, 200, 200, 0.4)
  );
  animation: gradient-move 4s ease infinite;
  background-size: 400% 400%;
  box-shadow: 0 0 8px rgba(200, 200, 200, 0.3);
}

@keyframes gradient-move {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.btn-login {
  background: linear-gradient(
    270deg,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.2)
  );
  backdrop-filter: blur(6px);
  transition: background 0.3s ease, box-shadow 0.3s ease;
  /* border: 2px solid rgba(233, 233, 233, 0.9); */
  border-style: dashed;
}

.btn-login:hover {
  background: linear-gradient(
    270deg,
    rgba(137, 206, 230, 0.4),
    rgba(200, 200, 200, 0.4)
  );
  animation: color-move 4s ease infinite;
  background-size: 400% 400%;
  box-shadow: 0 0 8px rgba(200, 200, 200, 0.3);
}

@keyframes color-move {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Org Chart CSS */

.chart-wrapper {
  overflow-x: auto;
  padding: 2rem 0;
}

svg {
  display: block;
  margin: 0 auto;
}

.org-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 5px;
  padding: 8px 4px;
  background-color: #fff;
  width: 135px;
  height: 210px;
  text-align: center;
  cursor: pointer;
}

.card img {
  width: 100%;
  height: 125px;
  object-fit: cover;
  margin-bottom: 4px;
  border-radius: 0;
}

.card-jabatan {
  font-size: 14px !important;
  font-weight: bold;
  color: #333;
}

.card-name {
  font-size: 12px !important;
  color: #555;
}

.link {
  fill: none;
  stroke: #000;
  stroke-width: 2px;
}

.node foreignObject {
  overflow: visible;
}

/* chart wrapper */
.chart-wrapper{
  padding: 0 0 !important;
}
