.text-underline-hover {
  text-decoration: none;
  cursor: pointer;
}

:root {
  --brand-purple: #672da4;
  --brand-purple-light: #8b52bf;
  --brand-purple-soft: #b085d9;
  --brand-purple-dark: #4d2179;
  --bs-primary: var(--brand-purple);
  --bs-primary-rgb: 103, 45, 164;
  --bs-heading-color: var(--brand-purple-dark);
  --bs-link-color: var(--brand-purple);
  --bs-link-hover-color: var(--brand-purple-dark);
}

.text-underline-hover:hover {
  text-decoration: underline;
}
.line-clamp-1 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.line-clamp-5 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  margin: 0;
}
.whitespace-pre-line {
  white-space: pre-line;
}
.readonly{
  background-color: #f6f6f6;
}
#listData .table-responsive{
  min-height: 77vh;
}

@media screen and (max-width: 1023px) {
  h6.product-category-title {
    font-size: 12px;
    line-height: 20px;
  }
}

@media screen and (min-width: 1024px) and (max-width: 1199px) {
  h6.product-category-title {
    font-size: 14px;
    line-height: 20px;
  }
}

.responsive-iframe {
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.h-full-topbar {
  height: calc(100dvh - 80px);
}

.scriptnote pre{
  background-color: rgba(2, 2, 2, 0.776) !important;
  color: #fff;
  margin-top: 5px !important;
  margin-bottom: 0 !important;
  padding: 10px;
  width: 100%;
  white-space: normal !important;
}
h1.main-display-amount{
  font-size: 3rem !important;
  line-height: 2px;
  font-weight: normal;
}
h5.main-display-trxid{
  font-size: 0.9rem !important;
  line-height: 2px;
  font-weight: normal;
}
.modal table h2{
  line-height: 2px;
}
.nowrap {
  white-space: nowrap;
}
.form-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.65) 100%) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(103, 45, 164, 0.15) !important;
  box-shadow: 
    0 8px 32px 0 rgba(103, 45, 164, 0.1),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.6),
    0 2px 16px rgba(0, 0, 0, 0.04) !important;
  border-radius: 16px;
}

.form-card-header {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.45) 0%, rgba(249, 246, 255, 0.35) 100%) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(103, 45, 164, 0.12) !important;
  border-radius: 16px 16px 0 0;
}

.form-title {
  color: #5a5c69 !important;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ql-toolbar.ql-snow + .ql-container.ql-snow{
  border-radius: 0px 0px 10px 10px !important;
}

.border-bottom-field{
  border: none !important;
  border-bottom: 1px solid #e3e6f0 !important;
  box-shadow: none !important;
  border-radius: 0px !important;
  text-align: left !important;
}
.title-blog-list{
  line-height: 22px !important;
}

/* Glassy navbar */
.glass-navbar {
  background: transparent !important;
  box-shadow: none !important;
  border: 1px solid transparent !important;
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}

.glass-navbar.is-scrolled {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82) 0%, rgba(249, 246, 255, 0.75) 100%) !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* ===== macOS Glossy SideBar ===== */
.sidebar-bg {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 
    0 8px 32px 0 rgba(31, 38, 135, 0.2),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.8),
    0 2px 16px rgba(0, 0, 0, 0.08) !important;
  position: relative;
}

/* Glossy Sidebar Menu Items */
.sidebar-bg .nav-link,
.sidebar-bg .menu-link,
.sidebar-bg .sidebar-item a {
  background: transparent !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 8px !important;
  margin: 4px 8px !important;
  padding: 10px 12px !important;
  color: var(--brand-purple-dark) !important;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  /* border: 1px solid #667eea !important; */
}

.sidebar-bg .nav-link:hover,
.sidebar-bg .menu-link:hover,
.sidebar-bg .sidebar-item a:hover {
  background: linear-gradient(135deg, rgba(103, 45, 164, 0.15) 0%, rgba(176, 133, 217, 0.18) 100%) !important;
  border-color: rgba(103, 45, 164, 0.25) !important;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(103, 45, 164, 0.2);
}

