@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

/* =============================================
   SECTION 1: GLOBAL RUNTIME ESSENTIALS
   Import, link colour, Safari file input fix
   ============================================= */

a, .btn-link {
    color: #006bb7;
}

/* Safari file input workaround */
.blazor-hidden-file-input {
    position: fixed;
    left: -10000px;
    top: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
}

/* =============================================
   SECTION 2: HOME PAGE
   Hero image, CTA buttons, section backgrounds
   ============================================= */

.home-hero-logo {
    display: block;
    width: 100%;
    max-width: 1250px;
    margin: auto;
}

/*.button {*/
/*    background-color: #00173b;*/
/*    font-family: 'Sen', sans-serif;*/
/*    font-weight: bold;*/
/*    font-size: 1rem;*/
/*    padding: 0.5rem 1.2rem;*/
/*    border-radius: 6px;*/
/*    border: 2px solid transparent;*/
/*    text-decoration: none;*/
/*    display: inline-flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    cursor: pointer;*/
/*    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;*/
/*    margin: 0;*/
/*    color: white;*/
/*}*/

.button:visited,
.button:hover,
.button:active,
.button:focus {
    color: white;
    text-decoration: none;
}

.button--logout {
    background-color: #00173b;
    color: #ffffff;
    border-color: #00173b;
}

.button-hero-height.btn-outline-light:hover {
    background-color: transparent;
    color: white;
}


.develop-section {
    background-color: #00173b;
}

/* =============================================
   SECTION 3: MONOPOLY TABLE COMPONENTS
   Syncfusion buttons, splash zone, attachments,
   marine growth, TP, DLC, elevation selectors,
   soil/cluster tables, disabled button states
   ============================================= */

.e-btn.e-custom {
    display: inline-block;
    background-color: #00173b;
    vertical-align: middle;
    -webkit-transform: perspective(1px) translateZ(0);
    transform: perspective(1px) translateZ(0);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0);
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
    -webkit-transition-property: box-shadow;
    transition-property: box-shadow;
    min-width:fit-content;
    font-weight: bold;
    font-family: 'Sen', sans-serif !important;
    color: #fff;
    justify-content: center;
    line-height: 1.6em;
    outline: none;
    padding: 4px 8px;
    text-align: center;
    font-size: 14px;
    border: 1px solid #6c757d;
    border-radius: 4px;
    box-sizing: border-box;
}

.e-btn.e-custom:hover {
    box-shadow: 0 0 9px rgba(0, 0, 0, 0.7);
    background-color: #00173b;
}

.splash-zone-table {
    width: 100%;
}

.attachment-table {
    width: 100%;
}

@media (min-width: 1501px) {
    /* col 1 = Name + delete btn */
    .attachment-table th:nth-child(1),
    .attachment-table td:nth-child(1) {
        width: 9rem;
        min-width: 8rem;
    }

    /* col 2 = SCF */
    .attachment-table th:nth-child(2),
    .attachment-table td:nth-child(2) {
        width: 5.5rem;
        min-width: 4.8rem;
    }

    /* col 3 = Coated Curve */
    .attachment-table th:nth-child(3),
    .attachment-table td:nth-child(3) {
        width: 7.5rem;
        min-width: 6.5rem;
    }

    /* col 4 = Uncoated Curve */
    .attachment-table th:nth-child(4),
    .attachment-table td:nth-child(4) {
        width: 7.5rem;
        min-width: 6.5rem;
    }

    /* col 5 = Coated Life */
    .attachment-table th:nth-child(5),
    .attachment-table td:nth-child(5) {
        width: 6rem;
        min-width: 5rem;
    }

    /* col 6 = Uncoated Life */
    .attachment-table th:nth-child(6),
    .attachment-table td:nth-child(6) {
        width: 6rem;
        min-width: 5rem;
    }

    /* col 7 = Elevation */
    .attachment-table th:nth-child(7),
    .attachment-table td:nth-child(7) {
        width: 8.25rem;
        min-width: 7rem;
    }

    /* col 8 = Excl. Diameter */
    .attachment-table th:nth-child(8),
    .attachment-table td:nth-child(8) {
        width: 6.56rem;
        min-width: 5.5rem;
    }

    /* col 9 = Weld Width */
    .attachment-table th:nth-child(9),
    .attachment-table td:nth-child(9) {
        width: 6.56rem;
        min-width: 5.5rem;
    }

    /* col 10 = Max Damage */
    .attachment-table th:nth-child(10),
    .attachment-table td:nth-child(10) {
        width: 6.56rem;
        min-width: 5.5rem;
    }

    /* col 11 = Location */
    .attachment-table th:nth-child(11),
    .attachment-table td:nth-child(11) {
        width: 8.44rem;
        min-width: 7rem;
    }

    /* col 12 = DFF */
    .attachment-table th:nth-child(12),
    .attachment-table td:nth-child(12) {
        width: 4.69rem;
        min-width: 3.98rem;
    }

    .attachment-table td {
        white-space: nowrap;
        height: 2.34rem;
        vertical-align: middle;
    }
}

