:root[data-bs-theme="dark"] body {
  background: linear-gradient(180deg,
      #000b12 0%,
      /* deeper blue-black */
      #10202e 50%,
      /* cooler mid blue */
      #23384d 100%
      /* darker steel blue */
    );
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  color: #fff;
}

.mark,
mark {
  padding: .1875em !important;
  color: rgb(74 222 128) !important;
  background-color: rgb(0 0 0) !important;
}

.btn-success,
.btn-primary {
  /* Text */
  --bs-btn-color: #ffffff !important;
  /* Base */
  --bs-btn-bg: #ef3805 !important;
  --bs-btn-border-color: #ef3805 !important;
  /* Hover */
  --bs-btn-hover-color: #ffffff !important;
  --bs-btn-hover-bg: #ff4b1a !important;
  --bs-btn-hover-border-color: #ff4b1a !important;
  /* Focus ring */
  --bs-btn-focus-shadow-rgb: 239, 56, 5 !important;
  /* Active / Pressed */
  --bs-btn-active-color: #ffffff !important;
  --bs-btn-active-bg: #c83204 !important;
  --bs-btn-active-border-color: #c83204 !important;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.25) !important;
  /* Disabled */
  --bs-btn-disabled-color: #ffffff !important;
  --bs-btn-disabled-bg: #a12a03 !important;
  --bs-btn-disabled-border-color: #a12a03 !important;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 1);
  opacity: 1;
}

.form-control::-webkit-input-placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.form-control:-ms-input-placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.small,
small {
  font-size: .8em;
  text-align: center;
  color: grey;
}

.table {
  width: 100% !important;
  table-layout: fixed;
}

.bg-light {
  background-color: rgb(0 0 0 / 0%) !important;
}

#uploadModal {
  background-color: rgba(0, 0, 0, 0.1);
  !important;
  opacity: 1 !important;
}

#uploadModal.modal.fade .modal-dialog {
  transform: none !important;
  transition: none !important;
}

.modal-backdrop.show {
  opacity: 0.85 !important;
}

.border-primary {
  --bs-border-opacity: 1;
  border-style: groove;
  border-width: thick;
  !important;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.12),
    0 8px 24px rgba(0, 0, 0, 0.18);
}

.text-primary {
  background-color: #10202e !important;
}

.card-header {
  background-color: #020e15 !important;
}

.spinner-border-sm {
  color: green !important;
  ;
}

.stream-icon {
  height: 1em;
  width: auto;
  vertical-align: middle;
}

.small2,
small2 {
  font-size: .875em;
  color: #8aff00;
}

@keyframes blink {

  50%,
  50%,
  100% {
    opacity: 1;
  }

  25%,
  75% {
    opacity: 0.5;
  }
}

.blink {
  animation: blink 2s infinite;
}

.table td,
.table th {
  word-break: break-word;
  white-space: normal;
  max-width: 300px;
}

.badge-hcss {
  background-color: #16a34a;
  color: #ecfdf5;
  font-weight: 600;
  position: relative;
  animation: hcss-pulse 1s ease-in-out infinite;
}

@keyframes hcss-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7);
  }

  50% {
    box-shadow: 0 0 0 12px rgba(22, 163, 74, 0.3);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
  }
}

.badge-stopped {
  background-color: #dc2626;
  color: #fef2f2;
  font-weight: 600;
  animation: none;
}

.steam-white {
  color: #ffffff;
  font-size: 2rem;
}

.badge-checking {
  background-color: #6b7280;
  color: #000000;
  font-weight: 600;
}

.card-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-loading-overlay.fade-out {
  opacity: 0;
  transition: opacity 0.25s ease-out;
  pointer-events: none;
}

.b-divider {
  margin-top: auto;
  background-color: #0000001a;
  border: solid rgba(0, 0, 0, .15);
  border-width: 1px 0;
  box-shadow: inset 0 .5em 1.5em #0000001a,
    inset 0 .125em .5em #00000026;
  padding: 2rem 0;
}

html,
body {
  height: 100%;
  margin: 0;
}

.page-wrapper {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.b-divider {
  margin-top: auto;
}

body {
  overflow-x: hidden;
}

.voucher-card {
  background: linear-gradient(135deg, #254165 0%, #4590dc 100%);
  max-width: 400px;
  width: 100%;
  border: 2px dashed #3f80c2;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.voucher-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.voucher-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(45deg,
      rgba(0, 0, 0, 0.02),
      rgba(0, 0, 0, 0.02) 2px,
      rgba(255, 255, 255, 0.02) 4px);
  border-radius: 1rem;
  pointer-events: none;
}

.video-select {
  position: relative;
  width: 100%;
  border: 1px solid #444;
  border-radius: 8px;
  background: #121b25;
  cursor: pointer;
}

/* Down arrow */
.video-select-trigger::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid #ccc;
  border-bottom: 2px solid #ccc;
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
}

.video-select-trigger {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  min-height: 90px;
  padding-right: 48px;
}

.video-select-trigger img,
.video-option img {
  width: 140px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
}

.video-select-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #121b25;
  border: 1px solid #444;
  border-top: none;
  max-height: 360px;
  overflow-y: auto;
  z-index: 1000;
}

.video-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  font-size: 15px;
}

.video-option img {
  width: 80px;
  height: 45px;
  object-fit: cover;
  border-radius: 4px;
}

.video-option:hover {
  background: #ffffff !important;
}

.video-option:hover span {
  color: #000000 !important;
}

#selectedLabel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#selectedLabel i {
  font-size: 25px;
  opacity: 0.95;
  pointer-events: none;
}