/* Locking Page Horizontal Overflow to Prevent Page Shake */
html, body {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
}

.main-wrapper,
.main-content,
.content-container,
.card,
.card-body,
#mytable-wrapper,
#mygrid-wrapper {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

/* Bootstrap Modal Stability & Layout Isolation (Zero Page Shake & Height Jump) */
.modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 1055 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

body.modal-open {
  overflow: hidden !important;
  padding-right: 0 !important;
}

.modal-backdrop {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 1050 !important;
}

/* --------------------------------------------------------------------------
   1. CSS VARIABLES (DESIGN TOKENS)
   Ubah variabel di bawah ini untuk mengustomisasi warna, radius, padding, dll.
   -------------------------------------------------------------------------- */
:root {
  /* Warna Utama & Latar Belakang */
  --primary-color: #0b57d0;
  --primary-hover: #0842a5;
  --primary-light: #e8f0fe;
  --primary-gradient: linear-gradient(135deg, #0b57d0 0%, #033994 100%);
  
  --sidebar-bg-gradient: linear-gradient(180deg, #0e54c4 0%, #033a95 100%);
  --sidebar-active-bg: rgba(255, 255, 255, 0.22);
  --sidebar-hover-bg: rgba(255, 255, 255, 0.12);
  --sidebar-text: #ffffff;
  --sidebar-text-muted: rgba(255, 255, 255, 0.65);
  
  --body-bg: #f3f5f9;
  --card-bg: #ffffff;
  --topbar-bg: #ffffff;
  
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --border-color: #e5e7eb;

  /* Warna Ikon Statistik Card */
  --icon-bg-member: #e8f0fe;
  --icon-color-member: #1a73e8;
  --icon-bg-bisnis: #e0f2fe;
  --icon-color-bisnis: #0284c7;
  --icon-bg-karyawan: #e6f4ea;
  --icon-color-karyawan: #137333;
  --icon-bg-kegiatan: #e0edff;
  --icon-color-kegiatan: #0b57d0;

  /* Dimensi & Spasing */
  --content-padding: 1.5rem;
  --card-padding: 1.25rem;
  --sidebar-width: 260px;
  --topbar-height: 64px;
  --bottomnav-height: 62px;

  /* Border Radius */
  --radius-card: 16px;
  --radius-btn: 10px;
  --radius-badge: 20px;
  --radius-icon: 12px;

  /* Bayangan (Shadows) */
  --shadow-card: 0 4px 14px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.08);

  /* Transisi */
  --transition-speed: 0.25s ease-in-out;
}

/* Mode Gelap (Dark Mode Override) */
[data-bs-theme="dark"] {
  --body-bg: #0f172a;
  --card-bg: #1e293b;
  --topbar-bg: #1e293b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: #334155;
  --primary-light: rgba(11, 87, 208, 0.2);
}

/* --------------------------------------------------------------------------
   2. GLOBAL & LAYOUT STYLES
   -------------------------------------------------------------------------- */
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--body-bg);
  color: var(--text-main);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  transition: background-color var(--transition-speed);
}

.main-wrapper {
  display: flex;
  min-height: 100vh;
}

/* Main Content Area */
.main-content {
  flex: 1;
  width: 100%;
  padding-bottom: calc(var(--bottomnav-height) + 1.5rem);
  transition: margin-left var(--transition-speed);
}

@media (min-width: 992px) {
  .main-content {
    margin-left: var(--sidebar-width);
    padding-bottom: var(--content-padding);
  }
}

.content-container {
  padding: var(--content-padding);
}

/* --------------------------------------------------------------------------
   3. SIDEBAR STYLES (DESKTOP & OFFCANVAS)
   -------------------------------------------------------------------------- */
.app-sidebar {
  width: var(--sidebar-width) !important;
  background: var(--sidebar-bg-gradient) !important;
  color: var(--sidebar-text);
  border-right: none !important;
  box-shadow: 4px 0 16px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
}

@media (min-width: 992px) {
  .app-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    height: 100vh;
    z-index: 1040;
  }
}

/* Custom Scrollbar Tipis & Elegan (Menghilangkan Scrollbar Putih Tebal) */
.sidebar-body::-webkit-scrollbar,
.app-sidebar::-webkit-scrollbar {
  width: 4px;
}

.sidebar-body::-webkit-scrollbar-track,
.app-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-body::-webkit-scrollbar-thumb,
.app-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 10px;
}

.sidebar-body::-webkit-scrollbar-thumb:hover,
.app-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.45);
}

.sidebar-body,
.app-sidebar {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

/* Offcanvas custom background for mobile */
.offcanvas.app-sidebar {
  background: var(--sidebar-bg-gradient) !important;
}

.sidebar-header {
  padding: 1.25rem 1.25rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-brand-title {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  line-height: 1.2;
  color: #ffffff;
}

.sidebar-brand-sub {
  font-size: 0.95rem;
  color: #ffffff;
  font-weight: 700;
}

.sidebar-nav-section {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #a3e635; /* Warna hijau kekuningan sesuai gambar referensi */
  text-transform: uppercase;
  padding: 1.1rem 1.25rem 0.35rem;
}

.sidebar-menu {
  list-style: none;
  padding: 0 0.75rem;
  margin: 0;
}

.sidebar-menu .nav-item {
  margin-bottom: 0.2rem;
}

.sidebar-menu .nav-link {
  color: rgba(255, 255, 255, 0.85);
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-btn);
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-speed);
}

.sidebar-menu .nav-link i {
  font-size: 1.15rem;
  margin-right: 0.85rem;
  width: 20px;
  text-align: center;
}

.sidebar-menu .nav-link:hover {
  color: var(--sidebar-text);
  background-color: var(--sidebar-hover-bg);
}

.sidebar-menu .nav-link.disabled {
  color: rgba(255, 255, 255, 0.4) !important;
  cursor: not-allowed !important;
  pointer-events: auto !important;
  opacity: 0.6;
}

