/* --- CSS Variables --- */
:root {
  --qs-primary: #3bccd9;
  --qs-primary-dark: #28a9b8;
  --qs-primary-light: #8ee6f0;
  --qs-secondary: #f5f5f5;
  --qs-success: #28a745;
  --qs-danger: #dc3545;
  --qs-warning: #ffc107;
  --qs-info: #17a2b8;
  --qs-light: #ffffff;
  --qs-dark: #343a40;

  --font-family-base: "Roboto", sans-serif;
  --font-size-base: 1rem;
  --font-size-sm: 0.875rem;
  --font-size-lg: 1.25rem;

  --border-radius: 0.5rem;
  --transition-speed: 0.3s;
}

/* --- Helpers --- */
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #eee;
}

.h-custom {
  height: calc(100% - 73px);
}

@media (max-width: 450px) {
  .h-custom {
    height: 100%;
  }
}

/* --- Global Body & Typography --- */
body {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  color: var(--qs-dark);
  background-color: var(--qs-secondary);
  line-height: 1.5;
}

/* --- Global Loader --- */
#globalLoader {
  background-color: rgba(255, 255, 255, 0.85);
  pointer-events: none !important;
}

/* --- Buttons --- */
.btn {
  border-radius: var(--border-radius);
  transition: all var(--transition-speed) ease;
}

.btn-primary {
  background-color: var(--qs-primary);
  color: #fff;
  border: 1px solid var(--qs-primary);
}

.btn-primary:hover {
  background-color: var(--qs-primary-dark);
  color: #fff;
}

/* --- Modal Header --- */
.modal-header {
  background-color: var(--qs-primary) !important;
  color: #fff !important;
  border-bottom: none;
}

.modal-header .btn-close {
  filter: brightness(0) invert(1);
  opacity: 1;
}

/* --- Badges --- */
.badge-qsp,
.badge-primary {
  background-color: var(--qs-primary);
  color: #fff;
}

.badge-red {
  background-color: var(--qs-danger);
}

.badge-green {
  background-color: var(--qs-success);
}

.qs-color {
  background-color: var(--qs-primary);
}

/* --- Progress Bar --- */
.progress-bar {
  background-color: var(--qs-primary) !important;
}

/* --- Cards --- */
.card {
  border-radius: var(--border-radius);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 6px 20px rgba(59, 204, 217, 0.2);
  transform: translateY(-4px);
}

/* --- Navbar & Sidebar --- */
.nav-link.active,
.nav-link:hover {
  color: var(--qs-primary) !important;
}

.sidebar .nav-item.active > .nav-link {
  background-color: rgba(59, 204, 217, 0.2);
  color: var(--qs-primary);
}

/* --- Tables --- */
table.dataTable thead {
  background-color: #f1f3f5;
  font-weight: 600;
}

.table-hover tbody tr:hover {
  background-color: #f6f8fa !important;
}

/* --- Wizard / Stepper --- */
.step-circle.active {
  border-color: var(--qs-primary);
  color: var(--qs-primary);
  background: var(--qs-primary-light);
}

.step-circle.completed {
  background: var(--qs-success);
  border-color: var(--qs-success);
  color: #fff;
}

/* --- Footer --- */
footer {
  padding: 10px 20px;
  background: #fff;
  border-top: 1px solid #ddd;
}

/* --- Wizard Stepper Container --- */
.wizard-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* The horizontal line behind the circles */
.wizard-steps::before {
    content: "";
    position: absolute;
    top: 25px; /* Centers line with the 50px circles */
    left: 50px;
    right: 50px;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
}

.step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #adb5bd;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.step-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: #adb5bd;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Active State */
.step.active .step-circle {
    background: var(--qs-primary);
    border-color: var(--qs-primary);
    color: #fff;
    box-shadow: 0 0 0 5px var(--qs-primary-light);
}

.step.active .step-text {
    color: var(--qs-primary);
}

/* Completed State */
.step.completed .step-circle {
    background: var(--qs-success);
    border-color: var(--qs-success);
    color: #fff;
}

.step.completed .step-text {
    color: var(--qs-success);
}

/* Payment Card Specifics */
.control-number-box {
    background: #f8f9fa;
    border: 2px dashed var(--qs-primary);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.control-number {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--qs-dark);
    letter-spacing: 2px;
}