.marinegrowth-table {
    width: 100%;
}

.tp-table {
    width: 100%;
}

.dlc-table {
    width: 100%;
}

.splash-zone-table select {
    font-size: 0.75rem;
}

.splash-zone-table input-adornment {
    font-size: 0.75rem;
}

@media (min-width: 1501px) {
    .splash-zone-table th:nth-child(1),
    .splash-zone-table td:nth-child(1) {
        width: 8.25rem;
        min-width: 8.25rem;
    }

    .splash-zone-table th:nth-child(2),
    .splash-zone-table td:nth-child(2),
    .splash-zone-table th:nth-child(3),
    .splash-zone-table td:nth-child(3) {
        width: 6.56rem;
        min-width: 5.86rem;
    }

    .splash-zone-table th:nth-child(4),
    .splash-zone-table td:nth-child(4),
    .splash-zone-table th:nth-child(5),
    .splash-zone-table td:nth-child(5) {
        width: 8.44rem;
        min-width: 6.8rem;
    }

    .splash-zone-table th:nth-child(6),
    .splash-zone-table td:nth-child(6),
    .splash-zone-table th:nth-child(7),
    .splash-zone-table td:nth-child(7) {
        width: 5.63rem;
        min-width: 4.92rem;
    }

    /* col 8 = DFF */
    .splash-zone-table th:nth-child(8),
    .splash-zone-table td:nth-child(8) {
        width: 4.69rem;
        min-width: 3.98rem;
    }

    /* col 9 = Grinding Req. */
    .splash-zone-table th:nth-child(9),
    .splash-zone-table td:nth-child(9) {
        width: 4.69rem;
        min-width: 3.98rem;
    }

    /* col 10 = Grinding Option */
    .splash-zone-table th:nth-child(10),
    .splash-zone-table td:nth-child(10) {
        width: 9.38rem;
        min-width: 7.59rem;
    }

    .splash-zone-table td {
        white-space: nowrap;
        height: 2.34rem;
        vertical-align: middle;
    }
}

.elevation {
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    align-items: center;
    width: 20rem;
    margin: 0 auto 0 0;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out;
    overflow-x: hidden;
    overflow-y: auto;
    font-size: 15px;
}

.elevation-selected {
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: grey;
    align-items: center;
    width: 20rem;
    margin: 0 auto 0 0;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out;
    overflow-x: hidden;
    overflow-y: auto;
    font-size: 15px;
}

.table-container-scrollable {
    overflow-y: auto;
    max-height: 50vh;
}

.btn-disabled:disabled {
    background-color: #ddd;
    border: none;
}

.btn-disabled:disabled:hover {
    background-color: #ddd;
    border: none;
    box-shadow: none;
}

.btn-disabled.disabled,
.btn-disabled[aria-disabled="true"] {
    background-color: #ddd;
    border: none;
    box-shadow: none;
    cursor: not-allowed;
    pointer-events: none;
}

