/* Dark / Light mode overrides for Material Kit front layout */
:root {
  --gradient-start: #080808;
  --gradient-mid: #454545;
  --gradient-end: #6f6f6f;
}
html {
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}
.floating-theme .dropdown-menu::before,
.floating-theme .dropdown-menu::after {
  display: none !important;
}
.theme-option.active {
  background: rgba(var(--bs-primary-rgb), 0.12) !important;
  color: var(--bs-primary) !important;
  font-weight: 600;
}

.theme-option.active i {
  opacity: 1 !important;
}
/* Main Button */
.theme-btn {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.theme-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 1) !important;
}

/* Dark mode button */
[data-bs-theme="dark"] .theme-btn {
  background: rgba(28, 28, 32, 0.9) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

[data-bs-theme="dark"] .theme-btn:hover {
  background: rgba(40, 40, 44, 1) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Dropdown */
.shadow-modern {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(16px);
  border-radius: 12px !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  padding: 4px;
  margin-top: 6px;
}

[data-bs-theme="dark"] .shadow-modern {
  background: rgba(28, 28, 32, 0.95) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Theme Options */
.theme-option {
  border-radius: 8px !important;
  transition: all 0.15s ease;
  margin: 1px;
  font-weight: 500;
  font-size: 0.875rem;
}

.theme-option:hover {
  background: rgba(var(--bs-primary-rgb), 0.08) !important;
  transform: translateX(2px);
  color: var(--bs-primary) !important;
}

/* Icon */
.theme-icon {
  font-size: 0.85em;
  transition: transform 0.2s ease;
}

.theme-btn:hover .theme-icon {
  transform: scale(1.1) rotate(15deg);
}
#backToTop {
  transition: all 0.3s ease;
}

#backToTop.show {
  opacity: 1 !important;
  visibility: visible !important;
}
.gradient-text {
  font-weight: bold;
  font-size: 3rem;
  background: linear-gradient(
    20deg,
    var(--gradient-start),
    var(--gradient-mid),
    var(--gradient-end)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  user-select: none;
  -webkit-user-select: none;
}
html[data-bs-theme="dark"] {
  --gradient-start: #f9f9fa;
  --gradient-mid: #f9f9faa8;
  --gradient-end: #737373;
  color-scheme: dark;
  background-color: #121212;
}
html[data-bs-theme="dark"] body {
  background-color: #121212 !important;
  color: #e8edf7 !important;
}
html[data-bs-theme="dark"] .bg-gray-100 {
  background-color: #121212 !important;
}
html[data-bs-theme="dark"] .bg-gray-200 {
  background-color: #2c2c2d !important;
}

html[data-bs-theme="dark"] .list-group-item {
  background-image: linear-gradient(195deg, #42424a 0%, #191919 100%);
}
html[data-bs-theme="dark"] .bg-white,
html[data-bs-theme="dark"] .footer,
html[data-bs-theme="dark"] .card,
html[data-bs-theme="dark"] .dropdown-menu,
html[data-bs-theme="dark"] .modal-content,
html[data-bs-theme="dark"] .form-control,
html[data-bs-theme="dark"] .form-select,
html[data-bs-theme="dark"] .input-group-text,
html[data-bs-theme="dark"] .table {
  background-color: #242425 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}
/* Hero Monochrome dengan Aksen Orange */
/* Hero Monochrome Gradient Minimalis */
.hero-monochrome {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #111; /* teks hitam untuk light mode */
  background: linear-gradient(
    135deg,
    #ffffff,
    #a09e9e47,
    #e1e0e0
  ); /* Light mode: lebih terang */
  transition:
    background 0.5s ease,
    color 0.5s ease;
  z-index: 0;
}

.kegiatan-card {
  transition:
    transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1),
    box-shadow 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
  border: 2px solid rgba(0, 0, 0, 0.05) !important;
  background: #fff;
  will-change: transform, box-shadow;
  backface-visibility: hidden;
}

[data-bs-theme="dark"] .kegiatan-card {
  background: #1e1e1f;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.kegiatan-card:hover {
  transform: translateY(-8px) translateZ(0);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12) !important;
}

.kegiatan-card:hover .kegiatan-card-img {
  transform: scale(1.05);
}

/* Dark mode */
[data-bs-theme="dark"] .hero-monochrome {
  background: linear-gradient(
    135deg,
    #000000,
    #222222,
    #444444
  ); /* Dark mode: lebih gelap */
  color: #ffffff; /* teks putih */
}

/* Konten hero */
.hero-monochrome .hero-content {
  position: relative;
  z-index: 1;
}

/* H1 styling */
.hero-monochrome h1 {
  color: inherit; /* menyesuaikan mode */
  font-weight: 700;
  line-height: 1.2;
}

/* Tombol opsional */
.hero-monochrome .btn {
  margin-top: 20px;
  padding: 12px 28px;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  background-color: rgba(255, 165, 0, 0.08); /* aksen oranye subtle */
  color: inherit;
  backdrop-filter: blur(4px);
  cursor: pointer;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease;
}

.hero-monochrome .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 165, 0, 0.15);
  background-color: rgba(255, 165, 0, 0.15);
}

