/* ===================================================================
   ALAMANDA CARE APP - DESIGN SYSTEM & STYLESHEET
   Signature Colors: Soft Rose Gold (#D5ABAF), Rose Slate (#8E5B63), Dark Navy (#1E293B)
   =================================================================== */

:root {
  --primary: #D5ABAF;
  --primary-hover: #c4969b;
  --primary-dark: #8E5B63;
  --primary-darker: #6d4249;
  --primary-light: #FDF4F5;
  --primary-tint: #f6e8ea;
  
  --secondary: #1E293B;
  --secondary-light: #334155;
  
  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  
  --bg-body: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-sidebar: #FFFFFF;
  
  --border: #E2E8F0;
  --border-light: #F1F5F9;
  
  --success: #10B981;
  --success-bg: #ECFDF5;
  --warning: #F59E0B;
  --warning-bg: #FFFBEB;
  --danger: #EF4444;
  --danger-bg: #FEF2F2;
  --info: #3B82F6;
  --info-bg: #EFF6FF;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --sidebar-width: 260px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea {
  font-family: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ================== LAYOUT ================== */
.app-container {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.sidebar-header .brand-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(142, 91, 99, 0.25);
}

.sidebar-header .brand-text h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.2;
}

.sidebar-header .brand-text span {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-section-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-light);
  font-weight: 700;
  padding: 10px 12px 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.nav-item i {
  font-size: 1.1rem;
  width: 22px;
  text-align: center;
}

.nav-item:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.nav-item.active {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-tint));
  color: var(--primary-dark);
  font-weight: 700;
  box-shadow: inset 3px 0 0 var(--primary-dark);
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
  background: #FAFAFC;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--primary-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.user-info {
  flex: 1;
  overflow: hidden;
}

.user-info .user-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-info .user-role {
  font-size: 0.72rem;
  color: var(--primary-dark);
  font-weight: 600;
  text-transform: uppercase;
}

/* ================== MAIN CONTENT ================== */
.main-wrapper {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.top-navbar {
  height: 64px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 90;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--text-main);
  cursor: pointer;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.role-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--border-light);
  padding: 4px;
  border-radius: var(--radius-full);
}

.role-btn {
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.role-btn.active {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}

.content-body {
  padding: 28px;
  flex: 1;
}

/* ================== TYPOGRAPHY & HEADERS ================== */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.page-title h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.2;
}

.page-title p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ================== CARDS & STATS ================== */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  margin-bottom: 24px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--secondary);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

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

.stat-icon.primary {
  background: var(--primary-light);
  color: var(--primary-dark);
}

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

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

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

.stat-content {
  flex: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.2;
  margin-top: 2px;
}

.stat-sub {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* ================== BUTTONS ================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: none;
  box-shadow: 0 2px 4px rgba(142, 91, 99, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover), var(--primary-darker));
  box-shadow: 0 4px 8px rgba(142, 91, 99, 0.3);
}

.btn-secondary {
  background: var(--secondary);
  color: #fff;
}

.btn-secondary:hover {
  background: var(--secondary-light);
}

.btn-outline {
  background: #fff;
  border-color: var(--border);
  color: var(--text-main);
}

.btn-outline:hover {
  background: var(--border-light);
  border-color: #cbd5e1;
}

.btn-success {
  background: var(--success);
  color: #fff;
}

.btn-success:hover {
  background: #059669;
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-danger:hover {
  background: #dc2626;
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
}

.btn-whatsapp:hover {
  background: #1EBE5D;
  color: #fff;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.78rem;
  border-radius: var(--radius-sm);
}

.btn-icon {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ================== TABLES ================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.85rem;
}

.data-table th {
  background: #F8FAFC;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-main);
  vertical-align: middle;
}

.data-table tr:hover td {
  background: #FCFDFE;
}

/* ================== BADGES ================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-normal, .badge-success {
  background: var(--success-bg);
  color: #065F46;
}

.badge-warning, .badge-followup {
  background: var(--warning-bg);
  color: #92400E;
}

.badge-danger, .badge-berisiko {
  background: var(--danger-bg);
  color: #991B1B;
}

.badge-dorman {
  background: #F1F5F9;
  color: #475569;
}

.badge-primary {
  background: var(--primary-light);
  color: var(--primary-dark);
}

/* ================== FORMS ================== */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--text-main);
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-dark);
  box-shadow: 0 0 0 3px rgba(142, 91, 99, 0.15);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

