/* ============================================================
   THEME COLOR OVERRIDES
   - Navbar/sidebar accent: #001F54 (unchanged)
   - Table headings + primary buttons: #DC3545
   - Cards + faded areas: rgba(0,31,84,0.06) tint of main color
   ============================================================ */

/* ── Table headings ─────────────────────────────────────── */
.table thead th {
  background: #DC3545!important;
  color: #fff !important;
  border-bottom: 2px solid #c82333;
}

/* ── Primary buttons ────────────────────────────────────── */
.btn-primary {
  color: #fff;
  background-color: #DC3545;
  border-color: #DC3545;
}
.btn-primary:hover {
  color: #fff;
  background-color: #c82333;
  border-color: #bd2130;
}
.btn-primary.disabled,
.btn-primary:disabled {
  background-color: #DC3545;
  border-color: #DC3545;
}
.btn-primary:not(:disabled):not(.disabled).active,
.btn-primary:not(:disabled):not(.disabled):active,
.show > .btn-primary.dropdown-toggle {
  color: #fff;
  background-color: #bd2130;
  border-color: #b21f2d;
}

.btn-outline-primary {
  color: #DC3545;
  border-color: #DC3545;
  background-color: transparent;
}
.btn-outline-primary:hover,
.btn-outline-primary:not(:disabled):not(.disabled).active,
.btn-outline-primary:not(:disabled):not(.disabled):active,
.show > .btn-outline-primary.dropdown-toggle {
  color: #fff;
  background-color: #DC3545;
  border-color: #DC3545;
}

/* ── Glow variant ───────────────────────────────────────── */
.btn-glow-primary {
  box-shadow:
    0 1px 6px 2px rgba(220, 53, 69, 0.5),
    0 6px 11px 2px rgba(220, 53, 69, 0.18);
}
.btn-glow-primary:hover {
  box-shadow:
    0 1px 4px 2px rgba(220, 53, 69, 0.5),
    0 4px 9px 2px rgba(220, 53, 69, 0.1);
}

/* ── Card header accent bar ─────────────────────────────── */
.card .card-header h5:after {
  background-color: #DC3545;
}

/* ── Card header background (faded main-color tint) ─────── */
.card .card-header {
  background-color: rgba(0, 31, 84, 0.04);
  border-bottom: 1px solid rgba(0, 31, 84, 0.1);
}

/* ── Card body / block subtle tint ─────────────────────── */
.card {
  border-top: 3px solid rgba(0, 31, 84, 0.12);
}

/* ── Active nav/sidebar indicator ──────────────────────── */
.pcoded-navbar .pcoded-inner-navbar > li.active:after,
.pcoded-navbar .pcoded-inner-navbar > li.pcoded-trigger:after {
  background-color: #DC3545;
}

/* ── Pagination active ──────────────────────────────────── */
.page-item.active .page-link {
  background-color: #DC3545;
  border-color: #DC3545;
}

/* ── Progress bar default ───────────────────────────────── */
.progress-bar {
  background-color: #DC3545;
}
.progress-bar.progress-c-blue {
  background: #001F54;
}

/* ── Modal header ───────────────────────────────────────── */
.modal-header {
  background: #DC3545;
}

/* ── Badges ─────────────────────────────────────────────── */
.badge-primary {
  background-color: #DC3545;
}

/* ── Labels ─────────────────────────────────────────────── */
.label.label-primary {
  background: #DC3545;
}

/* ── Text helpers ───────────────────────────────────────── */
.text-primary {
  color: #DC3545 !important;
}
.text-c-blue {
  color: #001F54;
}
.bg-c-blue {
  background: #001F54;
}

/* ── Card top-border helper ─────────────────────────────── */
.card-border-c-blue {
  border-top: 4px solid #001F54;
}

.nav-link.active{

    color: #FFF !important;
}

/* ── Search button in header ────────────────────────────── */
.pcoded-header .main-search.open .input-group .search-btn {
  background: #DC3545;
  border-color: #DC3545;
}
.pcoded-header .main-search .search-close > .input-group-text {
  color: #DC3545;
}

/* ── DataTables export buttons ──────────────────────────── */
.dataTables_wrapper .dt-buttons .btn {
  color: #DC3545 !important;
  border-color: #DC3545 !important;
}

/* ── Form focus border ──────────────────────────────────── */
.custom-select:focus,
.form-select:focus,
.form-control:focus {
  border-bottom: 1px solid #DC3545;
}
.form-control.is-valid,
.form-control.is-valid:focus,
.was-validated .form-control:valid:focus,
.was-validated .form-control:valid {
  border-color: #DC3545 !important;
}

/* ── Card loader spinner ────────────────────────────────── */
.card.card-load .card-loader i {
  color: #DC3545;
}

/* ── Task container top border ──────────────────────────── */
#task-container li {
  border-top: 5px solid #DC3545;
}

/* ── Datta example copy button ──────────────────────────── */
.datta-example .datta-example-btns .datta-example-btn {
  background: #DC3545;
}