.sidebar-bg .menu-inner > .menu-item.active > .menu-link,
.sidebar-bg .menu-inner > .menu-item.active > .nav-link {
  background: linear-gradient(135deg, var(--brand-purple) 0%, var(--brand-purple-light) 100%) !important;
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: 
    0 2px 5px rgba(103, 45, 164, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Submenu styling */
.sidebar-bg .menu-item .menu-item {
  margin-left: 0 !important;
}

.sidebar-bg .menu-item .menu-link {
  padding-left: 12px !important;
}
.menu-sub .menu-item .menu-link {
  border: 1px solid transparent !important;
  border-bottom: 1px solid #e3e6f0 !important;
}

.sidebar-bg ul li {
  list-style: none !important;
}
.bg-menu-theme .menu-item.active:not(.open)>.menu-link:not(.menu-toggle){
  color: var(--brand-purple-dark) !important;
}
.sidebar-bg .menu-inner > .menu-item.active > .menu-link:not(.menu-toggle){
  color: #fff !important;
}

/* Remove submenu list style dots */
.layout-wrapper:not(.layout-horizontal) .menu-vertical .menu-inner>.menu-item>.menu-sub>.menu-item>.menu-link::before {
  display: none !important;
  content: none !important;
}

/* Submenu active state - softer gradient without shadow */
.sidebar-bg .menu-sub .active .menu-item .menu-link,
.sidebar-bg .menu-sub .active .menu-link {
  background: linear-gradient(135deg, rgba(103, 45, 164, 0.15) 0%, rgba(176, 133, 217, 0.18) 100%) !important;
  border-color: rgba(103, 45, 164, 0.15) !important;
  box-shadow: none !important;
}

.sidebar-bg .nav-link.active::before,
.sidebar-bg .menu-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: linear-gradient(180deg, var(--brand-purple) 0%, var(--brand-purple-light) 100%);
  border-radius: 0 2px 2px 0;
}

/* ===== macOS Glossy Login Card ===== */
.authentication-bg {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 
    0 8px 32px 0 rgba(31, 38, 135, 0.2),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.8),
    0 2px 16px rgba(0, 0, 0, 0.08) !important;
  position: relative;
}

.authentication-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(103, 45, 164, 0.05) 0%, rgba(176, 133, 217, 0.06) 100%);
  pointer-events: none;
}

/* Enhanced Form Elements */
.authentication-bg .form-control {
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(103, 45, 164, 0.2) !important;
  color: #1a202c !important;
  font-weight: 500;
  border-radius: 12px !important;
  padding: 12px 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* ===== Reusable page surface & glass card ===== */
.page-surface {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(103, 45, 164, 0.02) 45%, rgba(176, 133, 217, 0.03) 100%);
  border-radius: 18px;
  overflow: visible;
}

.page-surface::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 25%, rgba(103, 45, 164, 0.03), transparent 42%),
    radial-gradient(circle at 75% 35%, rgba(139, 82, 191, 0.02), transparent 40%),
    radial-gradient(circle at 35% 80%, rgba(176, 133, 217, 0.02), transparent 42%);
  pointer-events: none;
  z-index: 0;
}

.page-surface > * {
  position: relative;
  z-index: 1;
}

.layout-page.page-surface {
  isolation: auto !important;
}

.glass-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.65) 100%) !important;
  border: 1px solid rgba(103, 45, 164, 0.15) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow:
    0 8px 32px rgba(103, 45, 164, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 2px 16px rgba(0, 0, 0, 0.04);
  border-radius: 16px;
}

.glass-card .table {
  margin-bottom: 0;
}

.glass-card .table {
  border-color: rgba(103, 45, 164, 0.08) !important;
  background: transparent !important;
}