.cluster-table-header {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* =============================================
   SECTION 4: MONOPOLY PAGE LAYOUTS
   Charts, tabs, history, post-processing,
   tower, permutations, wave page
   ============================================= */

/* ApexCharts runtime hooks — classes injected by the library, not referenced in Razor markup */
.apexcharts-canvas {
    max-width: 100%;
    margin: 0 auto;
}

.apexcharts-graphical,
.apexcharts-inner {
    max-width: 100%;
}

.apexcharts-svg {
    max-width: 100%;
}

/* Tabs */

.tabs {
    display: flex;
    flex-direction: column;
    justify-content: end;
    margin: 4px 0;
}

.tabs__tab {
    width: 100%;
}

.tabs__header {
    display: flex;
    justify-content: center;
    background-color: #f1f5f9;
    padding: 4px;
    border-radius: 8px;
    list-style: none;
    margin: 0;
    gap: 4px;
}

@media (max-width: 425px) {
    .tabs__header {
        flex-wrap: wrap;
    }
}

.tabs__button {
    padding: 8px 16px;
    color: #64748b;
    font-size: medium;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    flex: 1 1 auto;
    white-space: nowrap;
    width: 100%;
}

.tabs__button--active {
    background-color: white;
    color: #1e293b;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tabs__button:not(.tabs__button--active):hover {
    color: #475569;
}

.tabs__content {
    overflow-y: auto;
    overflow-x: hidden;
}

/* History page */

.history-page {
    height: 100%;
    overflow-y: auto;
    min-height: 0;
}

.history-card-toggle {
    margin-top: 4px;
}

.analysis_button {
    width: 15rem;
    margin: 0.5rem;
    height: 3rem;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.35);
    border: none;
    background-color: #00173b;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
}

/* Post processing */

.post-container-scrollable {
    overflow-y: auto;
    max-height: 30vh;
}

/* Tower page — QuickGrid display improvements */

.tower-quickgrid {
    font-size: 0.875rem;
}

.tower-quickgrid td,
.tower-quickgrid th {
    padding: 4px 8px;
    white-space: nowrap;
}

.tower-quickgrid th {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}

.tower-quickgrid td:not(:first-child),
.tower-quickgrid th:not(:first-child) {
    text-align: right;
}

/* Tower / monopile profile charts — narrow column width constraint */
.pile-width-limiter {
    width: 100%;
    overflow: hidden;
}

.pile-width-limiter .apexcharts-canvas,
.pile-width-limiter svg {
    max-width: 100% !important;
    width: 100% !important;
}

/* Permutation result dialog — monopile profile chart */
.permutation-profile-chart {
    max-width: 200px;
    overflow: hidden;
}

.permutation-profile-chart .apexcharts-canvas,
.permutation-profile-chart svg {
    max-width: 100% !important;
    width: 100% !important;
}

/* Permutations page */
.permutations-table {
    table-layout: auto;
}

.permutations-table td,
.permutations-table th {
    white-space: nowrap;
    vertical-align: middle;
    min-width: 97px;
}

.permutations-table th {
    white-space: normal;
}

.permutations-table td:first-child {
    width: 3rem;
    text-align: center;
}

/* Override 60×60 square toggle-button for text-label context */
.analysis-type-toggles .toggle-button {
    width: auto;
    height: auto;
    min-height: 44px;
    padding: 8px 16px;
    white-space: normal;
    text-align: center;
}

/* Status column: fixed width so rapid SignalR status updates during PPD
   don't cause the column to re-flow. Long messages wrap to multiple lines. */
.permutations-table th:nth-child(10),
.permutations-table td:nth-child(10) {
    width: 200px;
    min-width: 200px;
    max-width: 200px;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
}

/* Batch run nested permutations table: it sits as a flex item inside .row, so an
   over-wide status cell pushes the table past its container and gets clipped. Let the
   table fill and shrink within the flex parent, and wrap long status messages. */
