/* ==========================================
   SOLOK SELATAN PEMDA ADMIN THEME
   Soft Modern Organic Style with Solsel Palette
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;500;600;700;800&display=swap');

:root,
[data-bs-theme="light"] {
  /* Requested Color Palette */
  --text: #0c0c0c;
  --background: #f9f8f6;
  --primary: #b1a75c;
  --primary-hover: #9e944d;
  --primary-rgb: 177, 167, 92;
  --secondary: #ded595;
  --secondary-rgb: 222, 213, 149;
  --accent: #e0d053;
  --accent-rgb: 224, 208, 83;

  /* Solsel Palette Variables (Light Theme) */
  --text-main: #0c0c0c;
  --bg-main: #f9f8f6;
  --solsel-primary: #b1a75c;
  --solsel-primary-hover: #9e944d;
  --solsel-secondary: #ded595;
  --solsel-accent: #e0d053;

  /* System Mapping Variables (Light Theme) */
  --font-family-base: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "SF Pro", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --card-bg: #ffffff;
  --card-sub-bg: #f5f4f0;
  --card-sub-hover: #eae7df;
  --btn-dark: #1d1d1f;
  --btn-dark-hover: #000000;
  --btn-icon-bg: #f5f4f0;
  --btn-icon-hover: #eae7df;
  --text-dark: #1d1d1f;
  --text-muted: #6e6e73;
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 18px;
  --radius-pill: 999px;
  --hairline-border: 1px solid rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 1px 3px rgba(0, 0, 0, 0.04), 0 6px 18px rgba(0, 0, 0, 0.03);

  /* Bootstrap standard mappings - No Blue */
  --bs-blue: #b1a75c;
  --bs-cyan: #ded595;
  --bs-primary: #b1a75c;
  --bs-primary-rgb: 177, 167, 92;
  --bs-secondary: #ded595;
  --bs-secondary-rgb: 222, 213, 149;
  --bs-info: #ded595;
  --bs-info-rgb: 222, 213, 149;
  --bs-info-text-emphasis: #756a22;
  --bs-info-bg-subtle: #f9f6e5;
  --bs-info-border-subtle: #ded595;
  --bs-link-color: #b1a75c;
  --bs-link-color-rgb: 177, 167, 92;
  --bs-link-hover-color: #9e944d;
  --bs-link-hover-color-rgb: 158, 148, 77;
  --bs-body-color: #1d1d1f;
  --bs-body-bg: #f9f8f6;
}

/* Dark Theme Overrides */
[data-bs-theme="dark"] {
  --text: #f5f4f0;
  --background: #141412;
  --primary: #c5bb6c;
  --primary-hover: #d8ce7e;
  --primary-rgb: 197, 187, 108;
  --secondary: #ded595;
  --accent: #ecd962;

  --text-main: #f5f4f0;
  --bg-main: #141412;
  --solsel-primary: #c5bb6c;
  --solsel-primary-hover: #d8ce7e;
  --solsel-secondary: #ded595;
  --solsel-accent: #ecd962;

  --card-bg: #1c1c1e;
  --card-sub-bg: #2c2c2e;
  --card-sub-hover: #3a3a3c;
  --btn-dark: #f5f5f7;
  --btn-dark-hover: #ffffff;
  --btn-icon-bg: #2c2c2e;
  --btn-icon-hover: #3a3a3c;
  --text-dark: #f5f5f7;
  --text-muted: #8e8e93;
  --hairline-border: 1px solid rgba(255, 255, 255, 0.12);
  --shadow-soft: 0 1px 3px rgba(0, 0, 0, 0.35), 0 8px 24px rgba(0, 0, 0, 0.35);

  --bs-blue: #c5bb6c;
  --bs-cyan: #ded595;
  --bs-primary: #c5bb6c;
  --bs-primary-rgb: 197, 187, 108;
  --bs-secondary: #ded595;
  --bs-secondary-rgb: 222, 213, 149;
  --bs-info: #ded595;
  --bs-info-rgb: 222, 213, 149;
  --bs-info-text-emphasis: #ded595;
  --bs-info-bg-subtle: #2d2b1c;
  --bs-info-border-subtle: #4a472a;
  --bs-link-color: #c5bb6c;
  --bs-link-color-rgb: 197, 187, 108;
  --bs-link-hover-color: #d8ce7e;
  --bs-link-hover-color-rgb: 216, 206, 126;
  --bs-body-color: #f5f4f0;
  --bs-body-bg: #141412;
}