.sidebar-menu .nav-link.disabled:hover {
  background-color: transparent !important;
  color: rgba(255, 255, 255, 0.4) !important;
}

.sidebar-menu .nav-link.active {
  color: var(--sidebar-text);
  background-color: var(--sidebar-active-bg);
  font-weight: 600;
  backdrop-filter: blur(6px);
}

.sidebar-menu .nav-badge {
  margin-left: auto;
  background-color: rgba(255, 255, 255, 0.22);
  color: var(--sidebar-text);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.65rem;
  border-radius: 50px;
}

.sidebar-footer {
  margin-top: auto;
  padding: 1rem 0.75rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* --------------------------------------------------------------------------
   4. TOP NAVBAR STYLES
   -------------------------------------------------------------------------- */
.top-navbar {
  height: var(--topbar-height);
  background-color: var(--topbar-bg);
  border-bottom: 1px solid var(--border-color);
  padding: 0 var(--content-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: background-color var(--transition-speed);
}

.top-navbar-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0;
  color: var(--text-main);
}

.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #334155; /* Neutral Slate */
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transition: all 0.2s ease;
  position: relative;
  padding: 0 !important;
}

.btn-icon:hover {
  background-color: rgba(0, 0, 0, 0.05) !important;
  color: #202e94 !important;
}

.badge-notification {
  position: absolute;
  top: -2px;
  right: -2px;
  background-color: #b91c1c;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--topbar-bg);
}

.avatar-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #8cc63f; /* TDA Lime Green */
  color: #ffffff;
  font-weight: 800;
  font-size: 15px;
  font-family: "Poppins", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   5. DASHBOARD COMPONENTS (HERO, QUICK ACTIONS, CARDS)
   -------------------------------------------------------------------------- */
/* Hero Banner */
.hero-banner {
  background: var(--primary-gradient);
  color: #ffffff;
  border-radius: var(--radius-card);
  padding: 1.75rem var(--card-padding);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.hero-subtitle {
  font-size: 0.9rem;
  opacity: 0.9;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.hero-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.hero-meta {
  font-size: 0.8rem;
  opacity: 0.85;
}

.hero-badge-logo {
  max-height: 60px;
  object-fit: contain;
}

/* Quick Action Buttons */
.quick-action-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-card);
  padding: 1rem var(--card-padding);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-color);
}

.action-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-right: 1rem;
  white-space: nowrap;
}

.action-buttons-wrapper {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
}

.btn-quick-action {
  border-radius: var(--radius-btn);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  white-space: nowrap;
  background-color: var(--body-bg);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  transition: all var(--transition-speed);
}

.btn-quick-action:hover {
  background-color: var(--primary-light);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Stat Cards */
.stat-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-card);
  padding: var(--card-padding);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.stat-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin: 0;
}

.stat-value {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.stat-subtext {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}

.stat-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-icon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* Color variations for stat icon wrappers */
.stat-icon-member {
  background-color: var(--icon-bg-member);
  color: var(--icon-color-member);
}

.stat-icon-bisnis {
  background-color: var(--icon-bg-bisnis);
  color: var(--icon-color-bisnis);
}

.stat-icon-karyawan {
  background-color: var(--icon-bg-karyawan);
  color: var(--icon-color-karyawan);
}

.stat-icon-kegiatan {
  background-color: var(--icon-bg-kegiatan);
  color: var(--icon-color-kegiatan);
}

/* Content Cards (Chart & Agenda) */
.content-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-card);
  padding: var(--card-padding);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  height: 100%;
}

.card-title-main {
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0;
}

.chart-container {
  position: relative;
  height: 260px;
  width: 100%;
  margin-top: 1rem;
}

/* --------------------------------------------------------------------------
   6. BOTTOM NAVIGATION (MOBILE ONLY)
   -------------------------------------------------------------------------- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottomnav-height);
  background-color: var(--topbar-bg);
  border-top: 1px solid var(--border-color);
  z-index: 1035;
  display: flex;
  align-items: center;
  justify-content: space-around;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #8b9cb5;
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 12px;
  transition: all 0.2s ease-in-out;
}

.bottom-nav-item i {
  font-size: 1.2rem;
  margin-bottom: 0.1rem;
}

.bottom-nav-item.active {
  background-color: #eff6ff !important;
  color: #202e94 !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

.btn-topbar-hamburger {
  width: 36px;
  height: 36px;
  border-radius: 8px !important;
  background-color: transparent !important;
  border: 1px solid #cbd5e1 !important;
  color: #202e94 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  font-size: 1.25rem;
}

/* --------------------------------------------------------------------------
   7. AUTHENTICATION PAGES (LOGIN, REGISTER)
   -------------------------------------------------------------------------- */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--body-bg);
  padding: 1.5rem;
  position: relative;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background-color: var(--card-bg);
  border-radius: var(--radius-card);
  padding: 2.25rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
  transition: background-color var(--transition-speed);
}

.auth-brand-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.auth-brand-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.auth-title {
  font-weight: 800;
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
  color: var(--text-main);
}

.auth-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.auth-input-group .input-group-text {
  background-color: var(--body-bg);
  border-color: var(--border-color);
  color: var(--text-muted);
  border-radius: var(--radius-btn) 0 0 var(--radius-btn);
}

.auth-input-group .form-control {
  border-radius: 0 var(--radius-btn) var(--radius-btn) 0;
  padding: 0.65rem 0.9rem;
  font-size: 0.9rem;
  background-color: var(--card-bg);
  color: var(--text-main);
  border-color: var(--border-color);
}

.auth-input-group.has-append .form-control {
  border-radius: 0;
}

.auth-input-group .btn-password-toggle {
  background-color: var(--body-bg);
  border-color: var(--border-color);
  color: var(--text-muted);
  border-radius: 0 var(--radius-btn) var(--radius-btn) 0;
}

.auth-input-group .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(11, 87, 208, 0.15);
}

