:root .text-primary {
  color: #0822e7 !important;
}

:root .bg-primary {
  background-color: #0822e7 !important;
}

:root .border-primary {
  border-color: #0822e7 !important;
}

:root .btn-primary,
.btn-primary {
  background-color: #0822e7 !important;
  border-color: #0822e7 !important;
  color: #fff !important;
}

:root .btn-primary:hover,
:root .btn-primary:focus,
:root .btn-primary:active,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: #071fd0 !important;
  border-color: #071fd0 !important;
  color: #fff !important;
}

:root .alert-primary {
  background-color: #0822e7 !important;
  border-color: #0822e7 !important;
  color: #fff !important;
}

:root .badge-primary {
  background-color: #0822e7 !important;
  color: #fff !important;
}

:root .list-group-item-primary {
  background-color: #0822e7 !important;
  color: #fff !important;
}

:root .text-bg-primary {
  background-color: #0822e7 !important;
  color: #fff !important;
}

:root .datatable-primary-header {
  background-color: #0822e7 !important;
}

:root .datatable-primary-header th {
  color: #fff !important;
  font-weight: bold !important;
}

/* Menu Primary Color Overrides - Simple */
.bg-menu-theme .menu-item.active > .menu-link:not(.menu-toggle) {
  background: #0822e7 !important;
  color: #fff !important;
}

.bg-menu-theme .menu-item.active > .menu-link {
  color: #fff !important;
}

.bg-menu-theme .menu-link:hover,
.bg-menu-theme .menu-link:focus {
  background: rgba(8, 34, 231, 0.1) !important;
  color: #fff !important;
}

/* Horizontal Menu Active States */
:root .menu-horizontal .menu-item.active > .menu-link {
  background: #0822e7 !important;
  color: #fff !important;
}

:root .menu-horizontal .menu-link:hover,
:root .menu-horizontal .menu-link:focus {
  background: rgba(8, 34, 231, 0.1) !important;
  color: #fff !important;
}

/* Tab Active States - Comprehensive */
.nav-tabs .nav-link.active,
.nav-tabs .nav-link.active:hover,
.nav-tabs .nav-link.active:focus {
  background-color: #0822e7 !important;
  border-color: #0822e7 !important;
  color: #fff !important;
}

.nav-tabs .nav-link:hover {
  border-color: #0822e7 !important;
  color: #0822e7 !important;
}

.nav-tabs .nav-link:focus {
  border-color: #0822e7 !important;
  color: #0822e7 !important;
}

/* Bootstrap Tabs */
.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-item.show .nav-link:hover,
.nav-tabs .nav-item.show .nav-link:focus {
  background-color: #0822e7 !important;
  border-color: #0822e7 !important;
  color: #fff !important;
}

/* Card Header Tabs */
.card-header .nav-tabs .nav-link.active,
.card-header .nav-tabs .nav-link.active:hover,
.card-header .nav-tabs .nav-link.active:focus {
  background-color: #0822e7 !important;
  border-color: #0822e7 !important;
  color: #fff !important;
}

/* Tab Content */
.tab-content {
  border-color: #0822e7 !important;
}

/* Pill Tabs - Comprehensive */
.nav-pills .nav-link.active,
.nav-pills .nav-link.active:hover,
.nav-pills .nav-link.active:focus {
  background-color: #0822e7 !important;
  color: #fff !important;
}

.nav-pills .nav-link:hover {
  color: #0822e7 !important;
}

.nav-pills .nav-link:focus {
  color: #0822e7 !important;
}

/* Additional Tab Selectors */
.nav-link.active,
.nav-link.active:hover,
.nav-link.active:focus {
  background-color: #0822e7 !important;
  color: #fff !important;
}

/* Tab Border Bottom */
.nav-tabs .nav-link.active::after {
  border-bottom-color: #0822e7 !important;
}

/* Tab Indicator */
.nav-tabs .nav-link.active::before {
  background-color: #0822e7 !important;
}

/* Form Controls - Checkboxes */
:root .form-check-input:checked {
  background-color: #0822e7 !important;
  border-color: #0822e7 !important;
}

:root .form-check-input:focus {
  border-color: #0822e7 !important;
  box-shadow: 0 0 0 0.25rem rgba(8, 34, 231, 0.25) !important;
}