.batch-perm-table {
    width: 100%;
    min-width: 0;
}

.batch-perm-table .status-col {
    max-width: 320px;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: left;
}

/* CustomSpinner inline overrides for permutations table status column */
.permutations-table .custom-spinner {
    width: 100%;
    height: auto;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.permutations-table .spinner-message {
    white-space: normal;
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--ui-text);
}

.permutations-table .spinner-progress {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    height: 6px;
    background: var(--ui-border);
    border-radius: 3px;
    overflow: hidden;
}

.permutations-table .spinner-progress-bar {
    height: 100%;
    background: var(--ui-primary);
    transition: width 0.3s ease;
}

.permutations-table .spinner-progress-text {
    font-size: 0.8rem;
    color: var(--ui-text-muted);
}

/* Wave page */
.wave-table-container {
    max-height: 60vh;
    overflow-y: auto;
    overflow-x: auto;
}

.wave-page .custom-radio + span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ui-text);
}

/* Bootstrap table-responsive adds overflow-x:auto; this adds padding for MonoPoly tables */
.table-responsive {
    padding: 4px;
}

@media (max-width: 1500px) {
    /* Stack table rows as cards on tablet and mobile */
    .table-responsive-stack thead {
        display: none;
    }

    .table-responsive-stack tr {
        display: block;
        border: 1px solid var(--ui-border);
        border-radius: 8px;
        margin-bottom: 0.75rem;
        padding: 0.25rem 0;
        background: var(--ui-surface);
    }

    .table-responsive-stack td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 1rem;
        border: none;
        border-bottom: 1px solid var(--ui-border);
        white-space: normal;
    }

    .table-responsive-stack td:last-child {
        border-bottom: none;
    }

    .table-responsive-stack td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--ui-text-muted);
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        flex-shrink: 0;
        margin-right: 1rem;
    }

    /* Reset hardcoded 3rem checkbox column — it squashes stacked cards */
    .permutations-table td:first-child {
        width: auto;
        min-width: 0;
        text-align: left;
    }

    /* Status column: the long status message + algorithm dropdown can't share a 200px-capped
       flex row with the label without being crushed to a sliver. Drop the cap and stack the
       label above full-width content. */
    .permutations-table td:nth-child(10) {
        min-width: 0;
        width: auto;
        max-width: none;
        flex-direction: column;
        align-items: stretch;
        text-align: left;
    }

    .permutations-table td:nth-child(10)::before {
        margin-right: 0;
        margin-bottom: 0.35rem;
    }

    /* Stacked cards are full-width, so drop the wide-view status cap and let it fill. */
    .batch-perm-table .status-col {
        max-width: none;
    }
}

/* =============================================
   SECTION 5: STATE INDICATORS
   Save status pill, connectivity toasts
   ============================================= */

.save-status {
    position: fixed;
    right: 16px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0, 23, 59, 0.95);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    z-index: 2147483646;
}

.save-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #6b7280;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12);
}

.save-status.is-saved .save-dot {
    background: #22c55e;
}

.save-status.is-saving .save-dot {
    background: #f59e0b;
    animation: save-pulse 1s ease-in-out infinite;
}

@keyframes save-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

@media (max-width: 768px) {
    .save-status {
        right: 12px;
        bottom: 12px;
        font-size: 0.75rem;
    }
}

#conn-toast{
    position: fixed;
    left: 16px; bottom: 16px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #00173b;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 8px 28px rgba(0,0,0,.22);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    z-index: 2147483647;
}
#conn-toast.show{ opacity: 1; transform: translateY(0); }

#conn-harddown{
    position: fixed; top: 0; left: 0; right: 0;
    display: flex; align-items: center; justify-content: center; gap: 12px;
    padding: 10px 16px;
    background: rgba(0,23,59,.96);
    color: #fff;
    transform: translateY(-100%);
    transition: transform .25s ease;
    z-index: 2147483647;
}
#conn-harddown.show{ transform: translateY(0); }
#conn-harddown button{
    border: 0; border-radius: 8px;
    padding: 6px 12px;
    background: #fff;
    color: #00173b;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
    cursor: pointer;
}
#conn-harddown button:focus{ outline: 2px solid #fff; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
    #conn-toast, #conn-harddown { transition: none; }
}