.btn-auth-primary {
  background: var(--primary-gradient);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-btn);
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  font-size: 0.95rem;
  width: 100%;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.btn-auth-primary:hover,
.btn-auth-primary:focus,
.btn-auth-primary:active {
  background: var(--primary-gradient) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(11, 87, 208, 0.35);
}

/* Styling Error Validation (SIAKAD Compatibility) */
.has-error .help-block,
.help-block {
  color: #dc3545 !important;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.35rem;
  display: block;
  text-align: left;
}

.has-error .form-control,
.has-error .input-group-text {
  border-color: #dc3545 !important;
}

/* --------------------------------------------------------------------------
   8. MODERN DATATABLES STYLING (TDA ONE THEME)
   -------------------------------------------------------------------------- */
.dataTables_wrapper {
  padding: 0.25rem 0;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
  margin-bottom: 1.25rem;
}

.dataTables_wrapper .dataTables_filter input {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-btn);
  padding: 0.45rem 0.85rem;
  font-size: 0.875rem;
  background-color: var(--card-bg);
  color: var(--text-color);
  outline: none;
  transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.dataTables_wrapper .dataTables_filter input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(11, 87, 208, 0.15);
}

.dataTables_wrapper .dataTables_length select {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-btn);
  padding: 0.4rem 2rem 0.4rem 0.85rem;
  font-size: 0.875rem;
  background-color: var(--card-bg);
  color: var(--text-color);
}

table.dataTable {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  width: 100% !important;
  margin-top: 0.5rem !important;
  margin-bottom: 1.25rem !important;
}

table.dataTable thead th {
  background-color: var(--card-bg) !important;
  color: var(--text-muted) !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  border-bottom: 2px solid var(--border-color) !important;
  border-top: none !important;
  padding: 0.85rem 1rem !important;
}

table.dataTable tbody td {
  padding: 0.85rem 1rem !important;
  font-size: 0.875rem !important;
  color: var(--text-color) !important;
  border-bottom: 1px solid var(--border-color) !important;
  vertical-align: middle !important;
}

table.dataTable tbody tr:hover {
  background-color: rgba(11, 87, 208, 0.04) !important;
}

.dataTables_wrapper .dataTables_info {
  color: var(--text-muted) !important;
  font-size: 0.85rem !important;
  padding-top: 0.75rem !important;
}

.dataTables_wrapper .dataTables_paginate {
  padding-top: 0 !important;
  margin: 0 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.dataTables_wrapper .dataTables_paginate .pagination {
  margin: 0 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 4px !important;
}

.dataTables_wrapper .dataTables_paginate .pagination .page-item {
  margin: 0 !important;
}

.dataTables_wrapper .dataTables_paginate .pagination .page-item .page-link {
  min-width: 36px !important;
  height: 36px !important;
  padding: 0 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 8px !important;
  border: 1px solid #e2e8f0 !important;
  background-color: #ffffff !important;
  color: #334155 !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
  transition: all 0.15s ease !important;
}

.dataTables_wrapper .dataTables_paginate .pagination .page-item.active .page-link {
  background-color: #2b3db6 !important;
  border-color: #2b3db6 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(43, 61, 182, 0.3) !important;
}

.dataTables_wrapper .dataTables_paginate .pagination .page-item:hover:not(.active) .page-link {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

/* --------------------------------------------------------------------------
   9. REFERENSI DESIGN MODAL & TOMBOL (PROPORSI PRESISI TDA-OS)
   -------------------------------------------------------------------------- */

/* Primary Button (+ Tambah / Simpan) */
.btn-primary:not(.btn-sm) {
  background-color: #2b3db6 !important;
  border-color: #2b3db6 !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  border-radius: 0.75rem !important;
  padding: 0.55rem 1.25rem !important;
  font-size: 0.875rem !important;
  box-shadow: 0 4px 12px rgba(43, 61, 182, 0.22) !important;
  transition: all 0.18s ease-in-out !important;
}

.btn-primary:not(.btn-sm):hover,
.btn-primary:not(.btn-sm):focus,
.btn-primary:not(.btn-sm):active {
  background-color: #202e94 !important;
  border-color: #202e94 !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(43, 61, 182, 0.32) !important;
}

/* Danger Button (Hapus Data / Hapus Event) */
.btn-danger:not(.btn-sm) {
  background-color: #b91c1c !important;
  border-color: #b91c1c !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  border-radius: 0.75rem !important;
  padding: 0.55rem 1.25rem !important;
  font-size: 0.875rem !important;
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.22) !important;
  transition: all 0.18s ease-in-out !important;
}

.btn-danger:not(.btn-sm):hover,
.btn-danger:not(.btn-sm):focus,
.btn-danger:not(.btn-sm):active {
  background-color: #991b1b !important;
  border-color: #991b1b !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(185, 28, 28, 0.32) !important;
}

.btn-danger:disabled,
.btn-danger.disabled {
  background-color: #e2e8f0 !important;
  border-color: #e2e8f0 !important;
  color: #94a3b8 !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  transform: none !important;
}

/* Secondary / Light / Batal Button */
.btn-secondary:not(.btn-sm),
.btn-light:not(.btn-sm) {
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
  font-weight: 600 !important;
  border-radius: 0.75rem !important;
  padding: 0.55rem 1.25rem !important;
  font-size: 0.875rem !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05) !important;
  transition: all 0.18s ease-in-out !important;
}

.btn-secondary:not(.btn-sm):hover,
.btn-light:not(.btn-sm):hover {
  background-color: #f8fafc !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
  transform: translateY(-1px);
}

/* Bootstrap Modal Adjustments & Clean Dialog Positioning */
.modal {
  z-index: 1055 !important;
}

.modal-backdrop {
  z-index: 1050 !important;
  background-color: rgba(15, 23, 42, 0.5) !important;
  backdrop-filter: blur(3px);
}

.modal-dialog {
  margin: 1.75rem auto;
}

.modal-content {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 1rem !important;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.16) !important;
  overflow: hidden;
}