.glass-card .table > :not(caption) > * > * {
  border-color: rgba(103, 45, 164, 0.08) !important;
  background: transparent !important;
}

.glass-card .table thead th {
  background: linear-gradient(135deg, rgba(103, 45, 164, 0.05) 0%, rgba(176, 133, 217, 0.04) 100%) !important;
  border-bottom: 1px solid rgba(103, 45, 164, 0.12) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-weight: 600;
  color: var(--brand-purple-dark) !important;
}

.glass-card .form-control,
.glass-card .form-select,
.glass-card textarea.form-control {
  background: rgba(255, 255, 255, 0.5) !important;
  border: 1px solid rgba(103, 45, 164, 0.18) !important;
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border-radius: 10px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(103, 45, 164, 0.04);
}

.glass-card .form-control:focus,
.glass-card .form-select:focus,
.glass-card textarea.form-control:focus {
  background: rgba(255, 255, 255, 0.75) !important;
  border-color: rgba(103, 45, 164, 0.45) !important;
  box-shadow: 0 0 0 3px rgba(103, 45, 164, 0.12), 0 4px 12px rgba(103, 45, 164, 0.15);
  transform: translateY(-1px);
}

.search-glass .form-control {
  background: rgba(255, 255, 255, 0.5) !important;
  border: 1px solid rgba(103, 45, 164, 0.18) !important;
  border-radius: 12px !important;
  height: 36px;
  padding: 0.35rem 0.85rem;
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  box-shadow: 0 4px 12px rgba(103, 45, 164, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-glass .form-control:focus {
  background: rgba(255, 255, 255, 0.75) !important;
  border-color: rgba(103, 45, 164, 0.45) !important;
  box-shadow: 0 0 0 3px rgba(103, 45, 164, 0.12), 0 8px 18px rgba(103, 45, 164, 0.16);
  transform: translateY(-1px);
}

.search-glass-select {
  background: rgba(255, 255, 255, 0.5) !important;
  border: 1px solid rgba(103, 45, 164, 0.18) !important;
  border-radius: 12px !important;
  height: 36px;
  padding: 0.35rem 0.85rem;
  box-shadow: 0 4px 12px rgba(103, 45, 164, 0.08);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-glass-select:focus {
  background: rgba(255, 255, 255, 0.75) !important;
  border-color: rgba(103, 45, 164, 0.45) !important;
  box-shadow: 0 0 0 3px rgba(103, 45, 164, 0.12), 0 8px 18px rgba(103, 45, 164, 0.16);
  transform: translateY(-1px);
}

.dokter-card {
  position: relative;
  z-index: 1;
}

.dokter-card .dropdown-menu {
  z-index: 1060;
}

.dokter-card:has(.dropdown.show) {
  z-index: 1070 !important;
}

.poli-card {
  position: relative;
  z-index: 1;
}

.poli-card .dropdown-menu {
  z-index: 1060;
}

.poli-card:has(.dropdown.show),
.poli-card:has(.dropup.show) {
  z-index: 1070 !important;
}

.poli-card .dropup .dropdown-menu,
.poli-card .dropdown .dropdown-menu {
  z-index: 1070 !important;
}

.poli-card-disabled {
  opacity: 0.6;
  filter: grayscale(30%);
}

.poli-card-disabled .text-primary {
  color: #697a8d !important;
}

.pasien-card {
  position: relative;
  z-index: 1;
}

.pasien-card .dropdown-menu {
  z-index: 1060;
}

.pasien-card:has(.dropdown.show),
.pasien-card:has(.dropup.show) {
  z-index: 1070 !important;
}

.pasien-card .dropup .dropdown-menu,
.pasien-card .dropdown .dropdown-menu {
  z-index: 1070 !important;
}

/* Dropdown rendered in body should always be on top */
body > .dropdown-menu {
  z-index: 9999 !important;
  position: fixed !important;
}

.dropdown-menu.show {
  z-index: 9999 !important;
}

.dokter-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(103, 45, 164, 0.2), rgba(176, 133, 217, 0.2));
  border: 1px solid rgba(103, 45, 164, 0.25);
  color: var(--brand-purple-dark);
  font-weight: 700;
}

.dokter-card-disabled {
  opacity: 0.65;
  filter: grayscale(0.4);
  background: rgba(245, 245, 245, 0.85) !important;
}

.dokter-card-disabled .dropdown,
.dokter-card-disabled .delete-action,
.dokter-card-disabled .dropdown-toggle {
  pointer-events: none;
}

.dokter-card-disabled .dropdown-toggle,
.dokter-card-disabled .dropdown-menu {
  opacity: 0.5;
}

.search-glass.form-floating > label {
  color: var(--brand-purple-dark) !important;
  padding: 0.6rem 0.85rem;
  font-size: 0.75rem;
}

.btn-glass {
  background: rgba(255, 255, 255, 0.5) !important;
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  box-shadow: 0 4px 12px rgba(103, 45, 164, 0.15);
  border-color: rgba(103, 45, 164, 0.25) !important;
  border-radius: 12px !important;
  height: 36px;
  padding: 0.35rem 1rem;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.7) !important;
  box-shadow: 0 6px 16px rgba(103, 45, 164, 0.25);
  transform: translateY(-1px);
}

