/* ============================================================
   reports-sample-viewer.css
   Replace previous version entirely with this file.
   ============================================================ */

/* ── Tab bar wrapper ──────────────────────────────────────── */
.sample-tabs-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    position: relative;
}

    .sample-tabs-wrap::-webkit-scrollbar {
        display: none;
    }

    .sample-tabs-wrap::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 60px;
        height: 100%;
        background: linear-gradient(to right, transparent, var(--off-white, #f8f9fb));
        pointer-events: none;
        transition: opacity 0.3s;
    }

    .sample-tabs-wrap.scrolled-end::after {
        opacity: 0;
    }
/* ── Tab bar ──────────────────────────────────────────────── */
.sample-tabs {
    display: flex;
    gap: 3px;
    white-space: nowrap;
    min-width: max-content;
    padding: 0.75rem 0 0;
    align-items: flex-end;
}

/* ── Individual tab ───────────────────────────────────────── */
.sample-tab {
    background: #e4e8f2;
    border: 1px solid var(--light-grey, #d0d5e8);
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    padding: 0.45rem 1rem;
    font-family: var(--font-display, sans-serif);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-light, #555);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
    position: relative;
    top: 1px;
}

.sample-tab:hover {
    background: #d0d8ee;
    color: var(--navy, #1A237E);
}

.sample-tab.active {
    background: var(--m-blue, #5CB3DA);
    color: #fff;
    border-color: var(--m-blue, #5CB3DA);
    padding-top: 0.6rem;
    z-index: 1;
}

/* ── Image viewer ─────────────────────────────────────────── */
.sample-viewer {
    background: #fff;
    border: 1px solid var(--m-blue, #5CB3DA);
    border-radius: 0 var(--radius, 6px) var(--radius, 6px) var(--radius, 6px);
    padding: 1.25rem;
    text-align: center;
}

.sample-image-wrap {
    display: inline-block;
    max-width: 100%;
    transition: opacity 0.15s ease;
    box-shadow: 0 4px 24px rgba(26,35,126,0.12);
    border-radius: 3px;
    overflow: hidden;
    background: #fff;
}

.sample-image-wrap.sample-image-loading { opacity: 0; }

.sample-image {
    display: block;
    max-width: 780px;
    max-height: 65vh;
    width: 100%;
    height: auto;
    object-fit: contain;
    cursor: zoom-in;
}

.sample-caption {
    margin-top: 0.6rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--navy, #1A237E);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.sample-inclusion-wrapper {
    max-width: 380px;
    margin: 0 auto 0.75rem;
}

.sample-inclusion-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light, #666);
    margin-bottom: 0.35rem;
    text-align: left;
}

.sample-inclusion-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem 1rem;
    background: #f8f9fc;
    border: 1px solid var(--light-grey, #e0e0e0);
    border-radius: var(--radius, 6px);
    padding: 0.75rem 1rem;
}

.sii {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.sii--yes {
    color: #1a6b3a;
}

.sii--yes .bi {
    color: #28a745;
    flex-shrink: 0;
}

.sii--no {
    color: #999;
}

.sii--no .bi {
    color: #ccc;
    flex-shrink: 0;
}

/* ── Generation caveat ────────────────────────────────────── */
.sample-caveat {
    max-width: 540px;
    margin: 0 auto 0.75rem;
    background: #fff8ec;
    border: 1px solid #f0d080;
    border-left: 4px solid #f0a500;
    border-radius: var(--radius, 6px);
    padding: 0.65rem 1rem;
    font-size: 0.82rem;
    color: #7a4f00;
    text-align: left;
    line-height: 1.55;
}

.sample-caveat .bi {
    color: #f0a500;
    flex-shrink: 0;
}

/* ── Lightbox ─────────────────────────────────────────────── */
.sample-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.sample-lightbox.active {
    display: flex;
}

.sample-lightbox img {
    max-width: 98vw;
    max-height: 98vh;
    object-fit: contain;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
    border-radius: 3px;
}

.sample-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.75;
    transition: opacity 0.15s;
    z-index: 10000;
}

.sample-lightbox-close:hover { opacity: 1; }

/* ── FAQ model grid ───────────────────────────────────────── */
.faq-model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.35rem 1rem;
    margin: 0.75rem 0;
}

.faq-model-item {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--navy, #1A237E);
    display: flex;
    align-items: center;
}

.faq-model-item .bi {
    color: var(--m-blue, #5CB3DA);
    margin-right: 0.3rem;
}
.sample-lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 98vw;
}

.sample-lightbox-caption {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.75rem;
}

.sample-lightbox-nav {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    transition: background 0.15s;
    flex-shrink: 0;
    z-index: 10001;
}

    .sample-lightbox-nav:hover {
        background: rgba(255,255,255,0.25);
    }

.sample-lightbox-prev {
    margin-right: 1rem;
}

.sample-lightbox-next {
    margin-left: 1rem;
}