.modal-header {
  border-bottom: 1px solid #f1f5f9 !important;
  padding: 1.1rem 1.5rem !important;
  background-color: #ffffff !important;
}

.modal-header .modal-title {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}

.modal-header .btn-close {
  background-color: #f1f5f9 !important;
  border-radius: 0.5rem !important;
  padding: 0.5rem !important;
  opacity: 0.8 !important;
  transition: all 0.15s ease !important;
}

.modal-header .btn-close:hover {
  opacity: 1 !important;
  background-color: #e2e8f0 !important;
}

.modal-body {
  padding: 1.35rem 1.5rem !important;
  color: #334155 !important;
}

.modal-footer {
  border-top: none !important;
  padding: 1rem 1.5rem !important;
  background-color: #f8fafc !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 0.65rem !important;
  border-radius: 0 0 1rem 1rem !important;
}

/* --------------------------------------------------------------------------
   10. TDA ONE DESIGN SYSTEM STANDARD (SESUAI CAPTURE REFERENSI USER)
   -------------------------------------------------------------------------- */

/* Custom Search Input Box Next To + Tambah */
.digitalinyuk-search-wrapper {
  position: relative;
  max-width: 380px;
  width: 100%;
}

.digitalinyuk-search-wrapper .bi-search {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.9rem;
}

.digitalinyuk-search-input {
  border: 1px solid #e2e8f0 !important;
  border-radius: 0.75rem !important;
  padding: 0.55rem 1rem 0.55rem 2.4rem !important;
  font-size: 0.875rem !important;
  color: #1e293b !important;
  background-color: #ffffff !important;
  transition: all 0.2s ease-in-out !important;
  box-shadow: none !important;
}

.digitalinyuk-search-input:focus {
  border-color: #2b3db6 !important;
  box-shadow: 0 0 0 3px rgba(43, 61, 182, 0.12) !important;
}

/* Action Buttons (Square Soft Color Icon Buttons) */
.btn-action-square {
  width: 32px;
  height: 32px;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.875rem !important;
  border: none !important;
  transition: all 0.15s ease-in-out !important;
  padding: 0 !important;
}

.btn-action-square.btn-edit-square {
  background-color: #e0e7ff !important;
  color: #3730a3 !important;
}

.btn-action-square.btn-edit-square:hover {
  background-color: #c7d2fe !important;
  color: #312e81 !important;
  transform: scale(1.05);
}

.btn-action-square.btn-delete-square {
  background-color: #fee2e2 !important;
  color: #991b1b !important;
}

.btn-action-square.btn-delete-square:hover {
  background-color: #fecaca !important;
  color: #7f1d1d !important;
  transform: scale(1.05);
}

.btn-action-square.btn-view-square {
  background-color: #e0f2fe !important;
  color: #075985 !important;
}

.btn-action-square.btn-view-square:hover {
  background-color: #bae6fd !important;
  color: #0c4a6e !important;
  transform: scale(1.05);
}

/* Soft Pill Badges (Aktif / Nonaktif) */
.badge-soft-success {
  background-color: #dcfce7 !important;
  color: #166534 !important;
  font-weight: 700 !important;
  font-size: 0.725rem !important;
  padding: 0.35rem 0.75rem !important;
  border-radius: 20px !important;
}

.badge-soft-danger {
  background-color: #fee2e2 !important;
  color: #991b1b !important;
  font-weight: 700 !important;
  font-size: 0.725rem !important;
  padding: 0.35rem 0.75rem !important;
  border-radius: 20px !important;
}

.badge-soft-warning {
  background-color: #fef3c7 !important;
  color: #92400e !important;
  font-weight: 700 !important;
  font-size: 0.725rem !important;
  padding: 0.35rem 0.75rem !important;
  border-radius: 20px !important;
}

.badge-soft-info {
  background-color: #e0f2fe !important;
  color: #075985 !important;
  font-weight: 700 !important;
  font-size: 0.725rem !important;
  padding: 0.35rem 0.75rem !important;
  border-radius: 20px !important;
}

.badge-soft-secondary {
  background-color: #f1f5f9 !important;
  color: #475569 !important;
  font-weight: 700 !important;
  font-size: 0.725rem !important;
  padding: 0.35rem 0.75rem !important;
  border-radius: 20px !important;
}

/* View Toggle Buttons (List / Grid) */
.digitalinyuk-view-toggle {
  display: inline-flex;
  background-color: #f1f5f9;
  padding: 3px;
  border-radius: 10px;
}

.digitalinyuk-view-toggle .btn {
  border: none;
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  padding: 0.35rem 0.85rem;
  border-radius: 7px;
  transition: all 0.2s ease;
}

.digitalinyuk-view-toggle .btn.active {
  background-color: #ffffff;
  color: #2b3db6;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* --------------------------------------------------------------------------
   11. EXACT MATCH TABLE HEADER BAR & PAGINATION (PRESI REFERENSI USER)
   -------------------------------------------------------------------------- */
table.data thead tr {
  background-color: #f1f5f9 !important;
}

table.data thead th {
  background-color: #f1f5f9 !important;
  color: #64748b !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  padding: 12px 16px !important;
  border-top: none !important;
  border-bottom: none !important;
  vertical-align: middle !important;
}

table.data thead th:first-child,
#mytable thead th:first-child {
  border-top-left-radius: 10px !important;
  border-bottom-left-radius: 0 !important;
}

table.data thead th:last-child,
#mytable thead th:last-child {
  border-top-right-radius: 10px !important;
  border-bottom-right-radius: 0 !important;
}

/* Row Striping & Spacing */
table.data tbody tr:nth-child(even) {
  background-color: rgba(248, 250, 252, 0.75) !important;
}

table.data tbody td {
  padding: 14px 16px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  vertical-align: middle !important;
}

