/* ==========================================================================
   ADMINLTE V4 CUSTOM EXTENSIONS & OVERRIDES
   Catatan Pembayaran
   ========================================================================== */

/* Area Badge Styling */
.badge-area {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 4px 8px;
  border-radius: 4px;
}

/* Status Badges */
.badge-lunas {
  background-color: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-belum {
  background-color: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Small-box Custom Tweaks for Dark/Light Themes */
.small-box {
  position: relative;
  display: block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.small-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.small-box .inner {
  padding: 1.25rem;
}

.small-box .small-box-icon {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 0;
  font-size: 50px;
  color: rgba(255, 255, 255, 0.25);
  transition: transform 0.3s ease;
}

.small-box:hover .small-box-icon {
  transform: scale(1.1);
}

.small-box-footer {
  background-color: rgba(0, 0, 0, 0.15);
  color: rgba(255, 255, 255, 0.8);
  display: block;
  padding: 6px 0;
  text-align: center;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.small-box-footer:hover {
  background-color: rgba(0, 0, 0, 0.25);
  color: #ffffff;
}

/* Modal Custom Dark/Light adjustments */
[data-bs-theme="dark"] .modal-content {
  background-color: #1e293b;
  color: #f8fafc;
  border-color: #334155;
}

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

/* User avatar circle in topbar */
.user-avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7 0%, #4f46e5 100%);
  color: #ffffff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* Login Page AdminLTE overrides */
.login-page-custom {
  background: radial-gradient(circle at 50% 30%, #1e293b 0%, #0f172a 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-box-custom {
  width: 100%;
  max-width: 420px;
}

.login-card-custom {
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* High-Contrast Nominal Text Styling for Dark & Light Modes */
.text-nominal {
  color: #0284c7 !important;
  font-weight: 700;
}

/* ==========================================================================
   DARK MODE CONTRAST & ACCESSIBILITY OVERRIDES
   ========================================================================== */

/* Dark Mode Global Text Color Enhancements */
[data-bs-theme="dark"] {
  --bs-body-color: #f1f5f9;
  --bs-body-bg: #0f172a;
  --bs-secondary-color: #cbd5e1;
}

/* Secondary & Muted Text Visibility in Dark Mode */
[data-bs-theme="dark"] .text-secondary,
[data-bs-theme="dark"] .text-muted,
[data-bs-theme="dark"] .text-body-secondary {
  color: #cbd5e1 !important; /* Bright soft slate gray */
}

/* Table Text & Header High Contrast */
[data-bs-theme="dark"] .table {
  --bs-table-color: #f1f5f9;
  --bs-table-hover-color: #ffffff;
  --bs-table-striped-color: #f8fafc;
}

[data-bs-theme="dark"] .table-light,
[data-bs-theme="dark"] .table thead th {
  background-color: #1e293b !important;
  color: #f8fafc !important;
  border-bottom: 2px solid #334155 !important;
  font-weight: 700;
}

[data-bs-theme="dark"] .table td,
[data-bs-theme="dark"] .table th {
  border-color: #334155 !important;
  color: #f1f5f9 !important;
}

/* Form Controls & Select Inputs in Dark Mode */
[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
  background-color: #1e293b !important;
  color: #f8fafc !important;
  border-color: #475569 !important;
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
  background-color: #0f172a !important;
  color: #ffffff !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 0.25rem rgba(56, 189, 248, 0.25) !important;
}

[data-bs-theme="dark"] .form-label {
  color: #f1f5f9 !important;
  font-weight: 600;
}

/* Sidebar Navigation Header High Contrast */
[data-bs-theme="dark"] .sidebar-menu .nav-header {
  color: #94a3b8 !important;
  font-weight: 700;
  letter-spacing: 0.8px;
}

/* Button Outline Secondary High Contrast Override */
[data-bs-theme="dark"] .btn-outline-secondary {
  color: #cbd5e1 !important;
  border-color: #64748b !important;
}

[data-bs-theme="dark"] .btn-outline-secondary:hover {
  background-color: #334155 !important;
  color: #ffffff !important;
}

/* Vibrant Utility Text Colors in Dark Mode */
[data-bs-theme="dark"] .text-nominal,
[data-bs-theme="dark"] .text-primary,
[data-bs-theme="dark"] .text-info {
  color: #38bdf8 !important; /* Vibrant Electric Cyan / Sky Blue */
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.2);
}

[data-bs-theme="dark"] .text-success {
  color: #34d399 !important; /* Bright Emerald Green */
}

[data-bs-theme="dark"] .text-danger {
  color: #f87171 !important; /* Bright Coral Red */
}

[data-bs-theme="dark"] .text-warning {
  color: #fbbf24 !important; /* Bright Amber Yellow */
}