.authentication-bg .form-control:focus {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(103, 45, 164, 0.6) !important;
  box-shadow: 
    0 0 0 3px rgba(103, 45, 164, 0.1),
    0 4px 12px rgba(103, 45, 164, 0.15) !important;
  transform: translateY(-1px);
}

.authentication-bg .form-control::placeholder {
  color: transparent !important;
}

.authentication-bg .form-control:focus::placeholder {
  color: rgba(113, 128, 150, 0.6) !important;
}

.authentication-bg label {
  color: var(--brand-purple) !important;
  font-weight: 600;
  font-size: 0.875rem;
  position: absolute;
  top: 50%;
  left: 1rem;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
  transform: translateY(-50%);
}

.authentication-bg .form-floating > label {
  top: 50%;
  left: 0.25rem;
  transform: translateY(-50%);
}

.authentication-bg .form-floating > .form-control:focus ~ label,
.authentication-bg .form-floating > .form-control:not(:placeholder-shown) ~ label {
  top: -8px;
  left: 0.25rem;
  font-size: 0.75rem;
  transform: translateY(0);
}

.authentication-bg .input-group-text {
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(0, 163, 224, 0.2) !important;
  border-left: none !important;
  border-radius: 0 12px 12px 0 !important;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--brand-blue) !important;
}

.authentication-bg .input-group-text:hover {
  background: rgba(255, 255, 255, 0.85) !important;
  transform: scale(1.05);
}

.authentication-bg .input-group .form-control {
  border-right: none !important;
  border-radius: 12px 0 0 12px !important;
}

.authentication-bg label {
  color: #2d3748 !important;
  font-weight: 600;
  font-size: 0.875rem;
}