/* =============================================
   SECTION 6: NAVIGATION
   Sidebar nav, toggler, icons, scrollable shell
   ============================================= */

.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.1);
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.user-info p {
    margin: 0;
    font-size: 1rem;
    font-weight: bold;
}

/* MonoPoly override: wider open-iconic caret than slpe.css default (20px → 2rem, vertical-align adjusted) */
.oi {
    width: 2rem;
    font-size: 1.1rem;
    vertical-align: text-top;
    top: -2px;
}

.nav-item {
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    padding-bottom: 0.5rem;
    cursor: pointer;
}

.nav-item:last-of-type {
    padding-bottom: 1rem;
}

.nav-item a {
    color: #d7d7d7;
    border-radius: 4px;
    height: 3rem;
    display: flex;
    align-items: center;
    line-height: 3rem;
}

.nav-item a.active {
    background-color: rgba(255, 255, 255, 0.25);
    color: white;
}

.nav-item a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-save-status .save-status {
    position: static;
    right: auto;
    bottom: auto;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: none;
}

.nav-scrollable{ height:calc(100vh - 3.5rem); overflow-y:auto; }

/* desktop >= 768 px */
@media (min-width:768px){
    .nav-scrollable{ height:100vh; }
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30' stroke='%23fff' stroke-width='2'%3E%3Cpath d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
    background-size: 100% 100%;
}

hr {
    display: block;
    height: 4px;
    border: 0;
    border-top: 4px solid #ccc;
    margin: 1em 0;
    padding: 0;
    color: red;
}

.nav-link:focus {
    color: unset
}

/* MonoPoly override: larger nav bar icons than slpe.css default (20px → 30px) */
.nav-bar-icon {
    height: 30px;
    width: 30px;
    margin-right: 8px;
}

.nav-image {
    background: url("Photos/monopoly_unfilled.png") no-repeat;
    object-fit: contain;
    max-width: 250px;
    height: 70px;
    background-size: contain;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem auto auto;
}

.oi-caret-bottom, .oi-caret-right
{
    text-align-last: end;
    font-size: smaller!important;
    margin-right: auto;
    margin-left: 0

}

/* Flex container for the oi-carets */
.caret-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 4px;
    margin-left:auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-15px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slowFade {
    from {
        opacity: 0;

    }

    to {
        opacity: 1;

    }
}

.delayAnimation {
    animation: fadeIn 1s ease-in-out both;
    animation-delay: 0.5s

}

.fade-in {
    animation: fadeIn 0.5s ease-in-out both;
}

/*------- CARDS -------*/


