:root {
  --brand: #f10302;
  --secondary-brand: #d80303ff;
  --accent: #10b1eb;
  --secondary-accent: #fbad18;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --bg-soft: #f8fafc;
  --bg-secondary: #57256c;
  --radius: 1rem;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --navH: 120px;
}
body {
  color: var(--text-main);
  background: #362525ff;
}

.container {
  max-width: 1200px;
}

.bg-body {
  background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
}
a {
  color: var(--brand);
  text-decoration: none !important;
  font-weight: 400;
  transition: color 1s ease-in-out !important;
}

a:hover {
  color: var(--secondary-brand);
}

.text-primary {
  color: var(--brand) !important;
}
.text-accent {
  color: var(--accent) !important;
}

.text-center h2.fw-bold::after {
  content: "";
  display: block;

  width: 100px;
  height: 4px;
  background-color: var(--accent);

  margin-top: 10px;
  margin-left: auto;
  margin-right: auto;

  border-radius: 2px;
}

h1.fw-bold::after {
  content: "";
  display: block;

  width: 100px;
  height: 4px;
  background-color: var(--secondary-accent);

  margin-top: 10px;
  margin-left: 0;
  margin-right: auto;

  border-radius: 2px;
}

.navbar-glass {
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  /* border-bottom: 1px solid rgba(2, 6, 23, 0.06) !important; */
  box-shadow: 0 6px 24px rgba(2, 6, 23, 0.06);
  border-bottom: 0.2rem solid var(--accent);
}

/* Nav item */
.navbar .nav-link {
  font-weight: 600;
  font-size: 1.3rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #000;
}
.navbar .nav-link .bi {
  opacity: 0.9;
}

.navbar .nav-link:hover {
  color: var(--secondary-accent);
}

/* Dropdown style */
.navbar .dropdown-menu {
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.12);
  padding: 0.5rem;
}
.navbar .dropdown-item {
  font-weight: 600;
  font-size: 1.3rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
}
.navbar .dropdown-item:hover {
  background: rgba(13, 110, 253, 0.08);
}

.brand-logo {
  height: 86px;
  width: auto;
  display: block;
  object-fit: contain;
}

.section {
  padding: 80px 0;
}
.section-sm {
  padding: 56px 0;
}

.section,
.section-sm {
  position: relative;
}

/* Card Style */
.card {
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-clean {
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* Card Header */
.card-clean .card-header {
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  background-clip: padding-box;
  background-color: var(--accent); /* opsional: samakan dengan body */
  color: #fff;
  padding: 1rem 1.25rem; /* spacing rapi */
  border-bottom: 1px solid #e5e7eb; /* garis halus */
}

/* Styling judul */
.card-title {
  margin-bottom: 0.75rem;
}
.card-title {
  float: left;
  font-size: 1.1rem;
  font-weight: 400;
  margin: 0;
}
.text-sm .card-title {
  font-size: 1rem;
}

.card-clean .card-header .card-title,
.card-clean .card-header h3.card-title {
  margin: 0;
  font-weight: 630;
  font-size: 1.3rem;
  color: #fff;
  letter-spacing: 0.3px;
}

/* animasi hover */
.card-hover {
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
  will-change: transform, box-shadow;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.12);
}
.card-hover:active {
  transform: translateY(-1px);
}

.card-hover:hover {
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.12),
    0 0 0 3px rgba(13, 129, 253, 0.08) inset;
}

.card-hover .bi {
  transition: transform 0.25s ease;
}
.card-hover:hover .bi {
  transform: translateY(-2px) rotate(-3deg);
}

/* ===========================
   CARD OUTLINE INFO
   =========================== */

/* Border luar card */
.card.card-outline.card-info,
.card-outline.card-info {
  border: 1px solid var(--accent) !important;
  border-radius: var(--radius);
  box-shadow: none; /* kalau mau tanpa bayangan, opsional */
  margin-bottom: 0.5rem;
}

/* Header card outline info */
.card.card-outline.card-info > .card-header,
.card-outline.card-info > .card-header {
  background-color: rgba(56, 189, 248, 0.08) !important;
  border-bottom: 1px solid var(--accent);
  color: #0089baff !important;
}

/* Judul di header */
.card.card-outline.card-info > .card-header .card-title,
.card-outline.card-info > .card-header .card-title {
  margin: 0;
  font-weight: 630;
  font-size: 1.3rem;
  color: #fff;
  letter-spacing: 0.3px;
}

@media (prefers-reduced-motion: reduce) {
  .card-hover,
  .card-hover .bi {
    transition: none;
  }
}

.bg-soft {
  background: var(--bg-soft);
}
.bg-accent {
  background: var(--accent);
  color: var(--bg-soft);
}
.bg-accent p {
  color: var(--bg-soft);
}
.bg-primary {
  background: var(--brand) !important;
}
.bg-secondary {
  background: var(--bg-secondary) !important;
}