/* DataTables Pagination Link Customization */
.dataTables_wrapper .dataTables_paginate .pagination .page-item .page-link {
  border-radius: 8px !important;
  margin: 0 2px !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
  font-weight: 600 !important;
  font-size: 12.5px !important;
  padding: 6px 12px !important;
  background-color: #ffffff !important;
  box-shadow: none !important;
}

.dataTables_wrapper .dataTables_paginate .pagination .page-item.active .page-link {
  background-color: #2b3db6 !important;
  border-color: #2b3db6 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(43, 61, 182, 0.25) !important;
}

.text-primary {
  color: #2b3db6 !important;
}

/* --------------------------------------------------------------------------
   12. MOBILE RESPONSIVE STYLING (EXACT MATCH REFERENSI GAMBAR 1 MOBILE)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .content-container {
    padding: 10px 8px !important;
  }

  .card-body {
    padding: 16px 12px !important;
  }

  /* Stack Toolbar Element Secara Vertikal */
  .digitalinyuk-toolbar-mobile {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .digitalinyuk-toolbar-left-mobile {
    flex-direction: column !important;
    align-items: stretch !important;
    max-width: 100% !important;
    width: 100% !important;
    gap: 10px !important;
  }

  /* Full-width + Tambah Button di Mobile */
  .digitalinyuk-toolbar-left-mobile .btn-primary,
  #add-btn {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 10px 16px !important;
    font-size: 14px !important;
    border-radius: 10px !important;
  }

  /* Full-width Search Input Box di Mobile */
  .digitalinyuk-search-wrapper {
    max-width: 100% !important;
    width: 100% !important;
  }

  .digitalinyuk-search-input {
    width: 100% !important;
    height: 42px !important;
    border-radius: 10px !important;
  }

  /* Full-width View Toggle Container (List / Grid) di Mobile */
  .digitalinyuk-view-toggle-wrapper-mobile {
    width: 100% !important;
  }

  .digitalinyuk-view-toggle {
    width: 100% !important;
    display: flex !important;
    background-color: #f1f5f9 !important;
    padding: 4px !important;
    border-radius: 10px !important;
  }

  .digitalinyuk-view-toggle .btn {
    flex: 1 !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
  }

  /* Banner Petunjuk Geser Tabel pada Mobile (Gambar 1 Referensi) */
  .table-wrap__hint {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px 12px !important;
    background-color: #f8fafc !important;
    border: 1px dashed #cbd5e1 !important;
    border-radius: 8px !important;
    color: #64748b !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    margin-bottom: 14px !important;
  }

  /* Isolasi Overflow & Layout Footer DataTables di Mobile */
  #mytable-wrapper .table-responsive,
  .dataTables_wrapper .table-responsive {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  #mytable {
    white-space: nowrap !important;
    min-width: 600px !important;
  }

  .dataTables_wrapper {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .dataTables_wrapper .d-flex {
    width: 100% !important;
    max-width: 100% !important;
  }

  .dataTables_wrapper .d-flex.justify-content-between,
  .dataTables_wrapper .d-flex.flex-wrap {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .dataTables_wrapper .d-flex.align-items-center.gap-2 {
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    gap: 10px !important;
  }

  .dataTables_wrapper .dataTables_info {
    text-align: center !important;
    width: 100% !important;
    font-size: 0.8rem !important;
  }

  .dataTables_wrapper .dataTables_length {
    margin-bottom: 2px !important;
    text-align: center !important;
  }

  .dataTables_wrapper .dataTables_paginate {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    overflow: visible !important;
    padding: 4px 0 !important;
  }

  .dataTables_wrapper .dataTables_paginate .pagination {
    margin: 0 auto !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 5px !important;
    width: 100% !important;
  }

  .dataTables_wrapper .dataTables_paginate .pagination .page-item .page-link {
    min-width: 32px !important;
    height: 32px !important;
    padding: 0 4px !important;
    font-size: 0.775rem !important;
  }
}

@media (min-width: 769px) {
  .table-wrap__hint {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   13. DIGITALINYUK OFFICIAL GRID CARD SYSTEM (BEM DESIGN SYSTEM)
   -------------------------------------------------------------------------- */
.digitalinyuk-grid-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  transition: all 0.2s ease-in-out;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.digitalinyuk-grid-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
  border-color: #cbd5e1;
}

.digitalinyuk-grid-card__cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #e0f2fe 0%, #e0e7ff 50%, #dcfce7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid #f1f5f9;
}

.digitalinyuk-grid-card__cover-avatar {
  width: 72%;
  height: 72%;
  object-fit: contain;
}

.digitalinyuk-grid-card__body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.digitalinyuk-grid-card__title,
.digitalinyuk-grid-card__name {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
  line-height: 1.3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.digitalinyuk-grid-card__status-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
}

.digitalinyuk-grid-card__status-dot.active {
  background-color: #dcfce7;
  color: #166534;
}

.digitalinyuk-grid-card__status-dot.inactive {
  background-color: #fee2e2;
  color: #991b1b;
}

.digitalinyuk-grid-card__data,
.digitalinyuk-grid-card__meta {
  font-size: 11.5px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.digitalinyuk-grid-card__data i,
.digitalinyuk-grid-card__meta i {
  font-size: 12px;
  color: #94a3b8;
}

.digitalinyuk-grid-card__footer {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.digitalinyuk-grid-card__btn-edit {
  flex: 1;
  border: 1px solid #c7d2fe !important;
  background-color: #e0e7ff !important;
  color: #3730a3 !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  border-radius: 8px !important;
  padding: 6px 10px !important;
  transition: all 0.15s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
}

.digitalinyuk-grid-card__btn-edit:hover {
  background-color: #c7d2fe !important;
  color: #312e81 !important;
}

.digitalinyuk-grid-card__btn-delete {
  width: 32px;
  height: 32px;
  border: 1px solid #fecaca !important;
  background-color: #fee2e2 !important;
  color: #991b1b !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  border-radius: 8px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  transition: all 0.15s ease !important;
}

.digitalinyuk-grid-card__btn-delete:hover {
  background-color: #fecaca !important;
  color: #7f1d1d !important;
}

/* --------------------------------------------------------------------------
   14. TOASTR & BOOTSTRAP 5 COMPATIBILITY OVERRIDE
   -------------------------------------------------------------------------- */
#toast-container > div {
  opacity: 1 !important;
  transition: none !important;
}
#toast-container > .toast:not(.show) {
  display: block;
}

/* Styling Dropdown Entri 10/hal (Sesuai Screenshot Referensi TDA) */
.dataTables_length {
  margin: 0 !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
}

.dataTables_length label {
  font-size: 0 !important; /* Sembunyikan label text default DataTables */
  margin: 0 !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
}

.dataTables_length select {
  height: 36px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  padding: 0 28px 0 12px !important;
  font-size: 13px !important;
  color: #334155 !important;
  background-color: #ffffff !important;
  font-weight: 700 !important;
  outline: none !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05) !important;
  cursor: pointer !important;
  margin: 0 !important;
  vertical-align: middle !important;
  display: inline-block !important;
}