/* Custom Checkboxes */
:root .custom-checkbox .custom-control-input:checked ~ .custom-control-label::before {
  background-color: #0822e7 !important;
  border-color: #0822e7 !important;
}

:root .custom-checkbox .custom-control-input:focus ~ .custom-control-label::before {
  box-shadow: 0 0 0 0.25rem rgba(8, 34, 231, 0.25) !important;
}

/* Radio Buttons */
:root .form-check-input[type="radio"]:checked {
  background-color: #0822e7 !important;
  border-color: #0822e7 !important;
}

:root .form-check-input[type="radio"]:focus {
  border-color: #0822e7 !important;
  box-shadow: 0 0 0 0.25rem rgba(8, 34, 231, 0.25) !important;
}

/* Custom Radio Buttons */
:root .custom-radio .custom-control-input:checked ~ .custom-control-label::before {
  background-color: #0822e7 !important;
  border-color: #0822e7 !important;
}

:root .custom-radio .custom-control-input:focus ~ .custom-control-label::before {
  box-shadow: 0 0 0 0.25rem rgba(8, 34, 231, 0.25) !important;
}

/* Switches */
:root .form-switch .form-check-input:checked {
  background-color: #0822e7 !important;
  border-color: #0822e7 !important;
}

:root .form-switch .form-check-input:focus {
  border-color: #0822e7 !important;
  box-shadow: 0 0 0 0.25rem rgba(8, 34, 231, 0.25) !important;
}

/* Custom Switches */
:root .custom-switch .custom-control-input:checked ~ .custom-control-label::before {
  background-color: #0822e7 !important;
  border-color: #0822e7 !important;
}

:root .custom-switch .custom-control-input:focus ~ .custom-control-label::before {
  box-shadow: 0 0 0 0.25rem rgba(8, 34, 231, 0.25) !important;
}

/* Toggle Switches */
:root .toggle-switch input[type="checkbox"]:checked + .toggle-slider {
  background-color: #0822e7 !important;
}

:root .toggle-switch input[type="checkbox"]:focus + .toggle-slider {
  box-shadow: 0 0 0 0.25rem rgba(8, 34, 231, 0.25) !important;
}

/* Bootstrap Switch */
:root .bootstrap-switch .bootstrap-switch-handle-on,
:root .bootstrap-switch .bootstrap-switch-handle-off {
  background-color: #0822e7 !important;
}

:root .bootstrap-switch.bootstrap-switch-on .bootstrap-switch-handle-on {
  background-color: #0822e7 !important;
}

/* Material Design Switches */
:root .md-switch input[type="checkbox"]:checked + .md-switch-slider {
  background-color: #0822e7 !important;
}

:root .md-switch input[type="checkbox"]:checked + .md-switch-slider:before {
  background-color: #fff !important;
}

/* iOS Style Switches */
:root .ios-switch input[type="checkbox"]:checked + .ios-switch-slider {
  background-color: #0822e7 !important;
}

:root .ios-switch input[type="checkbox"]:checked + .ios-switch-slider:before {
  background-color: #fff !important;
}

/* Range Sliders */
:root .form-range::-webkit-slider-thumb {
  background-color: #0822e7 !important;
}

:root .form-range::-moz-range-thumb {
  background-color: #0822e7 !important;
  border-color: #0822e7 !important;
}

:root .form-range:focus::-webkit-slider-thumb {
  box-shadow: 0 0 0 0.25rem rgba(8, 34, 231, 0.25) !important;
}

:root .form-range:focus::-moz-range-thumb {
  box-shadow: 0 0 0 0.25rem rgba(8, 34, 231, 0.25) !important;
}

/* Select Dropdowns */
:root .form-select:focus {
  border-color: #0822e7 !important;
  box-shadow: 0 0 0 0.25rem rgba(8, 34, 231, 0.25) !important;
}

/* Input Focus States */
:root .form-control:focus {
  border-color: #0822e7 !important;
  box-shadow: 0 0 0 0.25rem rgba(8, 34, 231, 0.25) !important;
}

/* File Input */
:root .form-control[type="file"]:focus {
  border-color: #0822e7 !important;
  box-shadow: 0 0 0 0.25rem rgba(8, 34, 231, 0.25) !important;
}