/* Responsif */
@media (max-width: 768px) {
  .hero-monochrome h1 {
    font-size: 2rem;
  }
  .hero-monochrome .btn {
    padding: 10px 20px;
  }
}

.hero-chart {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  opacity: 0.15;
  z-index: 0;
}

/* animasi garis */
.hero-chart polyline {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawLine 3s ease forwards;
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

.hero-page {
  position: relative;
  /* Dark gradient yang cocok light/dark mode */
  background: linear-gradient(
    135deg,
    #1f2937 0%,
    /* Dark Gray */ #4b5563 25%,
    /* Gray */ #6b7280 50%,
    /* Medium Gray */ #9ca3af 75%,
    /* Light Gray */ #d1d5db 100%
  ); /* Very Light Gray */
  overflow: hidden;
}

/* Dark overlay kompatibel */
.hero-page .mask.bg-gradient-dark {
  opacity: 0.4 !important; /* Lebih ringan untuk gray theme */
}

/* Subtle batik pattern dengan warna merah tua */
.hero-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    /* Batik pattern merah tua */
    url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd' stroke='%23dc2626' stroke-width='1.5' opacity='0.12'%3E%3Cpath d='M60 10 Q80 30 60 50 Q40 30 60 10'/%3E%3Cpath d='M30 60 Q50 80 70 60 Q50 40 30 60'/%3E%3Cpath d='M90 60 Q110 80 90 100 Q70 80 90 60'/%3E%3Ccircle cx='60' cy='60' r='8'/%3E%3Cpath d='M20 90 Q40 110 60 90 Q40 70 20 90'/%3E%3C/g%3E%3C/svg%3E"),
    /* Kawung pattern orange gelap */
    url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ea580c' stroke-width='1' opacity='0.1'%3E%3Ccircle cx='40' cy='40' r='12'/%3E%3Ccircle cx='20' cy='20' r='6'/%3E%3Ccircle cx='60' cy='20' r='6'/%3E%3Ccircle cx='20' cy='60' r='6'/%3E%3Ccircle cx='60' cy='60' r='6'/%3E%3C/g%3E%3C/svg%3E"),
    /* Subtle glow */
    radial-gradient(
        circle at 25% 25%,
        rgba(220, 38, 38, 0.08) 0%,
        transparent 50%
      ),
    radial-gradient(
      circle at 75% 75%,
      rgba(234, 88, 12, 0.06) 0%,
      transparent 50%
    );

  background-size:
    120px 120px,
    80px 80px,
    200% 200%,
    200% 200%;
  background-position:
    0 0,
    40px 40px,
    25% 25%,
    75% 75%;
  animation: emberFlow 25s linear infinite;
}

/* Dark mode - Lebih gelap */
[data-bs-theme="dark"] .hero-page {
  background: linear-gradient(
    135deg,
    #111827 0%,
    /* Hitam */ #1f2937 25%,
    /* Very Dark Gray */ #374151 50%,
    /* Dark Gray */ #4b5563 75%,
    /* Gray */ #6b7280 100%
  ); /* Medium Gray */
}