/* --------------------------------------------------------------------------
   15. TDA OFFICIAL TABLE CONTAINER BOX (FLUSH ZERO-GAP SMOOTH HEADER)
   -------------------------------------------------------------------------- */
.dataTables_wrapper .table-responsive {
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  background-color: #f1f5f9 !important;
  overflow: hidden !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  margin-bottom: 1rem !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}

#mytable {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  width: 100% !important;
  background-color: #ffffff !important;
}

#mytable thead,
#mytable thead tr {
  background-color: #f1f5f9 !important;
}

#mytable thead th {
  background-color: #f1f5f9 !important;
  color: #64748b !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  padding: 14px 16px !important;
  border-bottom: 1px solid #e2e8f0 !important;
  border-top: none !important;
}

#mytable tbody tr {
  background-color: #ffffff !important;
}

#mytable tbody td {
  padding: 14px 16px !important;
  font-size: 13.5px !important;
  color: #0f172a !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

#mytable tbody tr:last-child td {
  border-bottom: none !important;
}

/* TDA One Presisi Referensi Foto 1 */
.tda-table-name {
  font-family: "Poppins", "Inter", sans-serif !important;
  font-weight: 700 !important;
  color: #202e94 !important;
  font-size: 14px !important;
}

.tda-table-no {
  font-family: "Inter", sans-serif !important;
  font-weight: 700 !important;
  color: #202e94 !important;
  font-size: 13.5px !important;
}

.tda-table-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #8c6b5d;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  font-family: "Poppins", sans-serif;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.tda-table-email {
  color: #334155 !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
}

/* --------------------------------------------------------------------------
   12. STANDARISASI INPUT FORM, PLACEHOLDER, & REQUIRED ASTERISK
   -------------------------------------------------------------------------- */
label .req,
label .text-danger,
.form-label .text-danger,
.form-label .req {
  color: #dc2626 !important; /* Merah Terang */
  font-weight: 700 !important;
  margin-left: 2px !important;
}

.form-label {
  font-size: 0.8125rem !important; /* 13px */
  font-weight: 600 !important;
  color: #334155 !important;
  margin-bottom: 0.35rem !important;
}

.form-control,
.form-select,
.input,
select,
textarea {
  font-size: 0.875rem !important; /* 14px Proporsional */
  padding: 0.55rem 0.85rem !important;
  border-radius: 0.5rem !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

.form-control::placeholder,
.input::placeholder,
textarea::placeholder {
  font-size: 0.85rem !important; /* 13.5px Proporsional */
  color: #94a3b8 !important;
  font-weight: 400 !important;
  opacity: 1 !important;
}

/* --------------------------------------------------------------------------
   13. SELECT2 MATCHING BOOTSTRAP FORM CONTROL & SELECT
   -------------------------------------------------------------------------- */
.select2-container {
  width: 100% !important;
  font-family: inherit !important;
}

.select2-container--default .select2-selection--single {
  height: auto !important;
  min-height: 40px !important;
  padding: 0.25rem 0.35rem !important;
  border-radius: 0.5rem !important;
  border: 1px solid #cbd5e1 !important;
  background-color: #ffffff !important;
  transition: all 0.2s ease-in-out !important;
  display: flex !important;
  align-items: center !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 1.5 !important;
  padding-left: 0.5rem !important;
  padding-right: 2rem !important;
  font-size: 0.875rem !important;
  color: #0f172a !important;
  font-weight: 400 !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #94a3b8 !important;
  font-size: 0.85rem !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100% !important;
  top: 0 !important;
  right: 0.65rem !important;
  width: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--single {
  border-color: #202e94 !important;
  box-shadow: 0 0 0 3px rgba(32, 46, 148, 0.15) !important;
}

.select2-dropdown {
  border-radius: 0.5rem !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12) !important;
  overflow: hidden !important;
  z-index: 1060 !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  border: 1px solid #cbd5e1 !important;
  border-radius: 0.375rem !important;
  padding: 0.4rem 0.75rem !important;
  font-size: 0.85rem !important;
  outline: none !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
  border-color: #202e94 !important;
  box-shadow: 0 0 0 2px rgba(32, 46, 148, 0.15) !important;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background-color: #202e94 !important;
  color: #ffffff !important;
}

.select2-container--default .select2-results__option {
  padding: 0.55rem 0.75rem !important;
  font-size: 0.875rem !important;
}

/* --------------------------------------------------------------------------
   14. INPUT GROUP SEAMLESS JOIN (GABUNGAN ICON + INPUT + TOGGLE MATAS)
   -------------------------------------------------------------------------- */
.input-group > .input-group-text:first-child {
  border-top-left-radius: 0.5rem !important;
  border-bottom-left-radius: 0.5rem !important;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  border-right: none !important;
}

.input-group > .form-control:not(:first-child):not(:last-child) {
  border-radius: 0 !important;
  border-left: none !important;
  border-right: none !important;
}

.input-group > .form-control:first-child:not(:last-child) {
  border-top-left-radius: 0.5rem !important;
  border-bottom-left-radius: 0.5rem !important;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  border-right: none !important;
}

.input-group > .form-control:last-child:not(:first-child) {
  border-top-right-radius: 0.5rem !important;
  border-bottom-right-radius: 0.5rem !important;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  border-left: none !important;
}

.input-group > .btn:last-child,
.input-group > .input-group-text:last-child,
.input-group > .btn-password-toggle:last-child {
  border-top-right-radius: 0.5rem !important;
  border-bottom-right-radius: 0.5rem !important;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  border-left: none !important;
}

.input-group .input-group-text {
  background-color: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  color: #64748b !important;
  padding: 0.55rem 0.85rem !important;
  display: flex !important;
  align-items: center !important;
}

.input-group .btn-password-toggle {
  background-color: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  color: #64748b !important;
  padding: 0.55rem 0.85rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: none !important;
  outline: none !important;
}

.input-group .btn-password-toggle:hover,
.input-group .btn-password-toggle:focus,
.input-group .btn-password-toggle:active {
  box-shadow: none !important;
  outline: none !important;
  background-color: #f1f5f9 !important;
}

.input-group:focus-within {
  border-radius: 0.5rem !important;
  box-shadow: 0 0 0 3px rgba(32, 46, 148, 0.15) !important;
}

.input-group:focus-within .input-group-text,
.input-group:focus-within .form-control,
.input-group:focus-within .btn-password-toggle {
  border-color: #202e94 !important;
}

/* Autofill Background Override */
.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus,
.form-control:-webkit-autofill:active {
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: var(--text-main) !important;
  transition: background-color 5000s ease-in-out 0s !important;
}

/* --------------------------------------------------------------------------
   15. HIDE NUMBER INPUT SPINNER ARROWS (PANAH ATAS BAWAH INPUT NUMBER)
   -------------------------------------------------------------------------- */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none !important; 
  margin: 0 !important; 
}