/* ================== ALERTS ================== */
.alert {
  padding: 12px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-success {
  background: var(--success-bg);
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.alert-danger {
  background: var(--danger-bg);
  color: #991B1B;
  border: 1px solid #FECACA;
}

/* ================== FILTER BAR ================== */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.search-input-wrap {
  position: relative;
  min-width: 260px;
}

.search-input-wrap i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
}

.search-input-wrap input {
  padding-left: 36px;
}

/* ================== PRINT STYLES ================== */
@media print {
  .sidebar, .top-navbar, .page-header .btn, .no-print {
    display: none !important;
  }
  .main-wrapper {
    margin-left: 0 !important;
  }
  .content-body {
    padding: 0 !important;
  }
  body {
    background: #fff !important;
    color: #000 !important;
  }
  .card {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
}

/* ================== SETTINGS SUB-TABS & THEME SWATCHES ================== */
.settings-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.settings-tab-btn {
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
  white-space: nowrap;
}

.settings-tab-btn:hover {
  color: var(--primary-dark);
}

.settings-tab-btn.active {
  color: var(--primary-dark);
  border-bottom-color: var(--primary);
}

.settings-panel {
  display: none;
  animation: fadeIn 0.25s ease-out;
}

.settings-panel.active {
  display: block;
}

.logo-uploader-card {
  display: flex;
  align-items: center;
  gap: 24px;
  background: #FDF9FA;
  border: 1px solid #F5E8EA;
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
}

.logo-preview-img {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-md);
  object-fit: contain;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  border: 2px solid #FFFFFF;
  padding: 6px;
}

.color-swatch-list {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 10px;
  flex-wrap: wrap;
}

.color-swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s, outline 0.2s;
  position: relative;
}

.color-swatch:hover, .color-swatch.active {
  transform: scale(1.18);
  outline: 3px solid var(--secondary);
}

.color-swatch.active::after {
  content: '✓';
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

.menu-rename-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

/* ================== RESPONSIVE ================== */
@media (max-width: 992px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main-wrapper {
    margin-left: 0;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ================== INTERACTIVE MODALS & POP-UPS ================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active {
  display: flex;
  opacity: 1;
}

.modal-container {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  width: 100%;
  max-width: 820px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.96) translateY(12px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--border-light);
}

.modal-container.modal-lg {
  max-width: 960px;
}

.modal-container form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.modal-backdrop.active .modal-container {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 16px 24px;
  background: #FAFBFD;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
}

.modal-header .modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-close-btn {
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.2s;
}

.modal-close-btn:hover {
  background: var(--border-light);
  color: var(--danger);
}

.modal-body {
  padding: 22px 24px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) #F8FAFC;
}

.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-track {
  background: #F8FAFC;
}

.modal-body::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: var(--radius-full);
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

.modal-footer {
  padding: 14px 24px;
  background: #FAFBFD;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-shrink: 0;
}

/* Modal Segmented Tabs */
.modal-tab-nav {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 20px;
  overflow-x: auto;
}

.modal-tab-btn {
  padding: 8px 16px;
  border: none;
  background: none;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-tab-btn:hover {
  color: var(--secondary);
}

.modal-tab-btn.active {
  color: var(--primary-dark);
  border-bottom-color: var(--primary);
}

.modal-tab-pane {
  display: none;
}

.modal-tab-pane.active {
  display: block;
}

/* Parent Autocomplete Search Dropdown */
.parent-search-wrapper {
  position: relative;
}

.parent-results-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12);
  max-height: 260px;
  overflow-y: auto;
  z-index: 60;
  margin-top: 4px;
  display: none;
}

.parent-result-item {
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.15s;
}

.parent-result-item:hover, .parent-result-item.highlighted {
  background: var(--primary-light);
}

.parent-result-item:last-child {
  border-bottom: none;
}

.parent-preview-box {
  background: #F8FAFC;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-top: 10px;
}

/* Floating Toast Notifications */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.app-toast {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  max-width: 440px;
  border-left: 5px solid var(--primary);
  pointer-events: auto;
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: all 0.25s ease;
}

.app-toast.toast-success { border-left-color: var(--success); }
.app-toast.toast-error { border-left-color: var(--danger); }
.app-toast.toast-warning { border-left-color: var(--warning); }
.app-toast.toast-info { border-left-color: var(--info); }

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===================================================================
   CUSTOM PAGINATION & SVG SIZING (CLEAN & AESTHETIC)
   =================================================================== */
.custom-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4px 6px 4px;
  flex-wrap: wrap;
  gap: 12px;
}

.custom-pagination .pagination-info {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.custom-pagination .pagination-info strong {
  color: var(--secondary);
  font-weight: 700;
}

.custom-pagination .pagination-list {
  display: inline-flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
  background: transparent;
}

.custom-pagination .page-item {
  display: inline-block;
}

.custom-pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--secondary);
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.custom-pagination .page-link:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary-dark);
}

.custom-pagination .page-item.active .page-link {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #FFFFFF;
  font-weight: 800;
  box-shadow: 0 2px 4px rgba(142, 91, 99, 0.25);
  cursor: default;
}

.custom-pagination .page-item.disabled .page-link {
  background: #F8FAFC;
  border-color: var(--border-light);
  color: #CBD5E1;
  cursor: not-allowed;
  box-shadow: none;
}

.custom-pagination .page-link.dots {
  border-color: transparent;
  background: transparent;
  cursor: default;
  color: var(--text-muted);
}

/* GLOBAL SVG & DEFAULT PAGINATION SAFETY NET */
nav[role="navigation"] svg,
.pagination svg,
svg.w-5, svg.h-5, svg.w-4, svg.h-4 {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

nav[role="navigation"] {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  padding: 14px 4px !important;
}

nav[role="navigation"] a,
nav[role="navigation"] span {
  font-size: 0.82rem !important;
}
