:root {
    --bg-dark: #061026;
    --accent-1: #ffb703; /* sun yellow */
    --accent-2: #fb8500; /* orange */
    --panel: rgba(255, 255, 255, 0.04);
    --glass: rgba(255, 255, 255, 0.06);
    --dark: #111111;
    --muted: #9fb0c8;
    --max-width: 1100px;
}

/* Page-wide background and base typography */
html, body {
    min-height: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    color: #e6f0fb;
    background: linear-gradient(to bottom, 180deg, #021029 0%, #031733 60%);
    font-family: "Segoe UI", Roboto, system-ui, -apple-system, "Helvetica Neue", Arial;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/*html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #c5e7fd;
}*/

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

/*.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}*/

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 2.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5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gNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto 0 auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.muted {
    color: var(--muted)
}

.info-box {
    background: #fff3cd;
    border-radius: 0.75rem;
    padding: 1rem 1rem;
    margin: 1rem 0;
    border: 1px solid #ffeeba;
    display: flex;
    align-items: flex-start !important;
    gap: 0.75rem;
    color: var(--bg-dark);
}

.drag-drop-area {
    cursor: pointer;
    min-height: 180px;
    width: 100%;
    background: #fafafa;
    background-image: url(../images/drop_file_here.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-color: #f8f9fa;
    border: 1px dashed black;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.drag-drop-area:hover {
        background-color: #e2e6ea;
    }

    .drag-drop-area:active {
        background-color: #d6d8db;
    }

.upload-container {
    /* Required for absolute positioning of the spinner overlay */
    position: relative;
    /* Optional: Add a specific size or padding to give context to the spinner's position */
   /* padding: 20px;*/
   /* border: 1px solid #ccc;*/
    display: inline-block; /* Adjust as needed for your layout */
    width: 100%;
}

.spinner-overlay {
    /* Position the overlay to cover the entire container */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Center the spinner using flexbox */
    display: flex;
    justify-content: center;
    align-items: center;
    /* Optional: Add a semi-transparent background */
    background-color: rgba(0, 0, 0, 0.8);
    /* Ensure the overlay is above the InputFile element */
    z-index: 10;
}

/* Hide screen reader text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* -----------------------------------------------------
    buttons
--------------------------------------------------------*/
button::-moz-focus-inner {
    border: 0;
    padding: 0;
}

.iq-button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: 0 0;
    border: 0;
    color: inherit;
    cursor: pointer;
    display: inline-block;
    font-family: inherit;
    font-size: inherit;
    margin: 0;
    outline: 0;
    padding: 0;
    text-decoration: none;
    text-align: center;
}

    .iq-button:not(.iq-button-icon) {
        min-width: 40px;
    }

.iq-button-standard {
    border: 1px solid #a6a9b0;
    border-radius: 3px;
    color: #fff;
    background-color: #347083 !important;
    font-weight: 700;
    position: relative;
    text-align: center;
    text-decoration: none;
    transition-duration: .1s;
    transition-property: color,background,box-shadow;
    transition-timing-function: ease;
}

    .iq-button-standard:hover {
        color: #fff;
        background-color: #347083cc !important;
    }

    .iq-button-standard:active {
        color: #fff;
        background-color: #347083 !important;
    }

    .iq-button-standard:focus {
        color: #fff;
    }

    .iq-button-standard:focus {
        box-shadow: 0 0 0 3px rgba(0,10,30,.2);
        text-decoration: none;
        z-index: 2;
    }

.iq-button-submit {
    font-weight: 700 !important;
    color: #fff !important;
    background-color: #52433E !important;
    border: 1px solid #3C3F42;
    border-radius: 3px;
    position: relative;
    text-align: center;
    text-decoration: none;
    transition-duration: .1s;
    transition-property: color,background,box-shadow;
    transition-timing-function: ease;
}

    .iq-button-submit:hover {
        color: #fff !important;
        background-color: #52433ECC !important;
    }

    .iq-button-submit:active {
        color: #fff !important;
        background-color: #52433E !important;
    }

    .iq-button-submit:focus {
        color: #fff !important;
    }

    .iq-button-submit:focus {
        box-shadow: 0 0 0 3px rgba(0,10,30,.2);
        text-decoration: none;
        z-index: 2;
    }

.iq-button-create {
    font-weight: 700;
    color: #fff;
    background-color: #00823c;
    border: 1px solid #00823c;
    border-radius: 3px;
    position: relative;
    text-align: center;
    text-decoration: none;
    transition-duration: .1s;
    transition-property: color,background,box-shadow;
    transition-timing-function: ease;
}

    .iq-button-create:hover {
        color: #fff;
        background-color: #007639;
    }

    .iq-button-create:active {
        color: #fff;
        background-color: #006a36;
    }

    .iq-button-create:focus {
        color: #fff;
    }

    .iq-button-create:focus {
        box-shadow: 0 0 0 3px rgba(0,10,30,.2);
        text-decoration: none;
        z-index: 2;
    }

.iq-button-negative {
    font-weight: 700;
    color: #fff;
    background-color: #dc3246;
    border: 1px solid #dc3246;
    border-radius: 3px;
    position: relative;
    text-align: center;
    text-decoration: none;
    transition-duration: .1s;
    transition-property: color,background,box-shadow;
    transition-timing-function: ease;
}

    .iq-button-negative:hover {
        color: #fff;
        background-color: #c62e42;
    }

    .iq-button-negative:active {
        color: #fff;
        background-color: #b02a3e;
    }

    .iq-button-negative:focus {
        color: #fff;
    }

    .iq-button-negative:focus {
        box-shadow: 0 0 0 3px rgba(0,10,30,.2);
        text-decoration: none;
        z-index: 2;
    }

.iq-button-borderless-standard {
    font-weight: 700;
    color: #000a1e;
    background: 0 0;
    border-radius: 3px;
    line-height: 1rem;
    min-height: 40px;
    padding: 11px 16px;
    position: relative;
    transition-duration: .1s;
    transition-property: color,background;
    transition-timing-function: ease;
}

    .iq-button-borderless-standard:hover {
        color: #0073c0;
        background: rgba(0,10,30,.05);
    }

    .iq-button-borderless-standard:focus {
        color: #0073c0;
        background: rgba(0,10,30,.05);
    }

    .iq-button-borderless-standard:active {
        color: #5F6369;
        background: rgba(0,10,30,.1);
    }

    .iq-button-borderless-standard.iq-button-is-disabled {
        color: rgba(0,10,30,.5);
        background-color: none;
        border-color: #80858f;
        box-shadow: none;
        cursor: not-allowed;
    }

        .iq-button-borderless-standard.iq-button-is-disabled:active, .iq-button-borderless-standard.iq-button-is-disabled:hover {
            background-color: initial;
        }

.iq-button-fullwidth {
    display: block;
    width: 100%;
}

.iq-button-error {
    background-color: red !important;
}

    .iq-button-error:active {
        background-color: red !important;
    }

    .iq-button-error:focus {
        background-color: red !important;
    }

    .iq-button-error:hover {
        background-color: red !important;
    }


@media screen and (max-width:599.98px) {
    .iq-button-fullwidth-layout {
        display: block;
        width: 100%;
    }
}

.iq-button-medium {
    line-height: 1rem;
    min-height: 40px;
    padding: 11px 16px;
}

.iq-button-small {
    font-size: .8125rem;
    line-height: 1.25rem;
    min-height: 32px;
    padding: 5px 12px;
}

.iq-button-xsmall {
    font-size: .6875rem;
    line-height: 1rem;
    min-height: 24px;
    padding: 3px 8px;
}

    .iq-button-small .iq-button--lefticon, .iq-button-xsmall .iq-button--lefticon {
        margin-left: -4px;
    }

.iq-button--righticon {
    margin-left: 4px;
    margin-right: -8px;
}

.iq-button-small .iq-button--righticon, .iq-button-xsmall .iq-button--righticon {
    margin-right: -4px;
}

.iq-button:disabled {
    cursor: not-allowed;
}

.iq-button-is-disabled {
    color: #80858f;
    border-color: #80858f;
    box-shadow: none;
    cursor: not-allowed;
}

    .iq-button-is-disabled:focus, .iq-button-is-disabled:hover {
        color: #80858f;
        background-color: #fff;
        border-color: #80858f;
        box-shadow: none;
        cursor: not-allowed;
    }

    .iq-button-is-disabled.iq-button-submit {
        color: #fff;
        background-color: #80858f;
        border-color: #80858f;
        box-shadow: none;
        cursor: not-allowed;
    }

    .iq-button-is-disabled.iq-button-create {
        color: #fff;
        background-color: #80858f;
        border-color: #80858f;
        box-shadow: none;
        cursor: not-allowed;
    }

    .iq-button-is-disabled.iq-button-negative {
        color: #fff;
        background-color: #80858f;
        border-color: #80858f;
        box-shadow: none;
        cursor: not-allowed;
    }




/* -----------------------------------------------------
    validation
--------------------------------------------------------*/

.iq-validation {
    font-size: .8rem;
    line-height: 1rem;
    color: rgba(0,10,30,.75);
}

.iq-validation-is-invalid {
    color: #dc3246;
    display: flex;
    line-height: 18px;
    padding-top: 6px;
}

    .iq-validation-is-invalid .iq-icon {
        height: 18px;
        margin-right: 8px;
        width: 18px;
    }

.invalid {
    outline: 1px solid red;
}

.iq-completed-success {
    color: rgb(52, 112, 131);
}

.iq-completed-error {
    color: #dc3246;
}


/* -----------------------------------------------------
    match landing page styles
--------------------------------------------------------*/

/* App container alignment to match static landing layout */
.page {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.25rem;
    background: 
        radial-gradient(1200px 300px at -10% -20%, rgba(251,133,0,0.06), transparent 10%), 
        linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(2, 8, 20, 0.6);
}

/* Brand header (logo + title) */
.brand {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.75rem;
}

.logo {
    height: 56px;
    width: 56px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 18px rgba(11, 21, 40, 0.6);
    transition: transform .15s ease;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.04);
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
}

    .logo:focus,
    .logo:hover,
    .logo:active {
        transform: translateY(-2px) scale(1.02);
    }

/* Main content area */
.content {
    padding: 0.5rem 0;
    color: #e6f0fb;
}

/* Cards and panels */
.card {
    background: var(--panel);
    border-radius: 10px;
    padding: 1rem;
    min-height: 140px;
    color: inherit;
    border: 1px solid rgba(255,255,255,0.02);
}

    .card h3 {
        margin: 0 0 0.5rem 0;
        color: #fff;
    }

    .card p {
        margin: 0;
        color: var(--muted);
    }

/* Buttons */
.btn-primary {
    background: linear-gradient(90deg, var(--accent-2), var(--accent-1));
    border: none;
    color: #041025;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

/* Images used across app */
.hero-image,
.ai-image,
img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    border: 1px solid rgba(255,255,255,0.04);
}

/* Footer */
footer.static-footer {
    margin-top: 1rem;
    color: var(--muted);
    font-size: 0.9rem;
    text-align: center;
}

.sun {
    color: var(--accent-1)
}

.navigation-container {
    display: flex; /* Enables Flexbox for the container */
    justify-content: space-between; /* Distributes space evenly, pushing items to ends */
    width: 100%; /* Ensures the container spans the full width available */
    padding: 10px 0; /* Optional: Adds some vertical padding */
}


.modal-header {
    color: var(--dark)
}

:root:has(.modal.show) {
    overflow: hidden;
}

.modal-slider-containr {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    padding-top: 10px;
    padding-left: 20px;
    padding-right: 30px;
    /*    border-bottom: var(--bs-modal-header-border-width) solid var(--bs-modal-header-border-color);
    border-top-left-radius: var(--bs-modal-inner-border-radius);
    border-top-right-radius: var(--bs-modal-inner-border-radius);
*/
}


/* Responsiveness */
@media (min-width: 720px) {
    .page {
        padding: 1.5rem;
    }

    .brand .logo {
        height: 64px;
        width: 64px;
    }
}


/* -----------------------------------------------------
    Plotly overrides
--------------------------------------------------------*/

/* Disable the specific pan cursors used by Plotly on axes */
.js-plotly-plot .plotly .cursor-ns-resize,
.js-plotly-plot .plotly .cursor-ew-resize,
.js-plotly-plot .plotly .cursor-grab {
    cursor: default !important;
}

/* While the above changes the cursor appearance, to actually prevent keyboard navigation you will need to manage focus on the chart element in Blazor to prevent key events from being processed by Plotly.js's internal keybinding handler */