/* Base HTML & Body Setup (90% Scale matching frontend) */
html {
  font-size: 90%;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-main) !important;
  color: var(--text-dark);
  font-family: var(--font-family-base) !important;
  position: relative;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  zoom: 90%;
}

.glass-bg {
  background-color: var(--bg-main);
}

/* Typography Improvements */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-family-base) !important;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-dark);
}

/* Floating Clean Containers */
.sidebar-glass,
.navbar-glass,
.glass-card,
.card {
  background: var(--card-bg) !important;
  border-radius: var(--radius-lg, 16px) !important;
  border: var(--hairline-border) !important;
  box-shadow: var(--shadow-soft) !important;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.glass-sub-card {
  background: var(--card-sub-bg) !important;
  border-radius: var(--radius-md, 12px) !important;
  border: var(--hairline-border) !important;
  transition: all 0.2s ease;
}

.glass-sub-card:hover {
  background: var(--card-sub-hover) !important;
  transform: translateY(-1px);
}

.navbar-glass {
  border-radius: var(--radius-pill) !important;
}

.navbar-glass .input-group .form-control {
  background-color: var(--card-sub-bg) !important;
  color: var(--text-dark) !important;
  border-radius: var(--radius-pill) !important;
}

/* ==========================================================================
   APPLE HIG KPI STAT CARDS & QUICK ACTION
   ========================================================================== */

.p-3\.5 {
  padding: 1.25rem !important;
}

.apple-kpi-card {
  background: var(--card-bg) !important;
  border: var(--hairline-border) !important;
  border-radius: 16px !important;
  padding: 1.25rem 1.35rem !important;
  box-shadow: var(--shadow-soft) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  min-height: 148px !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease !important;
}

.apple-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
}

[data-bs-theme="dark"] .apple-kpi-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45) !important;
}

.apple-kpi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.apple-kpi-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.2;
}

.apple-kpi-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.apple-kpi-value {
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--text-dark);
  line-height: 1.1;
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
  font-feature-settings: 'tnum';
}

.apple-kpi-footer {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Solsel Accent Featured Quick Action Card */
.hero-card-solsel,
.apple-action-card {
  background: var(--solsel-primary) !important;
  border: 1px solid var(--solsel-primary) !important;
  border-radius: 16px !important;
  padding: 1.25rem 1.35rem !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  min-height: 148px !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease !important;
}

.hero-card-solsel:hover,
.apple-action-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14) !important;
}

.hero-card-solsel *,
.apple-action-card * {
  color: #ffffff;
}

.hero-card-solsel .btn,
.apple-action-btn {
  background: #ffffff !important;
  color: #1d1d1f !important;
  border-radius: 999px !important;
  font-size: 0.815rem !important;
  font-weight: 600 !important;
  padding: 8px 16px !important;
  border: none !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12) !important;
  transition: all 0.18s ease !important;
  text-align: center;
  text-decoration: none !important;
  display: block;
  width: 100%;
}

.hero-card-solsel .btn:hover,
.apple-action-btn:hover {
  background: #f5f5f7 !important;
  color: #000000 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18) !important;
}

.hero-card-solsel .btn:active,
.apple-action-btn:active {
  transform: scale(0.98) !important;
}