/* Glossy Buttons */
.authentication-bg .btn-primary {
  background: linear-gradient(135deg, var(--brand-purple) 0%, var(--brand-purple-light) 100%) !important;
  border: none !important;
  box-shadow: 
    0 4px 15px 0 rgba(103, 45, 164, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 1px 3px rgba(0, 0, 0, 0.12) !important;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 12px 24px;
  border-radius: 12px !important;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.authentication-bg .btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.authentication-bg .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 6px 20px 0 rgba(103, 45, 164, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 2px 5px rgba(0, 0, 0, 0.15) !important;
}

.authentication-bg .btn-primary:hover::before {
  left: 100%;
}

.authentication-bg .btn-primary:active {
  transform: translateY(0);
}

.authentication-bg .btn-outline-primary {
  background: rgba(103, 45, 164, 0.08) !important;
  border: 2px solid rgba(103, 45, 164, 0.3) !important;
  color: var(--brand-purple) !important;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 12px !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.authentication-bg .btn-outline-primary:hover {
  background: rgba(103, 45, 164, 0.15) !important;
  border-color: var(--brand-purple) !important;
  color: var(--brand-purple-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(103, 45, 164, 0.25);
}

/* OTHER CUZTOMIZATION */
.app-brand .layout-menu-toggle svg {
  color: var(--brand-purple-dark) !important;
}
.w-px-175 {
  width: 175px !important;
}
.sidebar-bg .active .menu-toggle::after {
  color: #ffffff !important;
}

.bg-menu-theme .menu-item.active:not(.open)>.menu-link:not(.menu-toggle)::before {
  color: var(--brand-purple-dark) !important;
}

/* Brand primary overrides (replace theme #6a4295) */
.text-primary,
.link-primary,
.text-primary:hover {
  color: var(--brand-purple) !important;
}

.bg-primary,
.badge.bg-primary {
  background-color: var(--brand-purple) !important;
}

.bg-label-primary,
.bg-label-hover-primary,
.bg-label-hover-primary:hover {
  background-color: rgba(103, 45, 164, 0.15) !important;
  color: var(--brand-purple) !important;
}

.bg-gradient-primary {
  background-image: linear-gradient(135deg, var(--brand-purple), var(--brand-purple-light)) !important;
}

.pagination .page-item.active .page-link,
.pagination li.active > a:not(.page-link),
.pagination li.active > a:not(.page-link):hover,
.pagination li.active > a:not(.page-link):focus {
  border-color: var(--brand-purple) !important;
  background-color: var(--brand-purple) !important;
  color: #fff !important;
}

/* Theme-bordered hardcoded primary overrides */
.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--brand-purple) !important;
  border-color: var(--brand-purple) !important;
}

.btn-outline-primary,
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
  color: var(--brand-purple) !important;
  border-color: var(--brand-purple) !important;
}

.border-primary {
  border-color: var(--brand-purple) !important;
}

.alert-primary,
.alert-outline-primary,
.alert-solid-primary {
  border-color: var(--brand-purple) !important;
}

.alert-primary {
  background-color: rgba(103, 45, 164, 0.12) !important;
  color: var(--brand-purple) !important;
}

.alert-solid-primary {
  background-color: var(--brand-purple) !important;
  color: #fff !important;
}

.list-group-item-primary,
.list-group-item-primary:hover,
.list-group-item-primary:focus,
.list-group-item-primary.active {
  border-color: var(--brand-purple) !important;
  background-color: rgba(103, 45, 164, 0.12) !important;
  color: var(--brand-purple) !important;
}

.progress-bar {
  background-color: var(--brand-purple) !important;
}

.pagination-outline-primary .page-item.active .page-link,
.pagination-outline-primary.pagination li.active > a:not(.page-link),
.pagination-outline-primary.pagination li.active > a:not(.page-link):hover,
.pagination-outline-primary.pagination li.active > a:not(.page-link):focus {
  border-color: var(--brand-purple) !important;
  color: var(--brand-purple) !important;
}

.carousel-control-prev,
.carousel-control-next,
.carousel-control-prev:hover,
.carousel-control-next:hover,
.carousel-control-prev:focus,
.carousel-control-next:focus {
  color: var(--brand-purple) !important;
}

.modal-onboarding .carousel-indicators [data-bs-target] {
  background-color: var(--brand-purple) !important;
}
.card {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.65) 100%) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(103, 45, 164, 0.15) !important;
  box-shadow: 
    0 8px 32px 0 rgba(103, 45, 164, 0.1),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.6),
    0 2px 16px rgba(0, 0, 0, 0.04) !important;
}

.card:has(.dropdown-menu.show) {
  z-index: 1050;
}

