﻿html body {
    height: 100vh;
    overflow: auto;
}

div {
    outline: none;
}

label {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 80%;
}

.carousel-control-next-icon, .carousel-control-prev-icon {
    background-color:black;
    border:1px solid;
    border-radius:30px;
    opacity:.5
}

.gradientSeparator {
    background: hsla(209, 84%, 95%, 1);
    background: radial-gradient(circle, hsla(209, 84%, 95%, 1) 0%, hsla(209, 54%, 85%, 1) 100%);
    background: -moz-radial-gradient(circle, hsla(209, 84%, 95%, 1) 0%, hsla(209, 54%, 85%, 1) 100%);
    background: -webkit-radial-gradient(circle, hsla(209, 84%, 95%, 1) 0%, hsla(209, 54%, 85%, 1) 100%);
}

.label {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 80%;
}

.icon-flipped {
    transform: scaleX(-1);
    -moz-transform: scaleX(-1);
    -webkit-transform: scaleX(-1);
    -ms-transform: scaleX(-1);
}

.colHdr {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 80%;
}

.rptData {
    font-weight: 300;
    padding-left: 5px;
    border:1px solid whitesmoke;
}

.container {
    width: 100%;
    max-width: initial;
    padding: 0px;
}

    .container > .row {
        margin: 0;
        padding: 0px;
    }

    .container > .row-span {
        margin: 0;
        padding: 0px;
    }

.row-span > .col {
    padding: 0px;
}

td {
    padding: 0px;
    padding-left: 20px
}

tr {
    border: none;
}

.bi-arrows-move {
    cursor: grab;
}

.hoverable tr:hover {
    border: none;
    background-color:lightgrey;
}

.inputSmall {
    font-size: .8rem;
}

thead th {
    font-weight: 600;
    padding-left: 15px;
    position: sticky;
    top: 0;
    background-color: whitesmoke;
    font-size: .75rem;
    color: dimgrey;
    text-transform: uppercase;
}

table tbody tr td {
    font-size: .8rem;
}

label sup {
    font-size: .8rem;
    color: red;
}

.fldRequired {
    border-left: 5px solid red;
}

.fldRecommended {
    border-left: 5px solid yellow;
}

.fldValidated {
    border-left: 5px solid green;
}

.helpBullet {
    font-weight: 600;
}

/* width */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

/* Track */
::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #888;
}

    /* Handle on hover */
    ::-webkit-scrollbar-thumb:hover {
        background: #555;
    }


/* ---------------------------------------------------------
   RESET DEFAULTS INSIDE HELP SYSTEM
   --------------------------------------------------------- */

/* Zero out browser defaults, but DO NOT zero out div globally.
   Divs are structural containers; zeroing them causes spacing collapse.
*/
.help-root p,
.help-root ul,
.help-root li,
.help-root table {
    margin: 0;
    padding: 0;
}

/* ---------------------------------------------------------
   ROOT CONTAINER
   --------------------------------------------------------- */
.help-root {
    background-color: aliceblue;
    font-size: .9rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 20px 30px;
    margin: 20px 0;
}

/* ---------------------------------------------------------
   SECTION BLOCKS
   --------------------------------------------------------- */
.section-block {
    margin-bottom: 24px; /* slightly larger for top-level separation */
}

.section-heading {
    font-size: 1.1rem;
    color: dimgray;
    font-weight: 600;
}

/* SectionHeading.Content */
.section-heading-content p {
    margin: 6px 0;
}

/* ---------------------------------------------------------
   STANDARD CONTENT
   --------------------------------------------------------- */
.standard-content {
    margin: 10px 0; /* use margin instead of padding for vertical rhythm */
}

    .standard-content p {
        margin: 6px 0;
    }

/* ---------------------------------------------------------
   SUBSECTION BLOCKS
   --------------------------------------------------------- */
.subsection-block {
    padding: 10px 40px;
    margin: 16px 0; /* consistent spacing between subsections */
}

.subsection-heading {
    font-size: .98rem;
    color: dimgray;
    font-weight: 600;
}

/* ---------------------------------------------------------
   LIST BLOCKS
   --------------------------------------------------------- */
