:root,
body[data-pc-preset],
body[data-pc-theme] {
  --bs-primary: #6c757d;
  --bs-primary-rgb: 108, 117, 125;
  --bs-link-color: #6c757d;
  --bs-link-hover-color: #5c636a;
  --pc-sidebar-background:#021827;

  /* Some Admindek themes read a custom var; set it too */
  --pc-primary: #6c757d;

  /* Default font family */
  --bs-body-font-family: "Open Sans", Arial, sans-serif;
}


body[data-pc-theme=dark] {
    --pc-sidebar-background: rgb(42.7565217391, 44.052173913, 46.6434782609);
}

/* Apply font family to body and all elements */
body {
  font-family: "Open Sans", Arial, sans-serif !important;
}


/* .select2-container--bootstrap-5.select2-container--disabled .select2-selection,.select2-container--bootstrap-5.select2-container--disabled.select2-container--focus .select2-selection {
    color: var(--bs-secondary-color)!important;
    background-color: var(--pc-header-background)!important;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    color: var(--bs-secondary-color)!important;
} */

.pc-container .pc-content {
    padding-left: 40px;
    padding-right: 40px;
    padding-top: 20px;
    padding-bottom: 40px;
}


.datatable-table thead th, .table thead th {
	color: #ffffff;
    background:  var(--pc-sidebar-background);
}

.nav-pills .nav-link.active, .nav-pills .show>.nav-link {
   background-color: var(--pc-sidebar-background);
}

.nav-link.active, .page-link.active, .active>.page-link{
   background-color: var(--pc-sidebar-background);
}

/* Buttons - ensure consistent primary styling */
.btn-primary {
  --bs-btn-bg: #6c757d;
  --bs-btn-border-color: #6c757d;
  --bs-btn-hover-bg: #5c636a;
  --bs-btn-hover-border-color: #5c636a;
  --bs-btn-active-bg: #565e64;
  --bs-btn-active-border-color: #565e64;
  background-color: #6c757d !important;
  border-color: #6c757d !important;
  color: #fff !important;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.show > .btn-primary.dropdown-toggle {
  background-color: #5c636a !important;
  border-color: #5c636a !important;
  color: #fff !important;
}

.btn-outline-primary {
  --bs-btn-color: #6c757d;
  --bs-btn-border-color: #6c757d;
  --bs-btn-hover-bg: #6c757d;
  --bs-btn-hover-border-color: #6c757d;
  --bs-btn-hover-color: #fff;
  color: #6c757d !important;
  border-color: #6c757d !important;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: #6c757d !important;
  border-color: #6c757d !important;
  color: #fff !important;
}

/* Links and text helpers */
.text-primary,
.link-primary {
  color: #6c757d !important;
}
.link-primary:hover {
  color: #5c636a !important;
}

/* Badges and light backgrounds using "primary" token */
.bg-light-primary,
.badge.bg-light-primary {
  background-color: rgba(108, 117, 125, 0.12) !important;
  color: #111827 !important;
}

/* Borders */
.border-primary { border-color: #6c757d !important; }