.lead-muted {
  color: var(--text-muted);
}
.rounded-2xl {
  border-radius: 1.25rem;
}
.btn-primary {
  background-color: var(--brand) !important;
  border-color: var(--secondary-brand) !important;
  font-weight: bold;
}

.btn-primary:hover {
  background-color: var(--secondary-brand) !important;
  border-color: var(--brand) !important;
}

.btn-primary-blue {
  background-color: #1e4c8f !important;
  border-color: #1e57abff !important;
  font-weight: bold;
}

.btn-primary-blue:hover {
  background-color: #19407bff !important;
  border-color: #1e57abff !important;
}

.btn-outline-primary {
  color: var(--brand) !important;
  border-color: var(--brand) !important;
  background-color: transparent !important;
  font-weight: bold;
}

.btn-outline-primary:hover {
  color: #fff !important; /* Asumsi teks menjadi putih agar kontras */
  background-color: var(--brand) !important;
  border-color: var(--brand) !important;
}

.btn-shadow {
  box-shadow: 0 8px 16px rgba(255, 0, 0, 0.2);
}
.hero-section {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  padding: 80px 0 0 0;
}

.hero-illustration {
  background: radial-gradient(
      60% 60% at 70% 20%,
      rgba(13, 110, 253, 0.12) 0%,
      rgba(13, 110, 253, 0) 60%
    ),
    radial-gradient(
      60% 60% at 20% 70%,
      rgba(25, 135, 84, 0.1) 0%,
      rgba(25, 135, 84, 0) 60%
    );
}
.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.auth-container {
  min-height: 70vh;
}

.object-cover {
  object-fit: cover;
}

/* ====== Hero Image Style ====== */
.img-hero {
  width: 100%;
  max-width: 640px;
  height: auto;
  display: block;
  border-radius: 1rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(2, 6, 23, 0.06);
  background: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}
.img-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(2, 6, 23, 0.1);
}

/* === STYLING LOGO  === */
.footer-logo-slot {
  width: 120px;
  display: inline-flex;
  align-items: center;
}
.footer-logo {
  height: 86px;
  width: auto;
  object-fit: contain;
  display: block;
}

.ornamen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -9999;
  /* opacity: 0.6; */
  pointer-events: none;
  animation: ornamenFloat 10s ease-in-out infinite;
}

@keyframes ornamenFloat {
  0% {
    transform: scale(1) translateY(0);
  }
  50% {
    transform: scale(1.05) translateY(-5px);
  }
  100% {
    transform: scale(1) translateY(0);
  }
}

.ornamen {
  animation: ornamenFloat 10s ease-in-out infinite;
}

.ornamen:hover {
  opacity: 1;
}

/* @media (min-width: 768px) {
  
} */
/* Footer Style */
.bg-blue {
  background-color: #0067bd;

  color: rgba(255, 255, 255, 0.8);

  border-top: none !important;
}

.bg-blue .text-muted {
  color: rgba(255, 255, 255, 0.8) !important;
}

.bg-blue h6 {
  color: #ffffff;
}

.bg-blue a {
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

.bg-blue a:hover {
  color: #ffffff !important;
  text-decoration: underline;
}

.bg-blue .border-bottom {
  border-color: rgba(255, 255, 255, 0.2) !important;
}
.footer-links {
  padding-left: 0;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  color: var(--text-muted);
}
.footer-links a:hover {
  color: var(--secondary-brand);
}

/* Aksen Melayang */
.accent {
  position: absolute;
  z-index: 0;
  opacity: 0.7;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.06));
  animation: floatY 6s ease-in-out infinite;
}
.accent--slow {
  animation-duration: 9s;
}
.accent--fast {
  animation-duration: 4.5s;
}

/* bentuk: bintang (diamond), titik, ring */
.accent-star {
  width: 20px;
  height: 20px;
  background: var(--accent);
  transform: rotate(45deg);
  border-radius: 4px;
  animation-name: floatY, spin;
}
.accent-dot {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
}
.accent-ring {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  box-sizing: border-box;
  border: 3px solid var(--accent);
}

.accent-star2 {
  width: 20px;
  height: 20px;
  background: var(--secondary-accent);
  transform: rotate(45deg);
  border-radius: 4px;
  animation-name: floatY, spin;
}
.accent-dot2 {
  width: 10px;
  height: 10px;
  background: var(--secondary-accent);
  border-radius: 50%;
}
.accent-ring2 {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  box-sizing: border-box;
  border: 3px solid var(--secondary-accent);
}

/* animasi */
@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.ornament-left {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 0;
  pointer-events: none;
}

.ornament-bottom {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: auto;
  z-index: 0;
  pointer-events: none;
}

.section .container,
.section .content-on-top {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .accent {
    animation: none;
  }
}