input[type=number] {
  -moz-appearance: textfield !important;
  appearance: textfield !important;
}

/* --------------------------------------------------------------------------
   16. TDA ONE PRESI REFERENSI DARK MODE [data-bs-theme="dark"]
   -------------------------------------------------------------------------- */
[data-bs-theme="dark"] {
  --body-bg: #0b0f19;
  --card-bg: #121927;
  --topbar-bg: #0d131f;
  --text-main: #f8fafc;
  --text-muted: #8b9cb5;
  --border-color: #1e293b;
  --sidebar-bg-gradient: linear-gradient(180deg, #121927 0%, #0d131f 100%);
}

/* 1. Sidebar Dark Mode (100% Identik Foto 1 TDA One) */
[data-bs-theme="dark"] .app-sidebar {
  background: #121927 !important;
  border-right: 1px solid #1e293b !important;
  box-shadow: 4px 0 16px rgba(0, 0, 0, 0.4) !important;
}

[data-bs-theme="dark"] .sidebar-brand {
  border-bottom: 1px solid #1e293b !important;
}

[data-bs-theme="dark"] .sidebar-nav .nav-link {
  color: #8b9cb5 !important;
}

[data-bs-theme="dark"] .sidebar-nav .nav-link:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #f8fafc !important;
}

[data-bs-theme="dark"] .sidebar-nav .nav-link.active {
  background: #202e94 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(32, 46, 148, 0.4) !important;
}

[data-bs-theme="dark"] .sidebar-nav .nav-heading {
  color: #475569 !important;
}

[data-bs-theme="dark"] .sidebar-nav .nav-badge {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #94a3b8 !important;
}

/* 2. Topbar Dark Mode */
[data-bs-theme="dark"] .top-navbar {
  background-color: #0d131f !important;
  border-bottom: 1px solid #1e293b !important;
}

[data-bs-theme="dark"] .top-navbar-title {
  color: #ffffff !important;
}

[data-bs-theme="dark"] .btn-icon {
  color: #8b9cb5 !important;
  background-color: transparent !important;
}

[data-bs-theme="dark"] .btn-icon:hover {
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

[data-bs-theme="dark"] .btn-topbar-hamburger {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #cbd5e1 !important;
}

[data-bs-theme="dark"] .btn-topbar-hamburger:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

/* 3. Card & Body Dark Mode */
[data-bs-theme="dark"] body {
  background-color: #0b0f19 !important;
  color: #f8fafc !important;
}

[data-bs-theme="dark"] .card {
  background-color: #121927 !important;
  border: 1px solid #1e293b !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5) !important;
}

/* 4. Table Header, Rows, & Container Outer Border Dark Mode */
[data-bs-theme="dark"] .dataTables_wrapper .table-responsive,
[data-bs-theme="dark"] #mytable-wrapper .table-responsive {
  border: 1px solid #1e293b !important;
  background-color: #121927 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}

[data-bs-theme="dark"] table.data,
[data-bs-theme="dark"] #mytable,
[data-bs-theme="dark"] .table {
  border-color: #1e293b !important;
}

[data-bs-theme="dark"] #mytable thead,
[data-bs-theme="dark"] #mytable thead tr,
[data-bs-theme="dark"] table.data thead tr {
  background-color: #151e2e !important;
}

[data-bs-theme="dark"] #mytable thead th,
[data-bs-theme="dark"] table.data thead th {
  background-color: #151e2e !important;
  color: #8b9cb5 !important;
  border-bottom: 1px solid #1e293b !important;
  font-size: 11px !important;
  letter-spacing: 0.06em !important;
}

[data-bs-theme="dark"] table.data thead th:first-child,
[data-bs-theme="dark"] #mytable thead th:first-child {
  border-top-left-radius: 10px !important;
  border-bottom-left-radius: 0 !important;
}

[data-bs-theme="dark"] table.data thead th:last-child,
[data-bs-theme="dark"] #mytable thead th:last-child {
  border-top-right-radius: 10px !important;
  border-bottom-right-radius: 0 !important;
}

