/* ==========================================================================
   IRNIS School Management System — Custom CSS & Theme System
   Alia Islamic School Identity | AdminLTE v4.10 + Light/Dark/Auto Mode
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Brand Design Tokens & Color Variables
   -------------------------------------------------------------------------- */
:root {
  --irnis-blue-deep: #1a365d;
  --irnis-blue-primary: #2b6cb0;
  --irnis-blue-light: #ebf8ff;
  --irnis-blue-accent: #3182ce;
  --irnis-purple-deep: #44337a;
  --irnis-purple-primary: #6b46c1;
  --irnis-purple-light: #faf5ff;
  --irnis-purple-accent: #805ad5;

  /* Card & Content Metrics */
  --irnis-shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
  --irnis-shadow-md: 0 4px 14px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04);
  --irnis-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.09), 0 4px 10px rgba(0, 0, 0, 0.05);
  --irnis-radius: 12px;
  --irnis-radius-sm: 8px;

  /* Default / Light Mode Theme Variables */
  --bs-body-bg: #f4f6f9;
  --bs-body-color: #212529;
  --bs-secondary-color: #6c757d;
  --bs-tertiary-bg: #f8fafc;
  --bs-border-color: #dee2e6;
  --bs-border-color-translucent: rgba(0, 0, 0, 0.125);
  --bs-card-bg: #ffffff;
  --bs-card-border-color: rgba(0, 0, 0, 0.08);
}

[data-bs-theme="dark"] {
  --irnis-blue-deep: #2b6cb0;
  --irnis-blue-primary: #3182ce;
  --irnis-blue-light: #172554;
  --irnis-blue-accent: #60a5fa;
  --irnis-purple-deep: #6b46c1;
  --irnis-purple-primary: #805ad5;
  --irnis-purple-light: #2e1065;
  --irnis-purple-accent: #a855f7;

  --irnis-shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.35);
  --irnis-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.45);
  --irnis-shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.55);

  --bs-body-bg: #0b1120;
  --bs-body-color: #f1f5f9;
  --bs-secondary-color: #94a3b8;
  --bs-tertiary-bg: #111a2e;
  --bs-border-color: rgba(255, 255, 255, 0.1);
  --bs-border-color-translucent: rgba(255, 255, 255, 0.08);
  --bs-card-bg: #131d33;
  --bs-card-border-color: rgba(255, 255, 255, 0.08);
}

/* --------------------------------------------------------------------------
   2. Typography & Layout Structure
   -------------------------------------------------------------------------- */
body {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: -0.01em;
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
  -webkit-font-smoothing: antialiased;
}

.app-wrapper {
  background-color: var(--bs-body-bg);
  min-height: 100vh;
}

.app-header {
  border-bottom: 1px solid var(--bs-border-color);
  backdrop-filter: blur(8px);
  z-index: 1030;
}

.app-sidebar .sidebar-brand {
  background: linear-gradient(135deg, #0f172a 0%, #1a365d 100%);
  height: 57px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.app-main {
  padding-bottom: 3rem;
}

.app-content {
  padding-top: 1.25rem;
}

/* --------------------------------------------------------------------------
   3. Unified Content Header & Breadcrumb System
   -------------------------------------------------------------------------- */
.app-content-header {
  background: transparent;
  padding: 1.25rem 0 1rem 0;
  border-bottom: 1px solid var(--bs-border-color-translucent);
  margin-bottom: 1.25rem;
}

.app-content-header h1,
.app-content-header h3 {
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--bs-body-color);
  margin-bottom: 0;
  line-height: 1.25;
}

.app-content-header h1 {
  font-size: 1.35rem;
}

.app-content-header h3 {
  font-size: 1.35rem;
}

.app-content-header small,
.app-content-header h1 small,
.app-content-header h3 small {
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--bs-secondary-color);
  margin-top: 3px;
}

.content-header-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.content-header-wrapper h1 {
  flex: 1 1 auto;
}

/* Universal Breadcrumb Rules (Works with BS5 .breadcrumb-item and legacy BS3 <li>) */
.breadcrumb,
.content-header-wrapper .breadcrumb,
.app-content-header .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
  font-size: 0.825rem;
  gap: 0;
}

.breadcrumb > li,
.content-header-wrapper .breadcrumb > li,
.app-content-header .breadcrumb > li {
  display: inline-flex;
  align-items: center;
}

.breadcrumb > li + li::before,
.content-header-wrapper .breadcrumb > li + li::before,
.app-content-header .breadcrumb > li + li::before {
  content: "/";
  padding: 0 0.5rem;
  color: var(--bs-secondary-color);
  opacity: 0.6;
}

