/* Override Bootstrap 5 primary & dark colors */
:root {
  --bs-primary: #0ea5e9;
  --bs-primary-rgb: 14, 165, 233;
  --bs-link-color: #0ea5e9;
  --bs-link-hover-color: #0ea5e9;
  --bs-btn-hover-bg: #0ea5e9;
  --bs-btn-hover-border-color: #0ea5e9;
  --bs-btn-active-bg: #0ea5e9;
  --bs-btn-active-border-color: #0ea5e9;
  --bs-btn-disabled-bg: #0ea5e9;
  --bs-btn-disabled-border-color: #0ea5e9;
  --bs-nav-pills-link-active-bg: #0ea5e9;
  --bs-list-group-active-bg: #0ea5e9;
  --bs-list-group-active-border-color: #0ea5e9;
  --bs-outline-color: #0ea5e9;
  --plyr-color-main: #0ea5e9;
  --bs-warning-rgb: 14, 165, 233;

  /* Dark theme overrides */
  --bs-dark: #020617;
  --bs-dark-rgb: 2, 6, 23;
  --bs-card-bg: #0f172a;
  --bs-body-bg: #020617;
  --bs-body-color: #f8fafc;
  --bs-surface-bg: #1e293b;
}

/* Buttons */
.btn-primary {
  background-color: #0ea5e9 !important;
  border-color: #0ea5e9 !important;
  color: #fff !important;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: #0ea5e9 !important;
  border-color: #0ea5e9 !important;
  color: #fff !important;
}
.btn-primary:disabled,
.btn-primary.disabled {
  background-color: #0ea5e9 !important;
  border-color: #0ea5e9 !important;
  color: #fff !important;
  opacity: 0.65;
}

/* Outline Primary Button */
.btn-outline-primary {
  color: #0ea5e9 !important;
  border-color: #0ea5e9 !important;
  background-color: transparent !important;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
  color: #fff !important;
  background-color: #0ea5e9 !important;
  border-color: #0ea5e9 !important;
}
.btn-outline-primary:disabled,
.btn-outline-primary.disabled {
  color: #0ea5e9 !important;
  background-color: transparent !important;
  border-color: #0ea5e9 !important;
  opacity: 0.65;
}

/* Text and backgrounds */
.text-primary {
  color: #0ea5e9 !important;
}
.bg-primary {
  background-color: #0ea5e9 !important;
  color: #fff !important;
}
.bg-dark {
  background-color: #020617 !important;
  color: #f8fafc !important;
}
.card {
  background-color: #0f172a !important;
  color: #f8fafc !important;
}
.surface {
  background-color: #1e293b !important;
  color: #f8fafc !important;
}

/* Links */
a,
.link-primary {
  /* color: #0ea5e9; */
}
a:hover,
a:focus,
.link-primary:hover,
.link-primary:focus {
  color: #0ea5e9;
}

/* Nav pills and tabs */
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  background-color: #0ea5e9 !important;
  color: #fff !important;
}
.nav-tabs .nav-link.active {
  border-color: #0ea5e9 #0ea5e9 #fff !important;
  color: #0ea5e9 !important;
}

/* List group */
.list-group-item.active {
  background-color: #0ea5e9 !important;
  border-color: #0ea5e9 !important;
  color: #fff !important;
}

/* Progress bar */
.progress-bar.bg-primary {
  background-color: #0ea5e9 !important;
}

/* Alerts */
.alert-primary {
  background-color: #e6f7fc !important;
  border-color: #0ea5e9 !important;
  color: #0ea5e9 !important;
}

/* Badges */
.badge-primary,
.bg-primary {
  background-color: #0ea5e9 !important;
  color: #fff !important;
}

/* Form controls focus */
.form-control:focus,
.form-select:focus {
  border-color: #0ea5e9 !important;
  box-shadow: 0 0 0 0.2rem rgba(14, 165, 233, 0.25) !important;
}

/* Outline color for accessibility */
:focus {
  outline-color: #0ea5e9 !important;
}

/* Custom player color */
.plyr--full-ui input[type="range"]::-webkit-slider-thumb {
  background: #0ea5e9 !important;
}
