:root {
  --bs-primary: #d72638;
  --bs-primary-rgb: 215, 38, 56;
  --bs-link-color: #d72638;
  --pc-sidebar-active-color: #d72638;
}

.pc-header,
.pc-sidebar {
  border-top: 3px solid #d72638;
}

.btn-primary,
.bg-primary,
.pc-badge,
.badge.bg-brand-color-2,
.badge.bg-brand-color-3 {
  background-color: #d72638 !important;
  border-color: #d72638 !important;
}

.btn-outline-primary {
  color: #d72638 !important;
  border-color: #d72638 !important;
}

.btn-outline-primary:hover {
  background-color: #d72638 !important;
  color: #fff !important;
}

.text-primary,
.pc-link.active,
.pc-link:hover {
  color: #d72638 !important;
}

.pc-sidebar .pc-item.active > .pc-link,
.pc-sidebar .pc-item.pc-trigger > .pc-link {
  background: rgba(215, 38, 56, 0.12) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: #d72638;
  box-shadow: 0 0 0 0.2rem rgba(215, 38, 56, 0.16);
}

/* Select2 must follow the same dimensions as Bootstrap form controls. */
.select2-container {
  width: 100% !important;
}

.select2-container .select2-selection--single {
  height: calc(1.5em + 1.6rem + 2px) !important;
  padding: 0.8rem 2.25rem 0.8rem 0.75rem !important;
  border: 1px solid #d1d5db !important;
  border-radius: 8px !important;
  background-color: #fff;
}

.select2-container .select2-selection--single .select2-selection__rendered {
  padding: 0 !important;
  color: #5b6573;
  line-height: 1.5;
}

.select2-container .select2-selection--single .select2-selection__arrow {
  top: 0 !important;
  right: 0.75rem;
  height: 100% !important;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
  border-color: #d72638;
  box-shadow: 0 0 0 0.2rem rgba(215, 38, 56, 0.16);
}

.select2-container .select2-selection--multiple {
  min-height: calc(1.5em + 1.6rem + 2px) !important;
  border: 1px solid #d1d5db !important;
  border-radius: 8px !important;
}

/* Shared page standard: colorful, clean and informative module surfaces. */
.salamaid-page .page-hero,
.salamaid-form .form-hero {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff4f5 0%, #eef7ff 100%);
  box-shadow: 0 12px 32px rgba(42, 54, 72, .07);
}

.salamaid-page .page-hero::after,
.salamaid-form .form-hero::after {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  right: -55px;
  top: -80px;
  border-radius: 50%;
  background: rgba(215, 38, 56, .09);
}

.salamaid-page .page-hero > *,
.salamaid-form .form-hero > * { position: relative; z-index: 1; }

.salamaid-page .module-card,
.salamaid-form .module-card {
  border: 1px solid rgba(42, 54, 72, .08);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(42, 54, 72, .06);
}

.salamaid-page .module-card .card-header,
.salamaid-form .module-card .card-header {
  border-bottom-color: rgba(42, 54, 72, .08);
  background: linear-gradient(90deg, rgba(215, 38, 56, .035), transparent);
}

.salamaid-page .filter-panel {
  border: 1px solid rgba(33, 150, 243, .14);
  border-radius: 12px;
  background: #f8fbff;
}

.salamaid-page .datatable-shell .dataTables_wrapper .row:first-child { margin-bottom: 1rem; }
.salamaid-page .datatable-shell .dataTables_wrapper .row:last-child { margin-top: 1rem; }
.salamaid-page .datatable-shell table thead th {
  color: #7b8798;
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.salamaid-page .datatable-shell table tbody tr { transition: background-color .2s ease, transform .2s ease; }
.salamaid-page .datatable-shell table tbody tr:hover { background: rgba(215, 38, 56, .035); }

.salamaid-form .form-section {
  margin-bottom: 1.5rem;
  padding: 1rem 1.15rem;
  border: 1px solid #edf0f4;
  border-radius: 14px;
  background: #fff;
}

.salamaid-form .form-section-title {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1rem;
  color: #273449;
  font-weight: 600;
}

.salamaid-form .form-section-title i { color: #d72638; font-size: 1.25rem; }
.salamaid-form .form-actions { border-top: 1px solid #edf0f4; padding-top: 1.25rem; }