[data-bs-theme="dark"] .hero-page::before {
  background-image:
    url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd' stroke='%23ef4444' stroke-width='1.5' opacity='0.18'%3E%3Cpath d='M60 10 Q80 30 60 50 Q40 30 60 10'/%3E%3Cpath d='M30 60 Q50 80 70 60 Q50 40 30 60'/%3E%3Cpath d='M90 60 Q110 80 90 100 Q70 80 90 60'/%3E%3Ccircle cx='60' cy='60' r='8'/%3E%3Cpath d='M20 90 Q40 110 60 90 Q40 70 20 90'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23f97316' stroke-width='1' opacity='0.15'%3E%3Ccircle cx='40' cy='40' r='12'/%3E%3Ccircle cx='20' cy='20' r='6'/%3E%3Ccircle cx='60' cy='20' r='6'/%3E%3Ccircle cx='20' cy='60' r='6'/%3E%3Ccircle cx='60' cy='60' r='6'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(
      circle at 25% 25%,
      rgba(239, 68, 68, 0.12) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 75% 75%,
      rgba(249, 115, 22, 0.1) 0%,
      transparent 50%
    );
}

/* Ember particles - subtle */
.hero-page::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(
      1.5px 1.5px at 30px 40px,
      rgba(220, 38, 38, 0.3),
      transparent
    ),
    radial-gradient(
      1.2px 1.2px at 90px 70px,
      rgba(234, 88, 12, 0.25),
      transparent
    ),
    radial-gradient(
      1px 1px at 150px 30px,
      rgba(239, 68, 68, 0.35),
      transparent
    ),
    radial-gradient(
      0.8px 0.8px at 220px 100px,
      rgba(249, 115, 22, 0.2),
      transparent
    );
  background-size: 300px 300px;
  animation: emberFloat 30s ease-in-out infinite;
  opacity: 0.2;
}

[data-bs-theme="dark"] .hero-page::after {
  background-image:
    radial-gradient(
      1.5px 1.5px at 30px 40px,
      rgba(239, 68, 68, 0.4),
      transparent
    ),
    radial-gradient(
      1.2px 1.2px at 90px 70px,
      rgba(249, 115, 22, 0.35),
      transparent
    ),
    radial-gradient(
      1px 1px at 150px 30px,
      rgba(220, 38, 38, 0.45),
      transparent
    ),
    radial-gradient(
      0.8px 0.8px at 220px 100px,
      rgba(234, 88, 12, 0.3),
      transparent
    );
}

/* Text enhancement - subtle glow */
.hero-page .text-white {
  text-shadow: 0 4px 25px rgba(0, 0, 0, 0.6);
  position: relative;
  z-index: 10;
}

.hero-page h1.text-white {
  font-weight: 700;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: emberGlow 8s ease-in-out infinite alternate;
}

/* Animations - very subtle */
@keyframes emberFlow {
  0%,
  100% {
    background-position:
      0 0,
      40px 40px,
      25% 25%,
      75% 75%;
  }
  50% {
    background-position:
      60px 60px,
      20px 20px,
      30% 30%,
      80% 80%;
  }
}

@keyframes emberFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.2;
  }
  50% {
    transform: translateY(-10px) rotate(180deg);
    opacity: 0.3;
  }
}

