/* QDB.CA Theme Override — Replaces Mofi default purple with red #e32b2b */
:root {
  --theme-default: #e32b2b;
  --theme-secondary: #c41f1f;
  --theme-default-rgb: 227, 43, 43;
  --light-background: rgba(227, 43, 43, 0.08);
  --light-semi-gray: #f6f6f6;
  --balance-profie-bg: #fde8e8;
  --primary-color: #e32b2b;
}

/* Primary buttons */
.btn-primary, .btn-primary:focus {
  background-color: #e32b2b !important;
  border-color: #e32b2b !important;
  color: #fff !important;
}
.btn-primary:hover, .btn-primary:active {
  background-color: #c41f1f !important;
  border-color: #c41f1f !important;
}

/* Outline primary */
.btn-outline-primary {
  border-color: #e32b2b !important;
  color: #e32b2b !important;
}
.btn-outline-primary:hover {
  background-color: #e32b2b !important;
  color: #fff !important;
}

/* Links */
a { color: #e32b2b; }
a:hover { color: #c41f1f; }

/* Sidebar active */
.sidebar-wrapper .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask .simplebar-content-wrapper .simplebar-content > li a.active,
.sidebar-wrapper .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-mask .simplebar-content-wrapper .simplebar-content > li a:hover {
  background: linear-gradient(90deg, #e32b2b 0%, #ff6b6b 100%) !important;
  color: #fff !important;
}

/* Active nav */
.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
  background-color: #e32b2b !important;
}

/* Text primary */
.txt-primary, .text-primary { color: #e32b2b !important; }

/* Background primary */
.bg-primary { background-color: #e32b2b !important; }
.bg-primary-light { background-color: rgba(227,43,43,0.1) !important; }

/* Badge primary */
.badge-primary { background-color: #e32b2b !important; }

/* Pagination */
.pagination .page-item.active .page-link {
  background-color: #e32b2b !important;
  border-color: #e32b2b !important;
}
.pagination .page-link { color: #e32b2b !important; }
.pagination .page-link:hover { background-color: rgba(227,43,43,0.1) !important; }

/* Form focus */
.form-control:focus, .form-select:focus {
  border-color: #e32b2b !important;
  box-shadow: 0 0 0 0.2rem rgba(227, 43, 43, 0.2) !important;
}

/* Loader */
.loader-wrapper .loader .loader-outter { border-top-color: #e32b2b; }
.loader-wrapper .loader .loader-inner { border-bottom-color: #e32b2b; }

/* Checkbox / radio */
.form-check-input:checked { background-color: #e32b2b; border-color: #e32b2b; }

/* Progress */
.progress-bar { background-color: #e32b2b !important; }

/* Scrollbar */
.sidebar-wrapper::-webkit-scrollbar-thumb { background-color: #e32b2b; }

/* Card header accent */
.card.card-primary .card-header { background: #e32b2b; color: #fff; }

/* Select2 */
.select2-container--default .select2-results__option--highlighted { background-color: #e32b2b !important; }
.select2-container--default .select2-selection--single:focus { border-color: #e32b2b !important; }

/* Tap to top button */
.tap-top { background: #e32b2b; }