.breadcrumb > li a,
.breadcrumb-item a {
  color: var(--irnis-blue-primary);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb > li a:hover,
.breadcrumb-item a:hover {
  text-decoration: underline;
}

.breadcrumb > li.active,
.breadcrumb-item.active {
  color: var(--bs-secondary-color);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   4. Bootstrap 3 Grid & Spacing Compatibility Layer
   -------------------------------------------------------------------------- */
.col-xs-1  { flex: 0 0 auto; width: 8.33333333%; }
.col-xs-2  { flex: 0 0 auto; width: 16.66666667%; }
.col-xs-3  { flex: 0 0 auto; width: 25%; }
.col-xs-4  { flex: 0 0 auto; width: 33.33333333%; }
.col-xs-5  { flex: 0 0 auto; width: 41.66666667%; }
.col-xs-6  { flex: 0 0 auto; width: 50%; }
.col-xs-7  { flex: 0 0 auto; width: 58.33333333%; }
.col-xs-8  { flex: 0 0 auto; width: 66.66666667%; }
.col-xs-9  { flex: 0 0 auto; width: 75%; }
.col-xs-10 { flex: 0 0 auto; width: 83.33333333%; }
.col-xs-11 { flex: 0 0 auto; width: 91.66666667%; }
.col-xs-12 { flex: 0 0 auto; width: 100%; }

@media (max-width: 575.98px) {
  .col-xs-6 {
    width: 100%;
  }
}

.pull-right { float: right !important; }
.pull-left  { float: left !important; }
.text-right { text-align: right !important; }
.text-left  { text-align: left !important; }
.text-center { text-align: center !important; }

@media (max-width: 767.98px) {
  .hidden-xs { display: none !important; }
  .visible-xs { display: block !important; }
}

.margin-r-5 { margin-right: 5px !important; }
.margin-top { margin-top: 15px !important; }
.margin-bottom { margin-bottom: 20px !important; }
.no-margin { margin: 0 !important; }
.btn-flat { border-radius: 6px !important; }
.img-circle { border-radius: 50% !important; }
.img-responsive { max-width: 100% !important; height: auto !important; }

/* --------------------------------------------------------------------------
   5. Form & Filter Toolbar System (.form-inline, search bars, segmented pills)
   -------------------------------------------------------------------------- */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--bs-body-color);
}

.form-inline {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  gap: 0.75rem;
}

.form-inline .form-group {
  display: flex;
  flex: 0 0 auto;
  flex-flow: row wrap;
  align-items: center;
  margin-bottom: 0;
  gap: 0.5rem;
}

.form-inline label {
  margin-bottom: 0;
  margin-right: 0.25rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--bs-body-color);
}

.form-inline .pull-right {
  margin-left: auto !important;
}

.form-control, select.form-control, textarea.form-control {
  border-radius: 8px;
  border-color: var(--bs-border-color);
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
  font-size: 0.875rem;
  padding: 0.45rem 0.85rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  border-color: #3182ce;
  box-shadow: 0 0 0 0.25rem rgba(49, 130, 206, 0.2);
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
}

.input-sm, select.input-sm, .form-control.input-sm {
  padding: 0.35rem 0.7rem;
  font-size: 0.825rem;
  border-radius: 6px;
  min-height: calc(1.5em + 0.7rem + 2px);
}