@keyframes emberGlow {
  0% {
    text-shadow:
      0 4px 25px rgba(0, 0, 0, 0.6),
      0 0 15px rgba(220, 38, 38, 0.1);
  }
  100% {
    text-shadow:
      0 4px 25px rgba(0, 0, 0, 0.8),
      0 0 25px rgba(234, 88, 12, 0.2);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-page::after {
    background-size: 200px 200px;
    opacity: 0.15;
  }

  .hero-page h1 {
    font-size: 2.2rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-page::before,
  .hero-page::after,
  .hero-page h1 {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
.hero-pattern {
  position: relative;
  background-color: #676567; /* light mode */
  overflow: hidden;
}

[data-bs-theme="dark"] .hero-pattern {
  background-color: #0b0b0b; /* dark mode */
}
/* Hero baru: Modern Geometric */

/* Pola utama diamond emas */
.hero-pattern::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='140' height='140' viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23FFD700' stroke-width='2' opacity='0.4'%3E%3Cpath d='M70 10 L130 70 L70 130 L10 70 Z'/%3E%3Cpath d='M70 30 L110 70 L70 110 L30 70 Z'/%3E%3Cpath d='M70 50 L90 70 L70 90 L50 70 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 140px 140px;
  animation: moveDiamond 10s linear infinite;
}
/* Animasi diamond emas bergerak diagonally */
@keyframes moveDiamond {
  0% {
    background-position: 0 0;
  }
  50% {
    background-position: 50px 50px;
  }
  100% {
    background-position: 0 0;
  }
}

/* Animasi diamond merah scroll ke bawah */
@keyframes scrollRed {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 100px;
  }
}

.login-btn {
  transform: translateY(10px);
}

/* Glow dekoratif */

.user-avatar {
  width: 100%;
  /* mengikuti container */
  aspect-ratio: 1 / 1;
  /* memastikan tinggi = lebar */
  border-radius: 50%;
  /* lingkaran sempurna */
  object-fit: cover;
  /* crop otomatis agar proporsional */
  display: block;
  /* menghapus space bawah inline img */
}
/* OPD CARD */
.opd-card {
  border-radius: 0.75rem;
  overflow: hidden; /* ini yang benar */
}

/* GENERAL */
.opd-footer {
  font-size: 14px;
}

/* LIST */
.footer-list .nav-link {
  padding: 4px 0;
  color: inherit;
}

/* ICON KONTAK (FIX ALIGN) */
.icon-contact {
  width: 22px;
  min-width: 22px;
  margin-top: 4px;
}

/* TEXT */
.contact-list span {
  line-height: 1.5;
}

/* LOGO */
.footer-logo {
  height: 32px;
}

/* MOBILE IMPROVEMENT */
@media (max-width: 991.98px) {
  .footer {
    text-align: left;
  }

  .footer-list .nav-link {
    font-size: 13px;
  }
}
html[data-bs-theme="light"] .opd-card .card-header {
  background-color: #f8f9fa !important;
  border-bottom: 1px solid #dee2e6 !important;
  height: 73px !important;
}
html[data-bs-theme="light"] .opd-card .card-body {
  background-color: #ffffff !important;
}
html[data-bs-theme="light"] .opd-card .card-footer {
  background-color: #f8f9fa !important;
  border-top: 1px solid #dee2e6 !important;
}
html[data-bs-theme="dark"] .opd-card {
  background-color: #111111 !important;
  border-color: rgba(148, 163, 184, 0.18) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22) !important;
}
html[data-bs-theme="dark"] .opd-card .card-header {
  background-color: #1e1e1f !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  height: 73px !important;
}
html[data-bs-theme="dark"] .opd-card .card-body {
  background-color: #111111 !important;
}
.opd-card {
  transition:
    transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1),
    box-shadow 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
  border: 1px solid rgba(0, 0, 0, 0.08);
  will-change: transform, box-shadow;
  backface-visibility: hidden;
}

.opd-card:hover {
  transform: translateY(-10px) translateZ(0);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.18) !important;
}

[data-bs-theme="dark"] .opd-card {
  border-color: rgba(255, 255, 255, 0.1);
}
html[data-bs-theme="dark"] input#search,
html[data-bs-theme="dark"] input#search:focus,
html[data-bs-theme="dark"] #search {
  color: #ffffff !important;
}
html[data-bs-theme="dark"] input#search::placeholder {
  color: rgba(255, 255, 255, 0.64) !important;
}