.card {
    border-radius: 5px;
    padding: 15px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.custom-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.error-card {
    background-color: #ffcccc;
    border: 1px solid #ff0000;
    border-radius: 5px;
    padding: 15px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.status-card {
    background-color: #ffe6cc;
    border: 1px solid #ff0000;
    border-radius: 5px;
    padding: 15px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.custom-card-header {
    font-size: 16px;
    font-weight: normal;
    line-height: 1.5;
    padding: 12px 12px 0;
}

.custom-card-content {
    line-height: 1.5;
    font-size: 14px;
    box-sizing: border-box;
    padding: 12px;
    word-wrap: break-word;
}

.custom-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: border 0.3s ease, transform 0.3s ease;
}

.custom-radio {
    accent-color: #00173b
}

/*--- TOAST */

.custom-toast-show {
    display: flex;
    align-content: center;
    align-items: center;
}

.custom-toast {
    border: 1px solid #00173b;
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.custom-toast.warning {
    background-color: #fff3cd;
    color: #856404;
    border-color: #ffeeba;
}

.custom-toast.success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.custom-toast.error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.custom-toast-header {
    display: flex;
    font-size: 16px;
    box-sizing: border-box;
    line-height: normal;
    min-height: 22.5px;
    width: inherit;
    padding: 12px 12px 0;
}

.custom-toast-body {
    display: block;
    margin-top: 0.5rem;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f126;
    border-radius: 18px;
}

::-webkit-scrollbar-thumb {
    background: #00173b;
    border-radius: 18px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Safari */

/*Shove it off elsewhere so Safari doesn't ignore it*/
.blazor-hidden-file-input {
    position: fixed;
    left: -10000px;
    top: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #00173b #f1f1f126;   /* thumb/track*/
    
}

.tooltip-normal {
    font-weight: 400
}


/* Home Page */
.home-hero-logo {
    display: block;
    width: 100%;
    max-width: 1250px;
    /*height: 30%;*/
    margin: auto;
}

.home-bg {
    background: #878a91;
    padding: 0;
    color: white;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.home-hero-bg-tint {
    background-image: url('Photos/monopoly_background_clear.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    width: 100%;
    display: flex;
    align-items: stretch;
}

.home-hero-bg-tint::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 23, 59, 0.98) 5%, rgba(16, 42, 71, 0.5) 55%, rgba(22, 58, 98, 0.5) 100%);
    pointer-events: none;
}

/* Full-viewport hero content flex column */
.home-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    width: 100%;
    padding: clamp(3rem, 10vh, 6rem) 1.5rem clamp(2rem, 6vh, 4rem);
    text-align: center;
    position: relative;
    z-index: 1;
}

.home-hero-logo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* CTA row — side-by-side desktop, stacked mobile */
.home-hero-ctas {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 2rem;
}

@media (max-width: 575px) {
    .home-hero-ctas {
        flex-direction: column;
        gap: 0.75rem;
    }
    .home-hero-ctas .btn {
        width: 15rem;
    }
}

.button-hero-height {
    height: 3rem;
    width: 15rem;
}

.home-hero-button {
    background-color: #00173b;
    color: #ffffff;
    border-color: #00173b;
    font-family: 'Sen', sans-serif;
    font-weight: bold;
    font-size: 1rem;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    margin: 0;
}

.section-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-content: flex-start;
}

.snap-scroll {
    scroll-snap-align: center;
}

.praise-bg {
    width: 100%;
    min-height: 100vh;
    background: #00173B;
    background: linear-gradient(180deg, rgba(0, 23, 59, 0.99) 15%, rgba(21, 41, 59, 1) 35%, rgba(0, 23, 59, 1) 100%);
}

.home-hero-bg {
    color: #fff;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.develop-section {
    background-color: #00173b;
}

/* Tabs */

.tabs {
    display: flex;
    flex-direction: column;
    justify-content: end;
    margin: 4px 0;
    /*gap: 1rem;*/
}

.tabs__tab {
    width: 100%;
}

.tabs__header {
    display: flex;
    justify-content: center;
    background-color: #f1f5f9;
    padding: 4px;
    border-radius: 8px;
    list-style: none;
    margin: 0;
    gap: 4px;
}

@media (max-width: 425px) {
    .tabs__header {
        flex-wrap: wrap;
    }
}

.tabs__button {
    padding: 8px 16px;
    color: #64748b;
    font-size: medium;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    flex: 1 1 auto;
    white-space: nowrap;
    width: 100%;
}

.tabs__button--active {
    background-color: white;
    color: #1e293b;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tabs__button:not(.tabs__button--active):hover {
    color: #475569;
}

.tabs__content {
    overflow-y: auto;
    overflow-x: hidden;
    /*flex-grow: 1;*/
}

/*history page*/

@media (max-width:1200px) {
    .mobile-button {
        width: 50% !important;
    }
}

/* Modal */
.modal-attr {
    display: block;
    align-content: center;
    backdrop-filter: blur(5px);
}

.modal-header-background {
    background-color: #00173b;
    color: white;
}

.modal-title-attr {
    margin: 0 0 1rem 0;
    height: 2.5rem;
    padding-left: .5rem;
}

.modal-title-attr:focus {
    outline: 2px solid #00173b;
}

.modal-dropdown-attr {
    margin: 0;
    text-align: initial;
    height: 2.5rem;
    padding-left: .5rem;
}

.modal-description-attr {
    margin: 0;
    text-align: initial;
    height: 5rem;
    padding-left: .5rem;
}

.modal-description-attr:focus {
    outline: 2px solid #00173b;
}

.create-btn {
    font-weight: bold;
    font-family: 'Sen', sans-serif !important;
    background-color: green;
    color: white;
}
.analysis_button {
    width: 15rem;
    margin: 0.5rem;
    height: 3rem;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.35);
    border: none;
    background-color: #00173b;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
}