/* Input Group Button Integration */
.input-group {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.input-group > .input-group-btn {
  display: flex;
  align-items: stretch;
}

.input-group > .input-group-btn > .btn {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  padding-left: 0.85rem;
  padding-right: 0.85rem;
}

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

.input-group-addon {
  display: flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--bs-secondary-color);
  text-align: center;
  white-space: nowrap;
  background-color: var(--bs-tertiary-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
}

.input-group > .input-group-addon:first-child {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.input-group > .input-group-addon:last-child {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* Filter Toolbar Container Surfaces */
.irnis-filter-toolbar,
[style*="background-color: #f8fafc"],
[style*="background-color: #f7fafc"],
[style*="background: #f8fafc"],
[style*="background: #f7fafc"] {
  background-color: var(--bs-tertiary-bg) !important;
  border: 1px solid var(--bs-border-color) !important;
  border-radius: 10px !important;
  padding: 12px 18px !important;
}

/* View Mode Segmented Switcher (Cards / Table) */
.btn-group.btn-group-sm {
  background: var(--bs-body-bg);
  padding: 3px;
  border-radius: 8px;
  border: 1px solid var(--bs-border-color);
  display: inline-flex;
  gap: 2px;
}

.btn-group.btn-group-sm > .btn {
  border-radius: 6px !important;
  border: none !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  padding: 4px 12px !important;
  box-shadow: none !important;
  transform: none !important;
}

.btn-group.btn-group-sm > .btn.btn-primary {
  background: #2b6cb0 !important;
  color: #fff !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) !important;
}

.btn-group.btn-group-sm > .btn.btn-default {
  background: transparent !important;
  color: var(--bs-secondary-color) !important;
}

.btn-group.btn-group-sm > .btn.btn-default:hover {
  color: var(--bs-body-color) !important;
  background: rgba(0, 0, 0, 0.04) !important;
}

/* --------------------------------------------------------------------------
   6. Modern Card / Box Component (.box & <x-card>)
   -------------------------------------------------------------------------- */
.box {
  position: relative;
  border-radius: var(--irnis-radius);
  background-color: var(--bs-card-bg, #fff);
  border: 1px solid var(--bs-card-border-color, rgba(0, 0, 0, 0.08));
  border-top: 3px solid #cbd5e1;
  margin-bottom: 1.5rem;
  width: 100%;
  box-shadow: var(--irnis-shadow-sm);
  color: var(--bs-body-color);
  transition: box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
  overflow: visible; /* Prevents dropdown menu clipping */
}

.box:hover {
  box-shadow: var(--irnis-shadow-md);
}

.box.box-solid {
  border-top: 1px solid var(--bs-card-border-color, rgba(0, 0, 0, 0.08));
}

.box.box-primary { border-top: 3px solid #2b6cb0; }
.box.box-success { border-top: 3px solid #10b981; }
.box.box-warning { border-top: 3px solid #f59e0b; }
.box.box-danger  { border-top: 3px solid #ef4444; }
.box.box-info    { border-top: 3px solid #0ea5e9; }
.box.box-default { border-top: 3px solid #94a3b8; }
.box.box-irnis-blue   { border-top: 3px solid #1a365d; }
.box.box-irnis-purple { border-top: 3px solid #6b46c1; }

.box-header {
  color: var(--bs-body-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 1.35rem;
  position: relative;
  background: transparent;
  border-top-left-radius: var(--irnis-radius);
  border-top-right-radius: var(--irnis-radius);
}

.box-header.with-border {
  border-bottom: 1px solid var(--bs-border-color-translucent);
}

.box-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--bs-body-color);
}

.box-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.box-tools .btn {
  padding: 0.32rem 0.75rem;
  font-size: 0.8rem;
  border-radius: 6px;
}

.box-tools .btn-box-tool {
  padding: 4px 8px;
  font-size: 13px;
  background: transparent;
  color: var(--bs-secondary-color);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}

.box-tools .btn-box-tool:hover {
  color: var(--bs-body-color);
  background-color: var(--bs-tertiary-bg);
}

.box-body {
  padding: 1.35rem;
  color: var(--bs-body-color);
}

.box-body.no-padding {
  padding: 0;
}

.box-body.no-padding .table {
  border: none;
  margin-bottom: 0;
}

.box-footer {
  border-top: 1px solid var(--bs-border-color-translucent);
  border-bottom-right-radius: var(--irnis-radius);
  border-bottom-left-radius: var(--irnis-radius);
  background-color: var(--bs-tertiary-bg);
  padding: 0.85rem 1.35rem;
  color: var(--bs-body-color);
}

/* --------------------------------------------------------------------------
   7. Hero Banners (.uks-hero, .perizinan-hero, .prestasi-hero, etc.)
   -------------------------------------------------------------------------- */
.uks-hero,
.perizinan-hero,
.prestasi-hero,
.cuti-hero,
.evaluasi-hero,
.payroll-hero,
.konseling-hero {
  background: linear-gradient(135deg, #1a365d 0%, #2b6cb0 60%, #44337a 100%) !important;
  color: #ffffff !important;
  border-radius: 14px !important;
  padding: 24px 28px !important;
  margin-bottom: 24px !important;
  box-shadow: 0 8px 24px rgba(26, 54, 93, 0.16) !important;
  position: relative !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.uks-hero h1, .uks-hero h3,
.perizinan-hero h1, .perizinan-hero h3,
.prestasi-hero h1, .prestasi-hero h3,
.cuti-hero h1, .cuti-hero h3,
.evaluasi-hero h1, .evaluasi-hero h3,
.payroll-hero h1, .payroll-hero h3,
.konseling-hero h1, .konseling-hero h3 {
  color: #ffffff !important;
  font-weight: 700 !important;
  letter-spacing: -0.3px;
}

.uks-hero p,
.perizinan-hero p,
.prestasi-hero p,
.cuti-hero p,
.evaluasi-hero p,
.payroll-hero p,
.konseling-hero p {
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 0.875rem !important;
  line-height: 1.6 !important;
  margin-bottom: 0 !important;
}

/* --------------------------------------------------------------------------
   8. Summary & Metric Cards (.metric-card, .report-stat-card)
   -------------------------------------------------------------------------- */
.metric-card,
.report-stat-card,
.metric-card-pelanggaran,
.metric-card-progress,
.metric-card-cbt,
.metric-card-diniyah,
.metric-card-murojaah,
.metric-card-tfz-prog,
.metric-card-setoran,
.metric-card-tahfidz {
  background: var(--bs-card-bg) !important;
  border: 1px solid var(--bs-card-border-color) !important;
  border-radius: 12px !important;
  padding: 18px 20px !important;
  margin-bottom: 20px !important;
  box-shadow: var(--irnis-shadow-sm) !important;
  display: flex !important;
  align-items: center !important;
  color: var(--bs-body-color) !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.metric-card:hover,
.report-stat-card:hover,
.metric-card-pelanggaran:hover,
.metric-card-progress:hover,
.metric-card-cbt:hover,
.metric-card-diniyah:hover,
.metric-card-murojaah:hover,
.metric-card-tfz-prog:hover,
.metric-card-setoran:hover,
.metric-card-tahfidz:hover {
  transform: translateY(-3px) !important;
  box-shadow: var(--irnis-shadow-md) !important;
  border-color: rgba(43, 108, 176, 0.3) !important;
}

.metric-icon-box,
.metric-icon-pelanggaran,
.metric-icon-progress,
.metric-icon-cbt,
.metric-icon-diniyah,
.metric-icon-murojaah,
.metric-icon-tfz-prog,
.metric-icon-setoran,
.metric-icon-tahfidz {
  width: 54px !important;
  height: 54px !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 24px !important;
  margin-right: 16px !important;
  flex-shrink: 0 !important;
  background: var(--bs-tertiary-bg) !important;
  border: 1px solid var(--bs-border-color-translucent) !important;
}

/* --------------------------------------------------------------------------
   9. Stat Cards & Small Boxes (.small-box)
   -------------------------------------------------------------------------- */
.small-box {
  border-radius: 14px;
  position: relative;
  display: block;
  margin-bottom: 1.5rem;
  box-shadow: var(--irnis-shadow-sm);
  overflow: hidden;
  color: #fff;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.small-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--irnis-shadow-lg);
  color: #fff;
}

.small-box > .inner {
  padding: 1.25rem 1.35rem 0.85rem 1.35rem;
  position: relative;
  z-index: 2;
}

.small-box h3 {
  font-size: 1.95rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 4px 0;
  white-space: nowrap;
}

.small-box p {
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0.95;
  margin-bottom: 0;
}

.small-box .icon {
  position: absolute;
  top: 10px;
  right: 18px;
  z-index: 1;
  font-size: 68px;
  color: rgba(255, 255, 255, 0.22);
  transition: all 0.3s ease;
}

.small-box:hover .icon {
  font-size: 74px;
  color: rgba(255, 255, 255, 0.3);
}

.small-box > .small-box-footer {
  position: relative;
  text-align: center;
  padding: 8px 16px;
  color: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(6px);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: background 0.2s ease, color 0.2s ease;
}

.small-box > .small-box-footer:hover {
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
}

/* Stat Box Gradient Themes */
.bg-aqua   { background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important; color: #fff !important; }
.bg-green  { background: linear-gradient(135deg, #059669 0%, #047857 100%) !important; color: #fff !important; }
.bg-yellow { background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important; color: #fff !important; }
.bg-red    { background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important; color: #fff !important; }
.bg-purple { background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%) !important; color: #fff !important; }
.bg-blue   { background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important; color: #fff !important; }
.bg-navy   { background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%) !important; color: #fff !important; }
.bg-teal   { background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%) !important; color: #fff !important; }
.bg-maroon { background: linear-gradient(135deg, #be185d 0%, #9d174d 100%) !important; color: #fff !important; }

/* --------------------------------------------------------------------------
   10. Info Box Component (.info-box)
   -------------------------------------------------------------------------- */
.info-box {
  display: flex;
  align-items: center;
  min-height: 90px;
  border-radius: var(--irnis-radius);
  background-color: var(--bs-card-bg, #fff);
  border: 1px solid var(--bs-card-border-color, rgba(0, 0, 0, 0.08));
  margin-bottom: 1.5rem;
  box-shadow: var(--irnis-shadow-sm);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-box:hover {
  transform: translateY(-2px);
  box-shadow: var(--irnis-shadow-md);
}

.info-box-icon {
  width: 72px;
  min-height: 90px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: #fff;
  flex-shrink: 0;
}

.info-box-content {
  padding: 12px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.info-box-text {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  color: var(--bs-secondary-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.info-box-number {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--bs-body-color);
  letter-spacing: -0.3px;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   11. Grid Item Cards (.permit-card, .achieve-card, .uks-card, etc.)
   -------------------------------------------------------------------------- */
.permit-card,
.achieve-card,
.uks-card,
.med-card,
.leave-card,
.evl-card,
.payroll-card,
.counsel-card {
  background: var(--bs-card-bg) !important;
  border: 1px solid var(--bs-card-border-color) !important;
  border-radius: 12px !important;
  box-shadow: var(--irnis-shadow-sm) !important;
  margin-bottom: 22px !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  overflow: hidden !important;
  color: var(--bs-body-color) !important;
}

.permit-card:hover,
.achieve-card:hover,
.uks-card:hover,
.med-card:hover,
.leave-card:hover,
.evl-card:hover,
.payroll-card:hover,
.counsel-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: var(--irnis-shadow-md) !important;
  border-color: rgba(43, 108, 176, 0.35) !important;
}

.permit-card-header,
.achieve-card-header,
.uks-card-header,
.leave-card-header,
.evl-card-header,
.payroll-card-header,
.counsel-card-header {
  padding: 14px 18px 12px 18px !important;
  border-bottom: 1px solid var(--bs-border-color-translucent) !important;
  background: transparent !important;
}

.permit-card-body,
.achieve-card-body,
.uks-card-body,
.leave-card-body,
.evl-card-body,
.payroll-card-body,
.counsel-card-body {
  padding: 16px 18px !important;
  flex: 1 1 auto !important;
  color: var(--bs-body-color) !important;
}

.permit-card-footer,
.achieve-card-footer,
.uks-card-footer,
.leave-card-footer,
.evl-card-footer,
.payroll-card-footer,
.counsel-card-footer {
  padding: 12px 18px !important;
  background: var(--bs-tertiary-bg) !important;
  border-top: 1px solid var(--bs-border-color-translucent) !important;
  border-bottom-left-radius: 11px !important;
  border-bottom-right-radius: 11px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

/* Card Status Badges & Pills */
.badge-status-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.pill-selesai, .pill-approved, .pill-lunas {
  background: rgba(16, 185, 129, 0.12) !important;
  color: #059669 !important;
  border: 1px solid rgba(16, 185, 129, 0.25) !important;
}

.pill-observasi, .pill-pending, .pill-menunggu {
  background: rgba(245, 158, 11, 0.12) !important;
  color: #d97706 !important;
  border: 1px solid rgba(245, 158, 11, 0.25) !important;
}

.pill-rujukan, .pill-rejected, .pill-belum {
  background: rgba(239, 68, 68, 0.12) !important;
  color: #dc2626 !important;
  border: 1px solid rgba(239, 68, 68, 0.25) !important;
}

/* Student & Staff Avatars */
.student-avatar-sm, .avatar-sm {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bs-border-color);
}

/* --------------------------------------------------------------------------
   12. Tabbed Interfaces (.nav-tabs-custom & .nav-tabs)
   -------------------------------------------------------------------------- */
.nav-tabs-custom {
  background: var(--bs-card-bg) !important;
  border-radius: var(--irnis-radius) !important;
  border: 1px solid var(--bs-card-border-color) !important;
  box-shadow: var(--irnis-shadow-sm) !important;
  margin-bottom: 24px !important;
  overflow: hidden !important;
}

.nav-tabs-custom > .nav-tabs {
  background: var(--bs-tertiary-bg) !important;
  border-bottom: 1px solid var(--bs-border-color) !important;
  padding: 6px 12px 0 12px !important;
  margin: 0 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 4px !important;
}

.nav-tabs-custom > .nav-tabs > li {
  margin-bottom: -1px !important;
  list-style: none !important;
}

.nav-tabs-custom > .nav-tabs > li > a {
  border: 1px solid transparent !important;
  border-radius: 8px 8px 0 0 !important;
  padding: 10px 18px !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  color: var(--bs-secondary-color) !important;
  transition: all 0.2s ease !important;
  background: transparent !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.nav-tabs-custom > .nav-tabs > li > a:hover {
  color: var(--irnis-blue-primary) !important;
  background: rgba(43, 108, 176, 0.06) !important;
}

.nav-tabs-custom > .nav-tabs > li.active > a,
.nav-tabs-custom > .nav-tabs > li.active > a:focus,
.nav-tabs-custom > .nav-tabs > li.active > a:hover {
  color: var(--irnis-blue-primary) !important;
  background: var(--bs-card-bg) !important;
  border-color: var(--bs-border-color) var(--bs-border-color) transparent !important;
  border-bottom: 2px solid var(--bs-card-bg) !important;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.03) !important;
}

.nav-tabs-custom > .tab-content {
  background: var(--bs-card-bg) !important;
  padding: 20px !important;
  border-bottom-left-radius: 11px !important;
  border-bottom-right-radius: 11px !important;
  color: var(--bs-body-color) !important;
}

/* --------------------------------------------------------------------------
   13. Tables & Data Presentation (.table)
   -------------------------------------------------------------------------- */
.table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--bs-body-color);
  --bs-table-border-color: var(--bs-border-color-translucent);
  margin-bottom: 0;
  width: 100%;
}

.table thead th {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--bs-secondary-color);
  background-color: var(--bs-tertiary-bg);
  border-bottom: 2px solid var(--bs-border-color);
  padding: 0.85rem 1rem;
  white-space: nowrap;
  vertical-align: middle;
}

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

.table-striped > tbody > tr:nth-of-type(odd) > * {
  background-color: rgba(0, 0, 0, 0.015);
}

.table-hover > tbody > tr:hover > * {
  background-color: rgba(43, 108, 176, 0.04);
}

.table-bordered {
  border: 1px solid var(--bs-border-color);
}

.table-bordered > tbody > tr > td,
.table-bordered > thead > tr > th {
  border: 1px solid var(--bs-border-color-translucent);
}

.table-responsive {
  border-radius: 10px;
  border: 1px solid var(--bs-border-color-translucent);
  overflow-x: auto;
}

.box-body.no-padding .table-responsive {
  border: none;
  border-radius: 0;
}

/* Table action button groups */
.table td .btn-group {
  display: inline-flex;
  gap: 3px;
  background: transparent;
  border: none;
  padding: 0;
}

.table td .btn-group .btn {
  border-radius: 6px !important;
  padding: 0.25rem 0.6rem;
  font-size: 0.775rem;
}

/* --------------------------------------------------------------------------
   14. Badges, Labels, and Action Buttons (.btn-default, .label)
   -------------------------------------------------------------------------- */
.label, .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35em 0.75em;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 6px;
  color: #fff;
  letter-spacing: 0.2px;
}

.label-default { background-color: #64748b; }
.label-primary { background-color: #2b6cb0; }
.label-success { background-color: #10b981; }
.label-info    { background-color: #0ea5e9; }
.label-warning { background-color: #f59e0b; color: #1e1b4b; font-weight: 700; }
.label-danger  { background-color: #ef4444; }

.badge.bg-green  { background-color: #10b981 !important; color: #fff !important; }
.badge.bg-yellow { background-color: #f59e0b !important; color: #1e1b4b !important; font-weight: 700 !important; }
.badge.bg-red    { background-color: #ef4444 !important; color: #fff !important; }
.badge.bg-purple { background-color: #7c3aed !important; color: #fff !important; }
.badge.bg-blue   { background-color: #2b6cb0 !important; color: #fff !important; }

/* Buttons & Interactive Elements */
.btn {
  border-radius: 8px;
  font-weight: 500;
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.btn-xs {
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 5px;
}

.btn-sm {
  padding: 0.32rem 0.75rem;
  font-size: 0.815rem;
  border-radius: 6px;
}

.btn-default {
  background-color: #fff;
  border: 1px solid #cbd5e1;
  color: #334155;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn-default:hover, .btn-default:focus {
  background-color: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

.btn-primary {
  background-color: #2b6cb0;
  border-color: #2b6cb0;
  color: #fff;
}

.btn-primary:hover {
  background-color: #1a4f8b;
  border-color: #1a4f8b;
  color: #fff;
}

.irnis-actions > .btn {
  margin-right: 4px;
}

/* Text Accent Colors */
.text-blue   { color: #2b6cb0 !important; }
.text-green  { color: #10b981 !important; }
.text-red    { color: #ef4444 !important; }
.text-yellow { color: #f59e0b !important; }
.text-purple { color: #7c3aed !important; }
.text-aqua   { color: #0ea5e9 !important; }
.text-maroon { color: #be185d !important; }

/* --------------------------------------------------------------------------
   15. Callouts, Wells, Panels, & Alert Banners
   -------------------------------------------------------------------------- */
.callout {
  border-radius: 10px;
  margin: 0 0 1.25rem 0;
  padding: 1.15rem 1.35rem;
  border-left: 5px solid #cbd5e1;
  background-color: var(--bs-tertiary-bg);
  color: var(--bs-body-color);
  box-shadow: var(--irnis-shadow-sm);
}

.callout.callout-info    { border-left-color: #0ea5e9; }
.callout.callout-warning { border-left-color: #f59e0b; }
.callout.callout-danger  { border-left-color: #ef4444; }
.callout.callout-success { border-left-color: #10b981; }

.well {
  min-height: 20px;
  padding: 18px 20px;
  margin-bottom: 20px;
  background-color: var(--bs-tertiary-bg);
  border: 1px solid var(--bs-border-color-translucent);
  border-radius: 10px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
  color: var(--bs-body-color);
}
.well-sm { padding: 10px 14px; border-radius: 8px; }
.well-lg { padding: 24px; border-radius: 12px; }

.panel {
  margin-bottom: 20px;
  background-color: var(--bs-card-bg);
  border: 1px solid var(--bs-card-border-color);
  border-radius: 10px;
  box-shadow: var(--irnis-shadow-sm);
}
.panel-body { padding: 16px 20px; }
.panel-heading {
  padding: 12px 20px;
  border-bottom: 1px solid var(--bs-border-color-translucent);
  border-top-left-radius: 9px;
  border-top-right-radius: 9px;
  font-weight: 700;
}
.panel-footer {
  padding: 10px 20px;
  background-color: var(--bs-tertiary-bg);
  border-top: 1px solid var(--bs-border-color-translucent);
  border-bottom-right-radius: 9px;
  border-bottom-left-radius: 9px;
}

.irnis-demo-banner {
  background: var(--irnis-blue-light);
  border-left: 4px solid #3182ce;
  padding: 12px 18px;
  margin-bottom: 1.25rem;
  color: var(--irnis-blue-primary);
  border-radius: 8px;
}

.irnis-demo-badge {
  font-size: 10px;
  text-transform: uppercase;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bs-tertiary-bg);
  color: var(--bs-body-color);
}

/* Empty State Cards */
.empty-state, [style*="border: 1px dashed"] {
  background-color: var(--bs-tertiary-bg) !important;
  border-color: var(--bs-border-color) !important;
  border-radius: 12px !important;
  padding: 40px 20px !important;
}

/* --------------------------------------------------------------------------
   16. Modals Refinements
   -------------------------------------------------------------------------- */
.modal-content {
  border-radius: 14px;
  border: 1px solid var(--bs-border-color-translucent, rgba(0, 0, 0, 0.15));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  background-color: var(--bs-card-bg, #ffffff) !important;
}

.modal-header {
  padding: 1.15rem 1.45rem;
  background: linear-gradient(135deg, #1a365d 0%, #2b6cb0 100%) !important;
  color: #fff !important;
  border-bottom: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.modal-header .btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.modal-header .btn-close:hover {
  opacity: 1;
}

.close {
  float: right;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: #fff !important;
  opacity: 0.85;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.close:hover, .close:focus {
  color: #fff !important;
  text-decoration: none;
  opacity: 1;
}

.modal-body {
  padding: 1.5rem;
  background-color: var(--bs-card-bg, #ffffff) !important;
  color: var(--bs-body-color, #212529) !important;
}

.modal-footer {
  padding: 1rem 1.45rem;
  border-top: 1px solid var(--bs-border-color-translucent, #e2e8f0);
  background-color: var(--bs-tertiary-bg, #f8fafc) !important;
}

/* Modal Form Controls Styling */
.modal-body .form-group {
  margin-bottom: 1rem;
}

.modal-body label {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.35rem;
  color: var(--bs-body-color, #334155);
  display: inline-block;
}

.modal-body .form-control,
.modal-body select.form-control,
.modal-body textarea.form-control {
  border-radius: 6px;
  border: 1px solid var(--bs-border-color, #cbd5e1);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  background-color: var(--bs-body-bg, #ffffff);
  color: var(--bs-body-color, #1e293b);
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.modal-body .form-control:focus {
  border-color: #2b6cb0;
  box-shadow: 0 0 0 0.2rem rgba(43, 108, 176, 0.18);
  outline: 0;
}

/* --------------------------------------------------------------------------
   17. Select2 Plugin Refinements
   -------------------------------------------------------------------------- */
.select2-container .select2-selection--single {
  height: calc(1.5em + 0.75rem + 2px) !important;
  padding: 0.35rem 0.75rem !important;
  border: 1px solid var(--bs-border-color) !important;
  border-radius: 8px !important;
  background-color: var(--bs-body-bg) !important;
  color: var(--bs-body-color) !important;
  display: flex !important;
  align-items: center !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--bs-body-color) !important;
  padding-left: 0 !important;
  line-height: normal !important;
  font-size: 0.875rem !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100% !important;
  right: 8px !important;
}

.select2-dropdown {
  border-color: var(--bs-border-color) !important;
  background-color: #ffffff !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25) !important;
  border-radius: 8px !important;
  z-index: 1065 !important;
}

.select2-container--open {
  z-index: 1065 !important;
}

.select2-container--default .select2-results__option {
  padding: 8px 12px !important;
  color: var(--bs-body-color) !important;
  font-size: 0.875rem !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: #2b6cb0 !important;
  color: #fff !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  border: 1px solid var(--bs-border-color) !important;
  border-radius: 6px !important;
  background-color: var(--bs-body-bg) !important;
  color: var(--bs-body-color) !important;
}

/* --------------------------------------------------------------------------
   18. Progress Bar & Pagination Compatibility
   -------------------------------------------------------------------------- */
.progress-bar.bg-green  { background-color: #10b981 !important; }
.progress-bar.bg-teal   { background-color: #0d9488 !important; }
.progress-bar.bg-aqua   { background-color: #0284c7 !important; }
.progress-bar.bg-yellow { background-color: #f59e0b !important; }
.progress-bar.bg-red    { background-color: #ef4444 !important; }
.progress-bar.bg-purple { background-color: #7c3aed !important; }
.progress-bar.bg-blue   { background-color: #2563eb !important; }

.pagination > li > a, .pagination > li > span {
  position: relative;
  float: left;
  padding: 6px 12px;
  margin-left: -1px;
  color: var(--irnis-blue-primary);
  text-decoration: none;
  background-color: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
}
.pagination > li:first-child > a, .pagination > li:first-child > span {
  margin-left: 0;
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
}
.pagination > li:last-child > a, .pagination > li:last-child > span {
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
}
.pagination > .active > a, .pagination > .active > span {
  z-index: 3;
  color: #fff !important;
  background-color: var(--irnis-blue-primary) !important;
  border-color: var(--irnis-blue-primary) !important;
}

/* --------------------------------------------------------------------------
   19. Dark Mode Specific Overrides & High-Contrast Polishing
   -------------------------------------------------------------------------- */
[data-bs-theme="dark"] .bg-body-tertiary {
  background-color: #0b1120 !important;
}

[data-bs-theme="dark"] .btn-default {
  background-color: #1e293b;
  border-color: rgba(255, 255, 255, 0.14);
  color: #f1f5f9;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .btn-default:hover, [data-bs-theme="dark"] .btn-default:focus {
  background-color: #334155;
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

[data-bs-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > * {
  background-color: rgba(255, 255, 255, 0.02);
  color: var(--bs-body-color);
}

[data-bs-theme="dark"] .table-hover > tbody > tr:hover > * {
  background-color: rgba(96, 165, 250, 0.08);
}

[data-bs-theme="dark"] .table thead th {
  background-color: rgba(255, 255, 255, 0.03);
}

/* Hero Banners in Dark Mode */
[data-bs-theme="dark"] .uks-hero,
[data-bs-theme="dark"] .perizinan-hero,
[data-bs-theme="dark"] .prestasi-hero,
[data-bs-theme="dark"] .cuti-hero,
[data-bs-theme="dark"] .evaluasi-hero,
[data-bs-theme="dark"] .payroll-hero,
[data-bs-theme="dark"] .konseling-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #3b0764 100%) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

/* Status Pills in Dark Mode */
[data-bs-theme="dark"] .pill-selesai,
[data-bs-theme="dark"] .pill-approved,
[data-bs-theme="dark"] .pill-lunas {
  background: rgba(16, 185, 129, 0.18) !important;
  color: #34d399 !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
}

[data-bs-theme="dark"] .pill-observasi,
[data-bs-theme="dark"] .pill-pending,
[data-bs-theme="dark"] .pill-menunggu {
  background: rgba(245, 158, 11, 0.18) !important;
  color: #fbbf24 !important;
  border-color: rgba(245, 158, 11, 0.35) !important;
}

[data-bs-theme="dark"] .pill-rujukan,
[data-bs-theme="dark"] .pill-rejected,
[data-bs-theme="dark"] .pill-belum {
  background: rgba(239, 68, 68, 0.18) !important;
  color: #f87171 !important;
  border-color: rgba(239, 68, 68, 0.35) !important;
}

/* Neutralize legacy hardcoded white/grey styles in views for dark mode */
[data-bs-theme="dark"] [style*="background-color: #f4f6f9"],
[data-bs-theme="dark"] [style*="background-color: #f8fafc"],
[data-bs-theme="dark"] [style*="background-color: #f7fafc"],
[data-bs-theme="dark"] [style*="background-color: #f9fafb"],
[data-bs-theme="dark"] [style*="background-color: #fafafa"],
[data-bs-theme="dark"] [style*="background-color: #fff"],
[data-bs-theme="dark"] [style*="background-color: #fdfdfd"],
[data-bs-theme="dark"] [style*="background: #f8fafc"],
[data-bs-theme="dark"] [style*="background: #f7fafc"],
[data-bs-theme="dark"] [style*="background: #f9fafb"],
[data-bs-theme="dark"] [style*="background: #f9f9f9"],
[data-bs-theme="dark"] [style*="background: #edf2f7"],
[data-bs-theme="dark"] [style*="background-color: #edf2f7"],
[data-bs-theme="dark"] [style*="background: #fafafa"],
[data-bs-theme="dark"] [style*="background: #fff"],
[data-bs-theme="dark"] [style*="background: #ffffff"],
[data-bs-theme="dark"] [style*="background:#fff"],
[data-bs-theme="dark"] [style*="background:#f"] {
  background-color: var(--bs-tertiary-bg) !important;
  color: var(--bs-body-color) !important;
  border-color: var(--bs-border-color) !important;
}

/* Neutralize dark text colors for high readability on dark backgrounds */
[data-bs-theme="dark"] [style*="color: #334155"],
[data-bs-theme="dark"] [style*="color: #1e293b"],
[data-bs-theme="dark"] [style*="color: #4a5568"],
[data-bs-theme="dark"] [style*="color: #2d3748"],
[data-bs-theme="dark"] [style*="color: #718096"],
[data-bs-theme="dark"] [style*="color: #0f172a"] {
  color: var(--bs-body-color) !important;
}

[data-bs-theme="dark"] [style*="color: #1e3a8a"],
[data-bs-theme="dark"] [style*="color: #1a365d"],
[data-bs-theme="dark"] [style*="color:#1a365d"],
[data-bs-theme="dark"] [style*="color: #2b6cb0"] {
  color: #93c5fd !important;
}

[data-bs-theme="dark"] [style*="color: #276749"],
[data-bs-theme="dark"] [style*="color: #38a169"] {
  color: #6ee7b7 !important;
}

[data-bs-theme="dark"] [style*="color: #c05621"],
[data-bs-theme="dark"] [style*="color: #dd6b20"] {
  color: #fcd34d !important;
}

[data-bs-theme="dark"] [style*="color: #9b2c2c"],
[data-bs-theme="dark"] [style*="color: #e53e3e"] {
  color: #fca5a5 !important;
}

[data-bs-theme="dark"] [style*="color:#6b46c1"],
[data-bs-theme="dark"] [style*="color: #6b46c1"] {
  color: #d8b4fe !important;
}

[data-bs-theme="dark"] [style*="border: 1px solid #e2e8f0"],
[data-bs-theme="dark"] [style*="border: 1px solid #edf2f7"] {
  border-color: var(--bs-border-color) !important;
}

/* AI Assistant in Dark Mode */
[data-bs-theme="dark"] .ai-chat-container {
  background: var(--bs-card-bg);
  border-color: var(--bs-card-border-color);
}

[data-bs-theme="dark"] .ai-chat-messages {
  background-color: var(--bs-body-bg);
}

[data-bs-theme="dark"] .chat-bubble.ai {
  background: var(--bs-tertiary-bg);
  color: var(--bs-body-color);
  border-color: var(--bs-border-color);
}

[data-bs-theme="dark"] .ai-data-card {
  background: var(--bs-body-bg);
  border-color: var(--bs-border-color);
  color: var(--bs-body-color);
}

[data-bs-theme="dark"] .ai-input-container {
  background-color: var(--bs-card-bg);
  border-color: var(--bs-border-color);
}

/* DataTables pagination in Dark Mode */
[data-bs-theme="dark"] .dataTables_wrapper .dataTables_paginate .paginate_button {
  color: var(--bs-body-color) !important;
}

[data-bs-theme="dark"] .dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: #2b6cb0 !important;
  border-color: #2b6cb0 !important;
  color: #fff !important;
}

[data-bs-theme="dark"] .dataTables_wrapper .dataTables_filter input,
[data-bs-theme="dark"] .dataTables_wrapper .dataTables_length select {
  background-color: var(--bs-body-bg);
  border-color: var(--bs-border-color);
  color: var(--bs-body-color);
}
