/* Bootstrap primary color overrides */

/* Set primary color to #7F02F7 */
:root {
  --bs-primary: #7F02F7;
  --bs-primary-rgb: 127, 2, 247;
  --brand-primary: #7F02F7;
  --brand-primary-dark: #1B144B;
  --brand-primary-darker: #1B1464;
  --brand-white: #FFFFFF;
  
  /* Modern gradients */
  --gradient-brand: linear-gradient(135deg, #7F02F7 0%, #1B144B 100%);
  --gradient-brand-reverse: linear-gradient(135deg, #1B144B 0%, #7F02F7 100%);
  --gradient-light: linear-gradient(135deg, rgba(127, 2, 247, 0.1) 0%, rgba(27, 20, 75, 0.05) 100%);
}

/* Background colors */
.bg-primary {
  background-color: #7F02F7 !important;
}

/* Text colors */
.text-primary {
  color: #7F02F7 !important;
}

/* Border colors */
.border-primary {
  border-color: #7F02F7 !important;
}

/* Button primary */
.btn-primary {
  background-color: #7F02F7 !important;
  border-color: #7F02F7 !important;
  color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: #6a00d2 !important;
  border-color: #6a00d2 !important;
  color: #fff !important;
}

/* Button outline primary */
.btn-outline-primary {
  color: #7F02F7 !important;
  border-color: #7F02F7 !important;
  background-color: transparent !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
  background-color: #7F02F7 !important;
  color: #fff !important;
  border-color: #7F02F7 !important;
}

/* Progress bar */
.progress-bar {
  background-color: #7F02F7 !important;
}

/* Custom badge with proper contrast */
.badge-primary-light {
  background-color: rgba(127, 2, 247, 0.15);
  color: #5d00b9;
  font-weight: 500;
}

/* Ensure bootstrap badges have proper contrast */
.badge.bg-primary {
  background-color: #7F02F7 !important;
  color: white !important;
}

.badge.bg-primary.bg-opacity-25 {
  background-color: rgba(127, 2, 247, 0.15) !important;
  color: #5d00b9 !important;
}

/* Links */
a {
  color: #7F02F7;
}

a:hover {
  color: #6a00d2;
}

/* Form controls */
.form-control:focus, 
.form-select:focus {
  border-color: #7F02F7;
  box-shadow: 0 0 0 0.25rem rgba(127, 2, 247, 0.25);
}

/* List group */
.list-group-item.active {
  background-color: #7F02F7;
  border-color: #7F02F7;
}

/* Dropdown */
.dropdown-item.active, 
.dropdown-item:active {
  background-color: #7F02F7;
}

/* Nav tabs */
.nav-pills .nav-link.active, 
.nav-pills .show > .nav-link {
  background-color: #7F02F7;
}

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

.page-link {
  color: #7F02F7;
}

.page-link:hover {
  color: #6a00d2;
}

/* Alert primary */
.alert-primary {
  background-color: rgba(127, 2, 247, 0.1);
  border-color: rgba(127, 2, 247, 0.2);
  color: #7F02F7;
}

/* Checkbox and radio buttons */
.form-check-input:checked {
  background-color: #7F02F7;
  border-color: #7F02F7;
}

/* RsuitesJS overrides */
.rs-btn-primary {
  background-color: #7F02F7 !important;
}

.rs-slider-progress-bar {
  background-color: #7F02F7 !important;
}

.rs-nav-item-active {
  color: #7F02F7 !important;
}

.rs-radio-checked .rs-radio-inner::before {
  background-color: #7F02F7 !important;
}

.rs-radio-checked .rs-radio-inner::after {
  border-color: #7F02F7 !important;
}