:root {
    --probatix-purple: #9852F9;
    --probatix-blue: #20293A;
    --probatix-purple-soft: rgba(152, 82, 249, 0.10);
    --probatix-blue-soft: rgba(32, 41, 58, 0.06);
}

body {
    color: var(--probatix-blue);
}

.brand-navbar {
    background-color: var(--probatix-blue);
}

.hero-panel {
    background: linear-gradient(135deg, var(--probatix-blue) 0%, #2f3b52 100%);
    position: relative;
    overflow: hidden;
}

.hero-panel::after {
    content: "";
    position: absolute;
    top: -30px;
    right: -20px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(152, 82, 249, 0.20);
}

.hero-panel > * {
    position: relative;
    z-index: 1;
}

.hero-kicker {
    letter-spacing: 0.08em;
}

.sample-badge {
    background-color: var(--probatix-blue-soft);
    color: var(--probatix-blue);
    border: 1px solid rgba(32, 41, 58, 0.10);
}

.price-cell {
    color: var(--probatix-purple);
}

.table thead th {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6c757d;
}

.form-control:focus {
    border-color: #9852F9;
    box-shadow: 0 0 0 0.2rem rgba(152, 82, 249, 0.15);
}

.form-control:focus {
    border-color: #9852F9;
    box-shadow: 0 0 0 0.2rem rgba(152, 82, 249, 0.15);
}

.sample-type-toggle {
    border-radius: 999px;
    border: 1px solid rgba(32, 41, 58, 0.12);
    background: #fff;
    color: #20293A;
    padding: 0.5rem 0.9rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.sample-type-toggle:hover {
    border-color: #9852F9;
    color: #9852F9;
}

.sample-type-toggle.is-active {
    background: rgba(152, 82, 249, 0.10);
    border-color: #9852F9;
    color: #9852F9;
}
.brand-navbar {
    background-color: #20293A;
}

.navbar-logo {
    height: 42px;
    width: auto;
    display: block;
}

@media (max-width: 768px) {
    .navbar-logo {
        height: 36px;
    }
}

.brand-navbar .nav-link {
    opacity: 0.85;
    transition: all 0.2s ease;
}

.brand-navbar .nav-link:hover {
    opacity: 1;
    color: #9852F9 !important;
}

th.sortable {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

th.sortable:hover {
    color: #9852F9;
}

.sort-indicator {
    display: inline-block;
    min-width: 1em;
    margin-left: 0.35rem;
    font-size: 0.8em;
}

.name-cell {
    max-width: 260px;
}

/* Base */
.sample-badge {
    font-weight: 600;
    border: 1px solid transparent;
}

/* BLOOD (all BLD_*) → RED */
.sample-bld_serum,
.sample-bld_edta,
.sample-bld_serum_edta {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border-color: rgba(220, 53, 69, 0.2);
}

/* SALIVA → purple (fits your CI) */
.sample-saliva {
    background-color: rgba(152, 82, 249, 0.12);
    color: #9852F9;
    border-color: rgba(152, 82, 249, 0.25);
}

/* URINE → yellow */
.sample-urine {
    background-color: rgba(255, 193, 7, 0.15); /* soft yellow */
    color: #b8860b; /* darker amber for contrast */
    border-color: rgba(255, 193, 7, 0.35);
}

/* STOOL → brown-ish */
.sample-stool {
    background-color: rgba(121, 85, 72, 0.12);
    color: #795548;
    border-color: rgba(121, 85, 72, 0.25);
}

/* VAGINAL SWAB → pink */
.sample-vag_swab {
    background-color: rgba(214, 51, 132, 0.12);
    color: #d63384;
    border-color: rgba(214, 51, 132, 0.25);
}

/* fallback (just in case) */
.sample-badge:not([class*="sample-"]) {
    background-color: rgba(32, 41, 58, 0.06);
    color: #20293A;
}

.sample-badge {
    transition: all 0.15s ease;
}

.sample-badge:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

/* ── Profile tag badges ──────────────────────────────────────────────── */

.tag-badge {
    background-color: var(--probatix-purple);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 2px 8px;
}

/* ── Builder page ─────────────────────────────────────────────────────── */

.cursor-pointer {
    cursor: pointer;
}

.text-purple {
    color: var(--probatix-purple);
}

.builder-sticky {
    position: sticky;
    top: 1.5rem;
}

.biomarker-item {
    cursor: pointer;
    border-bottom: 1px solid rgba(32, 41, 58, 0.06);
    transition: background-color 0.1s ease;
}

.biomarker-item:last-child {
    border-bottom: none;
}

.biomarker-item:hover {
    background-color: rgba(152, 82, 249, 0.05);
}

.biomarker-item.is-selected {
    background-color: rgba(152, 82, 249, 0.08);
}

.biomarker-item .form-check-input:checked {
    background-color: var(--probatix-purple);
    border-color: var(--probatix-purple);
}

.biomarker-item .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(152, 82, 249, 0.2);
}

.selected-biomarkers-list {
    max-height: 220px;
    overflow-y: auto;
}

.form-check-input:checked {
    background-color: var(--probatix-purple);
    border-color: var(--probatix-purple);
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(152, 82, 249, 0.2);
    border-color: var(--probatix-purple);
}

/* ── Brand button ────────────────────────────────────────────────────── */

.btn-primary {
    background-color: var(--probatix-purple);
    border-color: var(--probatix-purple);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #7c3cd9;
    border-color: #7c3cd9;
}

/* ── Nav tabs override ────────────────────────────────────────────────── */

.nav-tabs .nav-link {
    color: #6c757d;
    border-color: transparent;
}

.nav-tabs .nav-link:hover {
    color: var(--probatix-purple);
    border-color: transparent;
}

.nav-tabs .nav-link.active {
    color: var(--probatix-purple);
    border-bottom-color: var(--probatix-purple);
    font-weight: 600;
}

/* ── Mobile overrides ────────────────────────────────────────────────── */

@media (max-width: 991.98px) {
    /* Builder: summary is above selector on mobile, keep it sticky from the top */
    .builder-sticky {
        position: sticky;
        top: 0.75rem;
    }

    /* Reduce biomarker list height so summary + some list are both visible */
    #biomarker-list {
        max-height: 45vh;
    }

    /* Name cell: allow full width on mobile */
    .name-cell {
        max-width: none;
    }
}

/* ── Print styles ─────────────────────────────────────────────────────── */

@media print {
    body {
        background: #fff !important;
        color: #000 !important;
        font-size: 11pt;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }

    .card-header,
    .card-footer {
        background: #f8f9fa !important;
    }

    .builder-sticky {
        position: static;
    }

    .price-cell {
        color: #20293A !important;
    }

    .selected-biomarkers-list {
        max-height: none;
        overflow: visible;
    }

    @page {
        margin: 1.5cm 2cm;
    }

    .table thead th {
        background: #f8f9fa !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .table-hover tbody tr:hover {
        background: transparent !important;
    }

    .name-cell {
        max-width: none;
    }

    .biomarker-cell {
        font-size: 8pt;
    }

    .price-cell {
        color: #000 !important;
    }

    .text-success {
        color: #000 !important;
    }
}