[data-bs-theme="dark"] #mytable tbody tr,
[data-bs-theme="dark"] table.data tbody tr {
  background-color: #121927 !important;
}

[data-bs-theme="dark"] #mytable tbody tr:nth-child(even),
[data-bs-theme="dark"] table.data tbody tr:nth-child(even) {
  background-color: #151e2e !important;
}

[data-bs-theme="dark"] #mytable tbody tr:hover,
[data-bs-theme="dark"] table.data tbody tr:hover {
  background-color: #1c283c !important;
}

[data-bs-theme="dark"] #mytable tbody td,
[data-bs-theme="dark"] table.data tbody td {
  color: #e2e8f0 !important;
  border-bottom: 1px solid #1e293b !important;
}

/* 5. TDA Table Specific Elements Dark Mode */
[data-bs-theme="dark"] .tda-table-name {
  color: #8fa7ff !important; /* Soft High-Contrast Indigo Blue */
}

[data-bs-theme="dark"] .tda-table-no {
  color: #748cff !important;
}

[data-bs-theme="dark"] .tda-table-email {
  color: #94a3b8 !important;
}

/* 6. Action Buttons Dark Mode (Hapus Background Putih!) */
[data-bs-theme="dark"] .icon-act,
[data-bs-theme="dark"] .btn-action-square {
  background-color: #1c283c !important;
  border: 1px solid #28374d !important;
  color: #8b9cb5 !important;
}

[data-bs-theme="dark"] .icon-act--edit:hover {
  background-color: rgba(59, 130, 246, 0.25) !important;
  color: #60a5fa !important;
  border-color: #3b82f6 !important;
}

[data-bs-theme="dark"] .icon-act--hapus:hover {
  background-color: rgba(239, 68, 68, 0.25) !important;
  color: #f87171 !important;
  border-color: #ef4444 !important;
}

/* 7. Inputs, Custom Search & Toolbar Dark Mode */
[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select,
[data-bs-theme="dark"] .input,
[data-bs-theme="dark"] select,
[data-bs-theme="dark"] textarea {
  background-color: #151e2e !important;
  color: #f8fafc !important;
  border-color: #1e293b !important;
}

[data-bs-theme="dark"] .form-control::placeholder,
[data-bs-theme="dark"] .input::placeholder,
[data-bs-theme="dark"] textarea::placeholder {
  color: #64748b !important;
}

[data-bs-theme="dark"] .digitalinyuk-search-wrapper .bi-search {
  color: #64748b !important;
}

[data-bs-theme="dark"] .digitalinyuk-search-input {
  background-color: #151e2e !important;
  color: #f8fafc !important;
  border-color: #1e293b !important;
}

[data-bs-theme="dark"] .digitalinyuk-view-toggle {
  background-color: #151e2e !important;
  border: 1px solid #1e293b !important;
}

[data-bs-theme="dark"] .digitalinyuk-view-toggle .btn {
  color: #8b9cb5 !important;
}

[data-bs-theme="dark"] .digitalinyuk-view-toggle .btn.active {
  background-color: #1c283c !important;
  color: #ffffff !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5) !important;
}

/* Dark Mode Bottom Nav Active Pill */
[data-bs-theme="dark"] .bottom-nav {
  background-color: #0d131f !important;
  border-top: 1px solid #1e293b !important;
}

[data-bs-theme="dark"] .bottom-nav-item {
  color: #8b9cb5 !important;
}

[data-bs-theme="dark"] .bottom-nav-item.active {
  background-color: #1e293b !important;
  color: #60a5fa !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

/* 8. DataTables Pagination & Info Dark Mode */
[data-bs-theme="dark"] .dataTables_info {
  color: #8b9cb5 !important;
}

[data-bs-theme="dark"] .dataTables_length label,
[data-bs-theme="dark"] .dataTables_length select {
  color: #8b9cb5 !important;
  background-color: #151e2e !important;
  border-color: #1e293b !important;
}

[data-bs-theme="dark"] .dataTables_wrapper .dataTables_paginate .pagination .page-item .page-link {
  background-color: #151e2e !important;
  border-color: #1e293b !important;
  color: #8b9cb5 !important;
}

[data-bs-theme="dark"] .dataTables_wrapper .dataTables_paginate .pagination .page-item.active .page-link {
  background-color: #202e94 !important;
  border-color: #202e94 !important;
  color: #ffffff !important;
}

/* 9. Select2 Dark Mode */
[data-bs-theme="dark"] .select2-container--default .select2-selection--single {
  background-color: #151e2e !important;
  border-color: #1e293b !important;
}

[data-bs-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #f8fafc !important;
}

[data-bs-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #64748b !important;
}

[data-bs-theme="dark"] .select2-dropdown {
  background-color: #151e2e !important;
  border-color: #1e293b !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6) !important;
}

[data-bs-theme="dark"] .select2-container--default .select2-search--dropdown .select2-search__field {
  background-color: #1c283c !important;
  color: #f8fafc !important;
  border-color: #1e293b !important;
}

[data-bs-theme="dark"] .select2-container--default .select2-results__option {
  color: #8b9cb5 !important;
}

[data-bs-theme="dark"] .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background-color: #202e94 !important;
  color: #ffffff !important;
}

/* 10. Modals Dark Mode */
[data-bs-theme="dark"] .modal-content {
  background-color: #121927 !important;
  color: #f8fafc !important;
  border: 1px solid #1e293b !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7) !important;
}

[data-bs-theme="dark"] .modal-header,
[data-bs-theme="dark"] .modal-footer {
  border-color: #1e293b !important;
}

[data-bs-theme="dark"] .modal-title {
  color: #ffffff !important;
}

[data-bs-theme="dark"] .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

[data-bs-theme="dark"] .alert-primary {
  background-color: rgba(32, 46, 148, 0.25) !important;
  border-color: #202e94 !important;
  color: #93c5fd !important;
}