/* Buttons Styling */
.btn-dark-pill,
.btn-glass-primary,
.btn-primary,
a.btn-primary,
button.btn-primary,
input[type="submit"].btn-primary {
  background-color: #b1a75c !important;
  background-color: var(--solsel-primary, #b1a75c) !important;
  color: #ffffff !important;
  border-radius: var(--radius-pill) !important;
  padding: 10px 22px;
  font-weight: 600;
  border: 1px solid var(--solsel-primary, #b1a75c) !important;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-decoration: none !important;
}

.btn-primary *,
a.btn-primary *,
button.btn-primary *,
.btn-dark-pill *,
.btn-glass-primary * {
  color: #ffffff !important;
}

.btn-dark-pill:hover,
.btn-glass-primary:hover,
.btn-primary:hover,
a.btn-primary:hover,
button.btn-primary:hover,
.btn-dark-pill:focus,
.btn-glass-primary:focus,
.btn-primary:focus,
a.btn-primary:focus,
button.btn-primary:focus,
.btn-primary:active,
a.btn-primary:active,
button.btn-primary:active {
  background-color: #9e944d !important;
  background-color: var(--solsel-primary-hover, #9e944d) !important;
  border-color: #9e944d !important;
  border-color: var(--solsel-primary-hover, #9e944d) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.btn-primary:hover *,
a.btn-primary:hover *,
button.btn-primary:hover *,
.btn-primary:focus *,
a.btn-primary:focus *,
button.btn-primary:focus *,
.btn-primary:active *,
a.btn-primary:active *,
button.btn-primary:active *,
.btn-dark-pill:hover *,
.btn-glass-primary:hover * {
  color: #ffffff !important;
}

/* Global Link and Utilities - Never Blue */
a, a:visited {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--solsel-primary, #b1a75c);
}
a.text-primary, a.text-primary:visited {
  color: var(--solsel-primary, #b1a75c) !important;
}
a.text-primary:hover, a.text-primary:focus {
  color: var(--solsel-primary-hover, #9e944d) !important;
}
.text-primary {
  color: var(--solsel-primary, #b1a75c) !important;
}
.text-info {
  color: #756a22 !important;
}
[data-bs-theme="dark"] .text-info {
  color: #ded595 !important;
}
.bg-info-subtle {
  background-color: var(--bs-info-bg-subtle, #f9f6e5) !important;
}
.border-info, .border-info-subtle {
  border-color: var(--bs-info-border-subtle, #ded595) !important;
}
.bg-primary-subtle {
  background-color: rgba(177, 167, 92, 0.12) !important;
}
.border-primary, .border-primary-subtle {
  border-color: var(--solsel-primary, #b1a75c) !important;
}

.btn-glass-pill {
  background: var(--btn-icon-bg);
  border: none;
  color: var(--text-dark);
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
}

.btn-glass-pill:hover {
  background: var(--btn-icon-hover);
}

#theme-toggle-btn {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  border: var(--hairline-border) !important;
  background: var(--card-sub-bg) !important;
  color: var(--text-dark) !important;
  box-shadow: none !important;
}

#theme-toggle-btn:hover {
  background: var(--btn-icon-hover) !important;
  border-color: rgba(120, 120, 128, 0.3) !important;
  transform: translateY(-1px);
}

#theme-toggle-btn #theme-toggle-icon {
  font-size: 1rem;
  line-height: 1;
}

/* Uniform Form Styling (16px Radius) */
.form-control,
.form-select {
  border-radius: 16px !important;
  background-color: var(--card-sub-bg) !important;
  color: var(--text-dark) !important;
  border: 1px solid transparent !important;
  padding: 0.625rem 1rem;
  transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
  background-color: var(--card-bg) !important;
  border-color: rgba(0, 122, 255, 0.45) !important;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2) !important;
}

/* File Upload Customization */
input[type="file"].form-control {
  padding: 0.4rem 0.75rem !important;
}

input[type="file"].form-control::file-selector-button {
  background-color: var(--solsel-primary) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: var(--radius-pill) !important;
  padding: 0.4rem 1rem !important;
  margin-right: 0.75rem !important;
  font-weight: 600;
  transition: all 0.2s ease;
}

input[type="file"].form-control::file-selector-button:hover {
  background-color: var(--solsel-primary-hover) !important;
}

/* Table Styling */
.glass-table {
  background: transparent !important;
  color: var(--text-dark);
  border-collapse: separate;
  border-spacing: 0 8px !important;
}

.glass-table thead th {
  background: transparent !important;
  border: none !important;
  color: var(--text-muted) !important;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 10px 18px !important;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.glass-table tbody tr {
  background: var(--card-sub-bg) !important;
  transition: all 0.2s ease;
}

.glass-table tbody tr td {
  padding: 14px 18px !important;
  border: none !important;
  vertical-align: middle;
  color: var(--text-dark) !important;
}

.glass-table tbody tr td:first-child {
  border-top-left-radius: 16px !important;
  border-bottom-left-radius: 16px !important;
}

.glass-table tbody tr td:last-child {
  border-top-right-radius: 16px !important;
  border-bottom-right-radius: 16px !important;
}

.glass-table tbody tr:hover {
  background: var(--card-sub-hover) !important;
  transform: translateY(-1px);
}

/* Badges */
.glass-badge {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.75rem;
}

.badge-solsel {
  background: rgba(177, 167, 92, 0.18);
  color: var(--solsel-primary);
}

/* Admin Layout Grid Structure */
.admin-layout-wrapper {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  width: 100%;
  min-height: calc(100vh - 100px);
  position: relative;
}

.sidebar-wrapper {
  width: 76px;
  flex-shrink: 0 !important;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: sticky;
  top: 20px;
}

.sidebar-wrapper.expanded {
  width: 250px;
}

.main-content-wrapper {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: calc(100% - 80px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-wrapper.expanded + .main-content-wrapper {
  width: calc(100% - 250px);
}

/* Sidebar Links */
.sidebar-link {
  display: flex;
  align-items: center;
  width: 44px;
  height: 44px;
  padding: 0 !important;
  margin: 0 auto;
  border-radius: 50% !important;
  color: var(--text-muted);
  text-decoration: none !important;
  transition: all 0.25s ease;
}

.sidebar-link:hover {
  background: var(--btn-icon-bg);
  color: var(--solsel-primary);
}

.sidebar-link.active {
  background: var(--solsel-primary) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.sidebar-wrapper.expanded .sidebar-link {
  width: 100% !important;
  border-radius: var(--radius-pill) !important;
  padding-right: 16px !important;
  overflow: visible !important;
}

.sidebar-wrapper.expanded .sidebar-text {
  display: inline-block !important;
  opacity: 1 !important;
  visibility: visible !important;
  margin-left: 6px;
}

.sidebar-wrapper.expanded .sidebar-arrow {
  display: inline-flex !important;
  align-items: center;
  margin-left: auto;
}

.sidebar-wrapper:not(.expanded) .sidebar-link {
  overflow: hidden !important;
  justify-content: center !important;
}

.sidebar-wrapper:not(.expanded) .sidebar-text,
.sidebar-text {
  display: none;
  opacity: 0;
  visibility: hidden;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 600;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.sidebar-wrapper:not(.expanded) .sidebar-arrow,
.sidebar-arrow {
  display: none !important;
  margin-left: auto;
  transition: transform 0.3s ease;
}

.sidebar-icon {
  min-width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Responsiveness */
@media (max-width: 767.98px) {
  .main-content-wrapper {
    width: 100% !important;
  }
}
/* 1. Menghilangkan panah segitiga bawaan Bootstrap dropdown */
.sidebar-nav .dropdown-toggle::after,
.nav-link.dropdown-toggle::after {
  display: none !important;
}

/* ==========================================================================
   PERFECT ROUND SIDEBAR TOGGLE BUTTON (LIGHT & DARK MODE FIX)
   ========================================================================== */

.btn-sidebar-toggle {
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  border: 1px solid rgba(177, 167, 92, 0.25) !important;
  background-color: var(--card-sub-bg, #f2efe9) !important;
  color: var(--text-dark, #0c0c0c) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 auto !important;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06) !important;
  transition: all 0.25s ease-in-out;
}

/* Pastikan Icon di dalam Tombol Selalu Kelihatan */
.btn-sidebar-toggle i {
  color: var(--text-dark, #0c0c0c) !important;
  font-size: 1.1rem;
  line-height: 1;
  transition: color 0.2s ease;
}

/* Hover State */
.btn-sidebar-toggle:hover {
  background-color: var(--solsel-primary, #b1a75c) !important;
  border-color: var(--solsel-primary, #b1a75c) !important;
  transform: scale(1.05);
}

.btn-sidebar-toggle:hover i {
  color: #ffffff !important;
}

/* Penyesuaian Khusus saat Dark Mode */
[data-bs-theme="dark"] .btn-sidebar-toggle {
  background-color: #272822 !important;
  color: #f5f4f0 !important;
  border: 1px solid rgba(197, 187, 108, 0.25) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
}

[data-bs-theme="dark"] .btn-sidebar-toggle i {
  color: #f5f4f0 !important;
}

[data-bs-theme="dark"] .btn-sidebar-toggle:hover {
  background-color: var(--solsel-primary, #c5bb6c) !important;
  border-color: var(--solsel-primary, #c5bb6c) !important;
}

[data-bs-theme="dark"] .btn-sidebar-toggle:hover i {
  color: #141412 !important;
}

/* ==========================================
   AUTHENTICATION STYLES (APPLE HIG SYSTEM)
   ========================================== */

.auth-container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  background: var(--bg-main);
}

.auth-card-apple {
  width: 100%;
  max-width: 1060px;
  background: var(--card-bg);
  border: var(--hairline-border);
  border-radius: 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 24px 48px -4px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  transition: all 0.3s ease;
}

[data-bs-theme="dark"] .auth-card-apple {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 25px 60px rgba(0, 0, 0, 0.6);
}

/* Left Branding Side */
.auth-branding-side {
  background: var(--card-sub-bg);
  border-right: var(--hairline-border);
}

.auth-crest-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  flex-shrink: 0;
}

[data-bs-theme="dark"] .auth-crest-wrap {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.auth-crest-img {
  width: 44px;
  height: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.auth-brand-kicker {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.auth-brand-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-dark);
}

.auth-brand-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.auth-feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.auth-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  background: var(--card-bg);
  border: var(--hairline-border);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.auth-feature-item:hover {
  transform: translateX(4px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.auth-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.icon-emerald { background: rgba(16, 185, 129, 0.14); color: #10b981; }
.icon-blue { background: rgba(0, 113, 227, 0.14); color: #0071e3; }
.icon-gold { background: rgba(177, 167, 92, 0.18); color: var(--solsel-primary); }

.auth-feature-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
}

.auth-feature-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-top: 2px;
}

.auth-security-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: var(--hairline-border);
}

.auth-security-badge i {
  color: #10b981;
  font-size: 0.85rem;
}

/* Right Form Side */
.auth-form-side {
  background: var(--card-bg);
}

.auth-header .auth-title {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
}

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

/* Apple Alerts */
.apple-alert {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  font-size: 0.85rem;
}

.apple-alert-success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #059669;
}

[data-bs-theme="dark"] .apple-alert-success {
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.25);
}

.apple-alert-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #dc2626;
}

[data-bs-theme="dark"] .apple-alert-error {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.25);
}

.apple-alert-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
}

.apple-alert-content {
  display: flex;
  flex-direction: column;
}

.apple-alert-title {
  font-weight: 600;
  font-size: 0.825rem;
  line-height: 1.2;
}

.apple-alert-text {
  font-size: 0.775rem;
  opacity: 0.9;
}

/* Apple Form Inputs */
.form-group-apple {
  position: relative;
}

.apple-label {
  display: block;
  font-size: 0.815rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.45rem;
  letter-spacing: -0.01em;
}

.apple-input-wrapper {
  display: flex;
  align-items: center;
  background: var(--card-sub-bg);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  height: 46px;
  padding: 0 0.85rem;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-bs-theme="dark"] .apple-input-wrapper {
  border-color: rgba(255, 255, 255, 0.1);
}

.apple-input-wrapper:focus-within {
  background: var(--card-bg);
  border-color: rgba(0, 122, 255, 0.45) !important;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2) !important;
}

.apple-input-wrapper.has-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.apple-input-prefix {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-right: 0.6rem;
  display: flex;
  align-items: center;
}

.apple-input {
  flex: 1;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: var(--text-dark) !important;
  font-size: 0.875rem;
  font-family: var(--font-family-base) !important;
  height: 100%;
  padding: 0;
}

.apple-input::placeholder {
  color: var(--text-muted);
  opacity: 0.65;
}

.apple-input-suffix-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0 0.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}

.apple-input-suffix-btn:hover {
  color: var(--text-dark);
}

.apple-input-error {
  font-size: 0.75rem;
  color: #ef4444;
  margin-top: 0.35rem;
  font-weight: 500;
}

/* Apple Tactile Primary Button */
.btn-apple-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 46px;
  background: var(--solsel-primary);
  color: #ffffff !important;
  border: none;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.btn-apple-primary * {
  color: #ffffff !important;
}

.btn-apple-primary:hover {
  background: var(--solsel-primary-hover);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.btn-apple-primary:active {
  transform: scale(0.985);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Apple Icon Button (Theme Toggle) */
.btn-apple-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--card-sub-bg);
  border: var(--hairline-border);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-apple-icon:hover {
  background: var(--card-sub-hover);
  transform: scale(1.05);
}

.btn-apple-icon:active {
  transform: scale(0.95);
}

/* Apple Checkbox */
.apple-checkbox-container {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
}

.apple-checkbox {
  width: 17px;
  height: 17px;
  border-radius: 5px;
  border: 1.5px solid rgba(0, 0, 0, 0.25);
  accent-color: var(--solsel-primary);
  cursor: pointer;
}

[data-bs-theme="dark"] .apple-checkbox {
  border-color: rgba(255, 255, 255, 0.3);
}

.apple-checkbox-label {
  font-size: 0.815rem;
  font-weight: 500;
  color: var(--text-dark);
}

.apple-link-subtle {
  font-size: 0.815rem;
  font-weight: 600;
  color: var(--solsel-primary);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.apple-link-subtle:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.815rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.auth-back-link:hover {
  color: var(--text-dark);
}

.auth-top-hint {
  font-size: 0.815rem;
  color: var(--text-muted);
}

.auth-top-action {
  font-weight: 600;
  color: var(--solsel-primary);
  text-decoration: none;
}

.auth-legal-footer {
  border-top: var(--hairline-border);
}

.auth-legal-link {
  color: var(--solsel-primary);
  font-weight: 500;
  text-decoration: none;
}

.auth-legal-link:hover {
  text-decoration: underline;
}

/* Legacy Auth Support */
.auth-card {
  width: 100%;
  max-width: 1100px;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

.auth-branding-panel {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-right: 2rem;
}

.auth-badge-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  background: var(--card-sub-bg);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  transition: all 0.2s ease;
}

.auth-badge-pill:hover {
  background: var(--card-sub-hover);
}

.auth-card .input-group {
  border-radius: 12px;
  overflow: hidden;
  background: var(--card-sub-bg);
  transition: all 0.2s ease;
}

.auth-card .input-group:focus-within {
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.25) !important;
  background: var(--card-sub-hover);
}

.auth-card .form-control,
.auth-card .input-group-text,
.auth-card .input-group .btn {
  background: transparent !important;
  color: var(--text-dark) !important;
  border: none !important;
}

.auth-card .form-control::placeholder {
  color: var(--text-muted) !important;
  opacity: 0.7;
}

.auth-card .btn-dark-pill {
  background: var(--solsel-primary) !important;
  color: #ffffff !important;
  border-radius: 12px !important;
  font-weight: 600;
  border: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
  transition: all 0.25s ease;
}

.auth-card .btn-dark-pill:hover {
  background: var(--solsel-primary-hover) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

[data-bs-theme="dark"] .auth-badge-pill {
  background: #272822;
  color: #f5f4f0;
}
/* Fix Input Group Rounded Overlap */
.input-group {
  border-radius: 999px !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background-color: var(--card-sub-bg) !important;
}

.input-group .input-group-text,
.input-group .form-control,
.input-group .btn {
  border: none !important;
  border-radius: 0 !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

.input-group:focus-within {
  border-color: rgba(0, 122, 255, 0.45) !important;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2) !important;
}

/* Custom Switch & Checkbox (Status Toggle to Brown/Gold - No Blue Knob) */
:root {
  --bs-form-check-input-checked-bg-color: var(--solsel-primary, #b1a75c);
  --bs-form-check-input-checked-border-color: var(--solsel-primary, #b1a75c);
  --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%280, 0, 0, 0.35%29'/%3e%3c/svg%3e");
}

[data-bs-theme="dark"] {
  --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%28255, 255, 255, 0.65%29'/%3e%3c/svg%3e");
}

.form-check-input {
  cursor: pointer;
  accent-color: var(--solsel-primary, #b1a75c) !important;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background-position 0.2s ease;
}

/* Switch Knob Defaults (Unchecked) */
.form-switch .form-check-input {
  background-image: var(--bs-form-switch-bg) !important;
}

/* Switch Knob when Focused (Never turn blue) */
.form-switch .form-check-input:focus,
[data-bs-theme="dark"] .form-switch .form-check-input:focus,
#aktifSwitch:focus,
#terbitSwitch:focus {
  --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23ded595'/%3e%3c/svg%3e") !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23ded595'/%3e%3c/svg%3e") !important;
  border-color: rgba(0, 0, 0, 0.25) !important;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08) !important;
}

[data-bs-theme="dark"] .form-switch .form-check-input:focus,
[data-bs-theme="dark"] #aktifSwitch:focus,
[data-bs-theme="dark"] #terbitSwitch:focus {
  border-color: rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1) !important;
}

/* Checked State (Aktif - Brown Track with Pure White Knob) */
.form-check-input:checked,
.form-switch .form-check-input:checked,
#aktifSwitch:checked,
#terbitSwitch:checked,
input[type="checkbox"].form-check-input:checked {
  background-color: var(--solsel-primary, #b1a75c) !important;
  border-color: var(--solsel-primary, #b1a75c) !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23ffffff'/%3e%3c/svg%3e") !important;
  box-shadow: none !important;
}

/* Checked & Focused State */
.form-switch .form-check-input:checked:focus,
[data-bs-theme="dark"] .form-switch .form-check-input:checked:focus,
#aktifSwitch:checked:focus,
#terbitSwitch:checked:focus {
  background-color: var(--solsel-primary, #b1a75c) !important;
  border-color: var(--solsel-primary, #b1a75c) !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23ffffff'/%3e%3c/svg%3e") !important;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1) !important;
}

/* ==========================================================================
   ADMIN CIRCULAR PAGINATION STYLING (MATCHING FRONTEND)
   ========================================================================== */

.pagination {
  display: flex !important;
  gap: 8px !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.pagination .page-item {
  display: inline-flex !important;
  margin: 0 !important;
}

.pagination .page-item .page-link {
  border-radius: 50% !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  color: var(--text-dark, #0c0c0c) !important;
  background-color: var(--card-bg, #ffffff) !important;
  border: 1px solid rgba(177, 167, 92, 0.25) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.25s ease !important;
}

/* Hover State */
.pagination .page-item .page-link:hover {
  background-color: var(--solsel-primary, #b1a75c) !important;
  border-color: var(--solsel-primary, #b1a75c) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12) !important;
}

/* Active Page State */
.pagination .page-item.active .page-link {
  background-color: var(--solsel-primary, #b1a75c) !important;
  border-color: var(--solsel-primary, #b1a75c) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  cursor: default;
}

/* Disabled State */
.pagination .page-item.disabled .page-link {
  opacity: 0.35 !important;
  background-color: transparent !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: var(--text-muted, #6e6d67) !important;
  box-shadow: none !important;
  pointer-events: none !important;
  cursor: not-allowed;
}

/* Dark Mode Pagination (Matching Frontend Circular Style) */
[data-bs-theme="dark"] .pagination .page-item .page-link {
  background-color: rgba(255, 255, 255, 0.05) !important;
  color: #f5f4f0 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: none !important;
}

[data-bs-theme="dark"] .pagination .page-item .page-link:hover {
  background-color: var(--solsel-primary, #c5bb6c) !important;
  border-color: var(--solsel-primary, #c5bb6c) !important;
  color: #141412 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

[data-bs-theme="dark"] .pagination .page-item.active .page-link {
  background-color: #b1a75c !important;
  border-color: #b1a75c !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
}

[data-bs-theme="dark"] .pagination .page-item.disabled .page-link {
  opacity: 0.3 !important;
  background-color: transparent !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.3) !important;
}

/* Hide default Laravel "Showing 1 to X of Y results" from pagination component */
nav[role="navigation"] .small,
nav[role="navigation"] p.small,
nav[role="navigation"] .text-sm,
nav[role="navigation"] div.small,
nav .small.text-muted,
nav div.small,
nav p.small,
nav .text-sm,
.pagination-wrapper .small,
.pagination-wrapper p.text-sm {
  display: none !important;
}

/* Ensure clean flex layout in navigation container */
nav:has(.pagination) {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
}

nav:has(.pagination) > .d-sm-flex {
  display: flex !important;
  justify-content: flex-end !important;
  width: auto !important;
}

nav:has(.pagination) > .d-sm-none {
  display: none !important;
}