/* Soil Table */
.bounded-header{
    z-index: 1;
    position: sticky;
    top: 0;
    background-color: white;
}
.table-container-scrollable{
    overflow-y: auto;
    max-height: 50vh;
}

.btn-disabled:disabled {
    background-color: #ddd;
    border: none;
}
.btn-disabled:disabled:hover {
    background-color: #ddd;
    border: none;
    box-shadow: none;
}
.btn-disabled.disabled,
.btn-disabled[aria-disabled="true"] {
    background-color: #ddd;
    border: none;
    box-shadow: none;
    cursor: not-allowed;
    pointer-events: none;
}

.select{
    background-color: white;
}

/*Post processing section*/
.post-container-scrollable{
    overflow-y: auto;
    max-height: 30vh;
}


/*Cluster Input Page */
.cluster-table-header{
    overflow:hidden; 
    white-space: nowrap; 
    text-overflow: ellipsis;
}

/*Temp, will be in SLPE_UI next pass*/
.icon-button-ghost {
    margin: auto
}

/* =============================================
   SECTION 7: HOME PAGE — FEATURES SHOWCASE
   Animated cards, stats strip
   Sits on top of the shared hero photo (set on .home-bg)
   ============================================= */

/* Own background — sits outside home-hero-bg-tint */
.features-showcase {
    position: relative;
    background: linear-gradient(180deg, rgba(0, 23, 59, 0.99) 0%, #00173b 100%);
    padding: 4rem 1.5rem 4rem;
    overflow: hidden;
}

/* ── Inner container ── */
.features-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

/* ── Header block ── */
.features-header {
    text-align: center;
    margin-bottom: 3.5rem;
    animation: featFadeUp 0.85s ease both;
}

.features-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: white;
    text-transform: uppercase;
    margin-bottom: 1rem;
    position: relative;
    padding: 0 1rem;
}

.features-eyebrow::before,
.features-eyebrow::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 36px;
    height: 1px;
    opacity: 0.6;
}