.list-block {
    padding-left: 60px;
}
    .list-block li {
        margin: 4px 0; /* avoid stacked list items touching */
    }

/* ---------------------------------------------------------
   IMPORTANT INFO BLOCK
   --------------------------------------------------------- */
.important-info-block {
    padding: 15px;
    color: maroon;
    text-align: center;
    background-color: whitesmoke;
    width: 80%;
    margin: 24px auto; /* consistent spacing above/below */
    border: 1px solid darkslategrey;
    box-shadow: 7px 5px 7px dimgrey;
}

    .important-info-block p {
        margin: 8px 0;
    }

/* ---------------------------------------------------------
   RELATED TOPICS
   --------------------------------------------------------- */
.related-topics {
    margin-top: 24px;
}

/* ---------------------------------------------------------
   ICON PADDING
   --------------------------------------------------------- */
.padLeft25 {
    padding-left: 25px;
    font-style:normal;
    color:black;
}

.padLeft40 {
    padding-left: 40px;
    font-style: normal;
    color: black;
}

.padLeft55 {
    padding-left: 55px;
    font-style: normal;
    color: black;
}

.padLeft70 {
    padding-left: 70px;
    font-style: normal;
    color: black;
}

.icon-wrapper {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
}

.icon-col {
    flex: 0 0 auto;
}

.text-col {
    flex: 1 1 auto;
}



.suggestion-item.selected {
    background: #e6f0fa;
}

.suggestion-surface {
    background: #e8f3fd; 
    color:#4d4d4d;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 5px 7px 5px grey;
    margin-top: 2px;
}

.suggestion-item {
    background: #e8f3fd;
    color: #4d4d4d;
    padding: 6px 10px;
    cursor: pointer;
}

    .suggestion-item:hover {
        background: #f2f7fc;
    }

    .suggestion-item a {
        font-size: .9rem;
        color: #4d4d4d;
    }

.fade-out {
    opacity: 0;
    transition: opacity .4s ease;
}

.fade-in {
    opacity: 1;
    transition: opacity .4s ease;
}

.hidden {
    display: none;
}

.topic-reveal {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .4s ease, transform .4s ease;
}

    .topic-reveal.show {
        opacity: 1;
        transform: translateY(0);
    }


/* ---------------------------------------------------------
   FORMULA PROCESSING
   --------------------------------------------------------- */