/* Card header dengan glass effect */
.card-header {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.45) 0%, rgba(249, 246, 255, 0.35) 100%) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(103, 45, 164, 0.12) !important;
}

/* Global form controls dengan glass effect */
.form-control,
.form-select,
textarea.form-control {
  background: rgba(255, 255, 255, 0.5) !important;
  border: 1px solid rgba(103, 45, 164, 0.18) !important;
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border-radius: 8px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(103, 45, 164, 0.04);
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
  background: rgba(255, 255, 255, 0.75) !important;
  border-color: rgba(103, 45, 164, 0.45) !important;
  box-shadow: 0 0 0 3px rgba(103, 45, 164, 0.12), 0 4px 12px rgba(103, 45, 164, 0.15);
  transform: translateY(-1px);
}

/* Input group untuk search dengan icon */
.input-group > .form-control:not(:first-child):not(:last-child),
.input-group > .form-select:not(:first-child):not(:last-child) {
  border-radius: 0 !important;
}

.input-group > .form-control:first-child,
.input-group > .form-select:first-child {
  border-top-left-radius: 8px !important;
  border-bottom-left-radius: 8px !important;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.input-group > .form-control:last-child,
.input-group > .form-select:last-child {
  border-top-right-radius: 8px !important;
  border-bottom-right-radius: 8px !important;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

.input-group > .form-control:only-child,
.input-group > .form-select:only-child {
  border-radius: 8px !important;
}

.input-group-text {
  background: rgba(255, 255, 255, 0.5) !important;
  border: 1px solid rgba(103, 45, 164, 0.18) !important;
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  color: var(--brand-purple) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-group-text:first-child {
  border-top-left-radius: 8px !important;
  border-bottom-left-radius: 8px !important;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.input-group-text:last-child {
  border-top-right-radius: 8px !important;
  border-bottom-right-radius: 8px !important;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

.input-group:focus-within .input-group-text {
  background: rgba(255, 255, 255, 0.75) !important;
  border-color: rgba(103, 45, 164, 0.45) !important;
}

/* Table dengan glass effect */
.table {
  background: transparent !important;
}

.table > :not(caption) > * > * {
  background: transparent !important;
  border-color: rgba(103, 45, 164, 0.08) !important;
}

.table thead th {
  background: linear-gradient(135deg, rgba(103, 45, 164, 0.05) 0%, rgba(176, 133, 217, 0.04) 100%) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-weight: 600;
  color: var(--brand-purple-dark) !important;
  border-bottom: 1px solid rgba(103, 45, 164, 0.12) !important;
}

.table tbody tr {
  transition: all 0.2s ease;
}

.table tbody tr:hover {
  background: rgba(103, 45, 164, 0.03) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Table striped dengan glass effect */
.table-striped > tbody > tr:nth-of-type(odd) > * {
  background-color: rgba(103, 45, 164, 0.02) !important;
}

.table-striped > tbody > tr:nth-of-type(odd):hover > * {
  background-color: rgba(103, 45, 164, 0.05) !important;
}

/* Table bordered transparan */
.table-bordered > :not(caption) > * {
  border-color: rgba(103, 45, 164, 0.1) !important;
}

.table-bordered > :not(caption) > * > * {
  border-color: rgba(103, 45, 164, 0.08) !important;
}

/* Responsive table wrapper glass effect */
.table-responsive {
  background: transparent !important;
  border-radius: 12px;
}

/* Modal dengan glass effect */
.modal-content {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(103, 45, 164, 0.15);
  box-shadow: 
    0 8px 32px 0 rgba(103, 45, 164, 0.15),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.8),
    0 2px 16px rgba(0, 0, 0, 0.08);
}

.modal-header {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.45) 0%, rgba(249, 246, 255, 0.35) 100%) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(103, 45, 164, 0.12) !important;
}

.modal-footer {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.45) 0%, rgba(249, 246, 255, 0.35) 100%) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(103, 45, 164, 0.12) !important;
}