html[data-bs-theme="dark"] .card-header {
  background-color: #1e1e1f !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-bs-theme="dark"] .opd-card .card-footer {
  background-color: #1e1e1f !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}
html[data-bs-theme="dark"] .opd-card .opd-icon-wrapper {
  background-color: rgba(96, 165, 250, 0.18) !important;
}
html[data-bs-theme="dark"] .opd-card .text-dark,
html[data-bs-theme="dark"] .opd-card .text-muted,
html[data-bs-theme="dark"] .opd-card .badge {
  color: #e2e8f0 !important;
}

/* NAVBAR - Material Kit Style with Blur */
.navbar.blur {
  box-shadow: inset 0px 0px 2px rgba(254, 254, 254, 0.8) !important;
  -webkit-backdrop-filter: saturate(100%) blur(16px) !important;
  backdrop-filter: saturate(100%) blur(16px) !important;
  background-color: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

html[data-bs-theme="dark"] .navbar.blur {
  background-color: rgba(18, 18, 18, 0.85) !important;
  box-shadow: inset 0px 0px 2px rgba(254, 254, 254, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.navbar.border-radius-xl {
  border-radius: 0.75rem !important;
}

.navbar .navbar-brand {
  color: #212529 !important;
  font-weight: 700 !important;
}

html[data-bs-theme="dark"] .navbar .navbar-brand {
  color: #ffffff !important;
}

.navbar .nav-link {
  color: #212529 !important;
  transition: color 0.25s ease !important;
}

html[data-bs-theme="dark"] .navbar .nav-link {
  color: #e2e8f0 !important;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #e91e63 !important;
}

.navbar .navbar-toggler {
  border-color: rgba(33, 37, 41, 0.16) !important;
  background-color: rgba(33, 37, 41, 0.08) !important;
}

html[data-bs-theme="dark"] .navbar .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.16) !important;
  background-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-bs-theme="dark"] .navbar.bg-white {
  background-color: #1b1a1a !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-bs-theme="dark"] .footer {
  background-color: #121212 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}
html[data-bs-theme="dark"] .card,
html[data-bs-theme="dark"] .dropdown-menu {
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45) !important;
}
html[data-bs-theme="dark"] .navbar .nav-link,
html[data-bs-theme="dark"] .navbar-brand,
html[data-bs-theme="dark"] .footer .nav-link,
html[data-bs-theme="dark"] .text-dark,
html[data-bs-theme="dark"] .text-muted,
html[data-bs-theme="dark"] .text-secondary {
  color: #cbd5e1 !important;
}
html[data-bs-theme="dark"] a,
html[data-bs-theme="dark"] .navbar .nav-link {
  color: #e2e8f0 !important;
}
html[data-bs-theme="dark"] .text-white {
  color: #ffffff !important;
}
html[data-bs-theme="dark"] .theme-mode-item.active,
html[data-bs-theme="dark"] .theme-mode-item:focus,
.theme-mode-item.active,
.theme-mode-item:focus {
  background-color: rgba(96, 165, 250, 0.14);
  font-weight: 700;
}
.theme-mode-item {
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}
/* Dark mode overrides migrated from index.php & Button visibility fixes */
html[data-bs-theme="dark"] .filter-label,
html[data-bs-theme="dark"] .txt_filter_indicator {
  color: #ffffff !important;
}

html[data-bs-theme="dark"] .btn-outline-secondary:hover {
  background-color: #444 !important;
  color: #ffffff !important;
}

html[data-bs-theme="dark"] .btn-outline-dark,
html[data-bs-theme="dark"] .btn-dark,
html[data-bs-theme="dark"] .btn-outline-light,
html[data-bs-theme="dark"] .btn-light,
html[data-bs-theme="dark"] .btn-white {
  border-color: rgba(255, 255, 255, 0.2) !important;
}

html[data-bs-theme="dark"] .btn-dark,
html[data-bs-theme="dark"] .btn-outline-dark,
html[data-bs-theme="dark"] .btn-white {
  background-color: #1e1e1f !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Memastikan icon di dalam tombol juga berwarna terang */
html[data-bs-theme="dark"] .btn-white i {
  color: #ffffff !important;
}

html[data-bs-theme="dark"] .btn-outline-dark:hover,
html[data-bs-theme="dark"] .btn-white:hover {
  background-color: #2b3035 !important;
  color: #ffffff !important;
}

html[data-bs-theme="dark"] .btn-light,
html[data-bs-theme="dark"] .btn-outline-light {
  background-color: transparent !important;
  color: #e2e8f0 !important;
}

html[data-bs-theme="dark"] .item-ssd-card {
  background-color: #1e1e1f !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Select2 overrides for dark mode */
html[data-bs-theme="dark"]
  .select2-container--default
  .select2-selection--single {
  background-color: #242425 !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}
html[data-bs-theme="dark"]
  .select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  color: #ffffff !important;
}
html[data-bs-theme="dark"]
  .select2-container--default
  .select2-selection--single
  .select2-selection__placeholder {
  color: #adb5bd !important;
}
html[data-bs-theme="dark"] .select2-dropdown {
  background-color: #242425 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}
html[data-bs-theme="dark"] .select2-results__option {
  color: #ffffff !important;
}
html[data-bs-theme="dark"]
  .select2-container--default
  .select2-results__option--highlighted[aria-selected] {
  background-color: #e91e63 !important;
  color: #ffffff !important;
}
html[data-bs-theme="dark"] .navbar-toggler-icon .bar1,
html[data-bs-theme="dark"] .navbar-toggler-icon .bar2,
html[data-bs-theme="dark"] .navbar-toggler-icon .bar3 {
  background-color: #e2e8f0;
}
.navbar,
.footer,
.dropdown-menu,
.card {
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

/* Kegiatan Detail Styles */
.info-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #8392ab;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

[data-bs-theme="dark"] .info-label {
  color: #adb5bd; /* Adjust for dark mode readability */
}

.richtext-content {
  line-height: 1.8;
  font-size: 1.125rem;
  color: #344767;
  word-wrap: break-word;
}

[data-bs-theme="dark"] .richtext-content {
  color: #e2e8f0; /* Dark mode text color */
}

.richtext-content p {
  margin-bottom: 1rem;
}

.richtext-content h1,
.richtext-content h2,
.richtext-content h3,
.richtext-content h4,
.richtext-content h5,
.richtext-content h6 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.richtext-content ul,
.richtext-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.richtext-content li {
  margin-bottom: 0.5rem;
}

.richtext-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2rem auto;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] .richtext-content img {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.kegiatan-card-img {
  height: 200px; /* Fixed height for consistency */
  transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
  object-fit: cover; /* Ensures image covers the area without distortion */
}

.featured-image-wrapper {
  overflow: hidden;
  border-radius: 1rem;
  transition: transform 0.3s ease;
}

.featured-image-wrapper img {
  transition: transform 0.5s ease;
}

.featured-image-wrapper:hover img {
  transform: scale(1.02);
}

.share-container {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 1rem;
}

.share-container .btn {
  border-radius: 0.5rem;
  padding: 0.6rem 1rem;
  margin: 0.25rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tag-pill {
  background-color: #f8f9fa;
  color: #344767;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 50px;
  border: 1px solid #e9ecef;
  transition: all 0.2s ease;
  display: inline-block;
}

.tag-pill:hover {
  background-color: #344767;
  color: #fff;
  transform: translateY(-1px);
}

.social-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.34, 1.61, 0.7, 1);
  border: none;
  cursor: pointer;
}

.social-btn:hover {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] .tag-pill {
  background-color: #242425;
  border-color: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

[data-bs-theme="dark"] .bg-gray-100 {
  background-color: #1e1e1f !important;
}

.share-btn-white {
  background-color: #fff !important;
  color: #344767 !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

[data-bs-theme="dark"] .share-btn-white {
  background-color: #1e1e1f !important;
  color: #e2e8f0 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

@media (min-width: 992px) {
  .border-start-lg {
    border-left: 1px solid var(--bs-border-color) !important;
  }
}

/* Search Form Improvements */
.search-form-group {
  background-color: #ffffff;
  transition: all 0.25s ease;
}

.search-form-group .form-control:focus {
  background-color: transparent !important;
}

.search-form-group .btn {
  border-radius: 0 !important;
}

[data-bs-theme="dark"] .search-form-group {
  background-color: #242425 !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

[data-bs-theme="dark"] .search-form-group .form-control {
  color: #ffffff !important;
  background-color: transparent !important;
}

[data-bs-theme="dark"] .search-form-group .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
}