/* Component wrapper: replaces :root + body */
.iq-formula {
    --bg: #f5f7fa;
    --panel: #ffffff;
    --muted: #6b7280;
    --text: #1f2937;
    --accent: #2563eb;
    --danger: #dc2626;
    --ok: #059669;
    background: linear-gradient(180deg, #ffffff, var(--bg) 48%, #ffffff);
    color: var(--text);
    padding: 10px;
    display: grid;
    place-items: start center;
}

/* Inner panel */
.iq-formula-wrap {
    width: 90%;
    background: var(--panel);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 24px;
}

/* Typography */
.iq-formula h1 {
    margin: 0 0 8px;
    font-size: 1.35rem;
}

.iq-formula p.hint {
    margin: 0 0 16px;
    color: var(--muted);
}

.iq-formula label {
    display: block;
    font-weight: 600;
    margin: 12px 0 8px;
}

/* Inputs */
.iq-formula textarea,
.iq-formula input[type="text"],
.iq-formula input[type="number"] {
    width: 100%;
    box-sizing: border-box;
    background: #ffffff;
    color: var(--text);
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 10px;
    padding: 10px 12px;
    outline: none;
    transition: border-color 120ms ease, box-shadow 120ms ease;
}

    .iq-formula textarea:focus,
    .iq-formula input:focus {
        border-color: var(--accent);
        box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
    }

.iq-formula textarea {
    min-height: 80px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Layout */
.iq-formula .row {
    display: grid;
    grid-template-columns: 1fr 70px;
    gap: 12px;
    align-items: end;
}

.iq-formula .vars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.iq-formula .var {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 10px 12px;
}

    .iq-formula .var small {
        color: var(--muted);
        display: block;
        margin-bottom: 6px;
    }

/* Buttons */
.iq-formula .actions {
    margin-top: 16px;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.iq-formula button {
    background: linear-gradient(180deg, #3b82f6, #2563eb);
    border: 0;
    color: white;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37,99,235,0.25);
}

    .iq-formula button.secondary {
        background: #ffffff;
        color: var(--accent);
        border: 1px solid rgba(37,99,235,0.4);
        box-shadow: none;
    }

/* Result block */
.iq-formula .result {
    margin-top: 16px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    background: #f3f4f6;
    border: 1px solid rgba(0,0,0,0.1);
    padding: 12px;
    border-radius: 12px;
    display: grid;
    gap: 8px;
}

.iq-formula .ok {
    color: var(--ok);
}

.iq-formula .err {
    color: var(--danger);
}

/* Misc */
.iq-formula .pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(0,0,0,0.06);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.iq-formula .kbd {
    font: inherit;
    padding: 0 6px;
    border-radius: 6px;
    background: #f3f4f6;
    border: 1px solid rgba(0,0,0,0.15);
}

.helpCallout {
    background-color: whitesmoke;
    border: 1px solid dimgrey;
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 5px 7px 7px rgba(0,0,0,0.35);
}

.helpCallout-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: dimgray;
    margin-bottom: 10px;
}

.iq-dropzone {
    border: 2px dashed #ccc;
    border-radius: 6px;
    padding: 12px;
    text-align: center;
    font-size: .85rem;
    color: #555;
    transition: background-color .2s ease, border-color .2s ease;
}

    .iq-dropzone.dragover {
        background-color: #f5faff;
        border-color: #4a90e2;
        color: #333;
    }


/* ================================
   ClarityAi Analysis Layout
   ================================ */

.clarityai-analysis {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1.5rem 1rem;
    font-family: var(--iqc-font, 'Segoe UI', sans-serif);
    color: var(--iqc-text, #1a1a1a);
}

/* ================================
   Section Headers
   ================================ */

.clarityai-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--iqc-accent, #3b5cff);
    margin-bottom: 0.5rem;
    letter-spacing: 0.2px;
}

/* ================================
   Summary
   ================================ */

.clarityai-summary {
    background: var(--iqc-panel-bg, #fafafa);
    padding: 1rem 1.25rem;
    border-radius: 6px;
    line-height: 1.5;
    font-size: 0.95rem;
    border:1px solid lightgrey;
    box-shadow:5px 7px 5px lightgrey;
}

/* ================================
   Key Insights (UL/LI allowed)
   ================================ */

.clarityai-insights {
    background: var(--iqc-panel-bg, #fafafa);
    padding: 1rem 1.25rem;
    border-radius: 6px;
    border: 1px solid lightgrey;
    box-shadow: 5px 7px 5px lightgrey;
}

    .clarityai-insights ul {
        margin: 0;
        padding-left: 1.25rem;
    }

    .clarityai-insights li {
        margin-bottom: 0.4rem;
        line-height: 1.45;
        font-size: 0.95rem;
    }

/* ================================
   Recommended Visualization
   ================================ */

.clarityai-visualization {
    background: var(--iqc-panel-bg, #fafafa);
    padding: 1rem 1.25rem;
    border-radius: 6px;
    line-height: 1.5;
    font-size: 0.95rem;
    border: 1px solid lightgrey;
    box-shadow: 5px 7px 5px lightgrey;
}

.clarityai-vis-field {
    margin-bottom: 0.35rem;
}

.clarityai-vis-label {
    font-weight: 600;
    margin-right: 0.25rem;
    color: var(--iqc-text-strong, #111);
}

/* ================================
   Why These Results
   ================================ */

.clarityai-why {
    background: var(--iqc-panel-bg, #fafafa);
    padding: 1rem 1.25rem;
    border-radius: 6px;
    line-height: 1.5;
    font-size: 0.95rem;
    border: 1px solid lightgrey;
    box-shadow: 5px 7px 5px lightgrey;
}

/* ================================
   Optional subtle divider
   ================================ */

.clarityai-divider {
    height: 1px;
    background: var(--iqc-divider, #e5e5e5);
    margin: 1.5rem 0;
}