.features-eyebrow::before {
    right: 100%;
    background: linear-gradient(90deg, transparent, #3dd6f5);
}

.features-eyebrow::after {
    left: 100%;
    background: linear-gradient(90deg, #3dd6f5, transparent);
}

.features-heading {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin: 0 0 1rem;
}

.heading-glow {
    display: inline;
    background: linear-gradient(90deg, #3dd6f5, #006bb7, #3dd6f5, #3dd6f5);
    background-size: 250% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerGrad 3.5s linear infinite;
}

@keyframes shimmerGrad {
    from { background-position: 0% center; }
    to   { background-position: 250% center; }
}

.features-subheading {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.58);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.65;
}

/* ── Feature cards ── */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.feature-card {
    position: relative;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 1.75rem;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: featFadeUp 0.75s ease both;
    transition:
        transform 0.35s cubic-bezier(.22, .68, 0, 1.2),
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.fc-1 { animation-delay: 0.05s; }
.fc-2 { animation-delay: 0.20s; }
.fc-3 { animation-delay: 0.35s; }
.fc-4 { animation-delay: 0.50s; }

.feature-card:hover {
    transform: translateY(-10px) scale(1.015);
    box-shadow:
        0 24px 60px rgba(0, 107, 183, 0.40),
        0 0 0 1px rgba(61, 214, 245, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border-color: rgba(61, 214, 245, 0.4);
}

/* Horizontal shine sweep on hover */
.feature-card-glow {
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background: linear-gradient(
        110deg,
        transparent 20%,
        rgba(61, 214, 245, 0.08) 48%,
        rgba(61, 214, 245, 0.16) 50%,
        transparent 80%
    );
    background-size: 300% 100%;
    background-position: -100% 0;
    transition: background-position 0.65s ease;
    pointer-events: none;
}

.feature-card:hover .feature-card-glow {
    background-position: 200% 0;
}

/* Vertical scan line on hover */
.feature-card::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -2px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(61, 214, 245, 0.9) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
    animation: scanLine 2.8s linear infinite;
    animation-play-state: paused;
}

.feature-card:hover::after {
    opacity: 1;
    animation-play-state: running;
}

@keyframes scanLine {
    0%   { top: -2px; }
    100% { top: 102%; }
}

.feature-card-body {
    position: relative;
    z-index: 1;
}

/* ── Icon ring ── */
.feature-icon-ring {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 1.25rem;
    border-radius: 50%;
    background: rgba(61, 214, 245, 0.08);
    border: 1px solid rgba(61, 214, 245, 0.25);
    animation: ringPing 3s ease-out infinite;
}

.fc-2 .feature-icon-ring { animation-delay: -0.75s; }
.fc-3 .feature-icon-ring { animation-delay: -1.5s;  }
.fc-4 .feature-icon-ring { animation-delay: -2.25s; }

@keyframes ringPing {
    0%   { box-shadow: 0 0 0 0   rgba(61, 214, 245, 0.55); }
    70%  { box-shadow: 0 0 0 14px rgba(61, 214, 245, 0);   }
    100% { box-shadow: 0 0 0 0   rgba(61, 214, 245, 0);   }
}

.feature-icon {
    width: 34px;
    height: 34px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: transform 0.35s ease, filter 0.35s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(-6deg);
    filter: brightness(0) invert(1) drop-shadow(0 0 6px rgba(61, 214, 245, 0.7));
}

.feature-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.6rem;
}

.feature-card-desc {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.58);
    line-height: 1.65;
    margin: 0;
}

/* ── Stats strip ── */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 1.75rem 1rem;
    animation: featFadeUp 0.9s 0.55s ease both;
}

.stats-strip .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.5rem 1rem;
    position: relative;
}

.stats-strip .stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    line-height: 1;
    margin-bottom: 0.35rem;
    letter-spacing: -0.02em;
    animation: statReveal 0.7s ease both;
}

.stats-strip .stat:nth-child(1) .stat-value { animation-delay: 0.60s; }
.stats-strip .stat:nth-child(2) .stat-value { animation-delay: 0.74s; }
.stats-strip .stat:nth-child(3) .stat-value { animation-delay: 0.88s; }
.stats-strip .stat:nth-child(4) .stat-value { animation-delay: 1.02s; }

@keyframes statReveal {
    from { opacity: 0; transform: translateY(14px) scale(0.88); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

.stat-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.48);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

@media (max-width: 640px) {
    .stats-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .stats-strip .stat:nth-child(2)::after { display: none; }

    .stats-strip .stat:nth-child(1),
    .stats-strip .stat:nth-child(2) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 1rem;
    }
}

/* ── Shared entrance keyframe ── */
@keyframes featFadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0);    }
}

/* ── Reduced-motion safety net ── */
@media (prefers-reduced-motion: reduce) {
    .features-showcase .particle,
    .feature-card,
    .feature-icon-ring,
    .features-header,
    .stats-strip,
    .stat-value {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .heading-glow {
        animation: none !important;
        background: #3dd6f5;
        -webkit-text-fill-color: #3dd6f5;
    }

    .feature-card:hover {
        transform: none !important;
    }

    .feature-card::after {
        animation: none !important;
    }
}