/* Section Statistik */
.chart-shadow {
  box-shadow: var(--shadow);
  border: 1px solid rgba(2, 6, 23, 0.06);
}
.object-fit-cover {
  object-fit: cover;
}

/* Section Peta */
.map-full {
  width: 100%;
  height: auto;
  display: block;
}

/* Halaman Profile */
/* Section  Tugas Fungsi */
#tugas-fungsi .card-clean ul {
  margin-left: 1rem;
}

/* Section Struktur Organisasi */
#struktur-organisasi .card-clean {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Section Struktur Organisasi */
#struktur-organisasi .card-clean:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.12);
}

/* Toolbar Style */
.search-input-container {
  position: relative;
  width: 100%;
}

.search-input-container .search-icon {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: #6c757d;
  font-size: 0.9rem;
  pointer-events: none;
}

.search-input-container .form-control {
  padding-left: 36px;
}

.search-input-container .form-control::-webkit-search-cancel-button {
  -webkit-appearance: none;
  display: none;
}

/* Disini mulai tambahan css */
/* ukuran logo pada kartu event */
.brand-logo-xl {
  height: 72px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* tombol dropdown */
.event-btn {
  border-radius: 0.9rem;
  box-shadow: 0 12px 28px rgba(253, 13, 13, 0.25);
}

/* menu dropdown: center di bawah tombol + estetika */
.dropdown-menu-center {
  border: none;
  border-radius: 0.85rem;
  box-shadow: 0 22px 48px rgba(2, 6, 23, 0.18);
  padding: 0.5rem;
  min-width: 260px;
}
.dropdown-menu-center .dropdown-item {
  font-weight: 600;
  border-radius: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
}
.dropdown-menu-center .dropdown-item:hover {
  background: rgba(253, 13, 13, 0.08);
}

/* Ukuran ikon gambar setara icon Bootstrap */
.icon-16 {
  width: 1rem; /* ≈16px */
  height: 1rem;
  object-fit: contain;
  display: inline-block;
}
/* Opsional: bentuk bulat/rounded */
.icon-16.rounded {
  border-radius: 0.25rem;
} /* sedikit membulat */
.icon-16.circle {
  border-radius: 999px;
} /* full circle */

/* hormati preferensi reduced motion */
@media (prefers-reduced-motion: reduce) {
  .event-btn {
    box-shadow: none;
  }
}

/* elemen sticky */
.logo-sticky {
  position: -webkit-sticky; /* iOS Safari */
  position: sticky;
  top: calc(var(--navH) + 12px); /* berhenti tepat di bawah navbar */
  z-index: 2; /* di atas chart */
}
.logo-sticky .card-clean {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.logo-sticky.is-stuck .card-clean {
  transform: translateY(0);
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.12);
}

/* Ilustrasi Profil */
.profile-illustration {
  width: 24rem;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  display: inline-block;
}

.profile-illustration-col {
  text-align: center;
}

.no-wrap {
  white-space: nowrap !important;
}

/* Ukuran font & vertical align global untuk semua tabel bootstrap */
.table thead th,
.table tbody td {
  font-size: 0.9rem;
  vertical-align: middle;
  /* tengah secara vertikal */
}

/* Kalau mau berlaku juga ke header/sel DataTables */
table.dataTable thead th,
table.dataTable tbody td {
  font-size: 0.9rem;
  vertical-align: middle;
}

/* Opsional: khusus tabel no-wrap yang sering kamu pakai */
.table.no-wrap thead th,
.table.no-wrap tbody td {
  white-space: nowrap;
}

.card.card-tabs .card-tools {
  margin: 0.3rem 0.5rem;
}
.card.card-outline-tabs .card-tools {
  margin: 0.5rem 0.5rem 0.3rem;
}
.card-header > .card-tools {
  float: right;
  margin-right: -0.625rem;
}
.card-header > .card-tools .input-group,
.card-header > .card-tools .nav,
.card-header > .card-tools .pagination {
  margin-bottom: -0.3rem;
  margin-top: -0.3rem;
}
.card-header > .card-tools [data-toggle="tooltip"] {
  position: relative;
}

/* Mulai Dinamis Media */
/* Ukuran Tablet keatas */
@media (min-width: 992px) {
  .navbar .dropdown:hover .dropdown-menu {
    display: block;
  }
  .img-hero {
    transform: perspective(1200px) rotateY(-4deg) rotateX(1.5deg);
    transform-origin: center right;
  }
  .img-hero:hover {
    transform: perspective(1200px) rotateY(-1deg) rotateX(0) translateY(-2px);
  }
}

/* HP & tablet (≤ 991.98px) */
@media (max-width: 991.98px) {
  .profile-illustration {
    width: 14rem;
  }
  .profile-illustration-col {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  h1.fw-bold::after {
    margin-right: auto;
    margin-left: auto;
  }

  .logo-sticky {
    position: static;
  }
}

.img-hero--cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
}

.hide {
  display: none !important;
}
