html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

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

.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: 1.1rem;
}

/* Layout Styles */
/* Layout Styles */
.top-row.px-4 {
    min-height: 3.5rem;
    background-color: #294C5E !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important; /* Ensure space between */
    padding: 0.25rem 1rem !important; /* Override px-4 padding if needed */
    width: 100%; /* Ensure full width */
}

    .top-row.px-4 .brand-container {
        flex-shrink: 0; /* Prevent brand from shrinking */
        display: flex; /* Ensure consistent flex behavior */
    }

    .top-row.px-4 .navbar-brand {
        color: #d7d7d7 !important;
        text-decoration: none !important;
        font-size: 1.1rem !important;
        padding: 0.25rem 0.75rem !important;
        margin: 0 !important;
    }

        .top-row.px-4 .navbar-brand:hover {
            color: white !important;
        }

    .top-row.px-4 .button-container {
        display: flex !important;
        align-items: center !important;
        margin-left: auto; /* Push buttons to the right as a fallback */
    }

        .top-row.px-4 .button-container .btn-link {
            color: #d7d7d7 !important;
            text-decoration: none !important;
            padding: 0.25rem 0.75rem !important;
        }

            .top-row.px-4 .button-container .btn-link:hover {
                color: white !important;
            }

            .top-row.px-4 .button-container .btn-link i {
                margin-right: 0.25rem;
            }


h1:focus {
    outline: none;
}

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

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

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

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

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.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;
}

/* Slider track (base bar) */
.noUi-target {
    background: #e6e9ef;
    border: none;
    border-radius: 6px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
    height: 8px;
    z-index: 0 !important;
}

/* The filled portion between handles */
.noUi-connect {
    background: linear-gradient(90deg, #007bff, #009dff);
}

/* Slider handles (the draggable circles) */
.noUi-handle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #007bff;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    z-index: 0 !important;
}

    /* Add a hover effect for interactivity */
    .noUi-handle:hover {
        transform: scale(1.15);
        box-shadow: 0 4px 10px rgba(0, 123, 255, 0.5);
    }

    /* Remove default stripes from handle pseudo-elements */
    .noUi-handle::before,
    .noUi-handle::after {
        display: none;
    }

.slider-container {
    margin-top: 40px;
    margin-bottom: 15px;
    margin-right: 15px;
    margin-left: 10px;
}

.nav-tabs {
    border-bottom: 1px solid #e0e0e0;
}

    .nav-tabs .nav-link.active {
        border: none;
        border-bottom: 4px solid #294C5E !important;
        background: transparent;
        color: #294C5E !important;
    }

    /* Dropdown toggle tab (“+ Add”) */
    .nav-tabs .nav-link.dropdown-toggle {
        color: #294C5E !important;
        background: transparent !important;
        border: none !important;
    }

        /* Dropdown toggle hover/focus */
        .nav-tabs .nav-link.dropdown-toggle:hover,
        .nav-tabs .nav-link.dropdown-toggle:focus {
            color: #294C5E !important;
            background: rgba(41, 76, 94, 0.05) !important;
        }

    /* Dropdown menu appearance */
    .nav-tabs .dropdown-menu {
        border-color: #294C5E20;
    }

    .nav-tabs .dropdown-item.disabled {
        color: #294C5E99 !important;
    }

.offcanvas,.drawer {
    z-index: 1055 !important;
}

.offcanvas-backdrop, .drawer-backdrop {
    z-index: 1050 !important; /* shadow covers header too */
}

.offcanvas-body img {
    border-radius: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/*.offcanvas-body h6 {
    color: #0d6efd;
}*/

.offcanvas-body p {
    line-height: 1.5;
}

.drawer-header {
    background-color: #294C5E !important;
    color: white;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px;
}

    .drawer-header .offcanvas-title {
        font-size: 1.25rem;
        font-weight: 600;
    }

    .drawer-header .btn-close-white {
        filter: brightness(0) invert(1);
    }

.change-icon {
    cursor: pointer;
    color: #6c757d; /* muted gray */
    transition: color 0.2s;
}

    .change-icon:hover {
        color: #0d6efd; /* Bootstrap primary blue */
    }



.header-bar {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    background-color: #e9f0f3;
    border-bottom: 2px solid #b0c4ca; /* darker bluish-gray */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    padding-left: 40px !important;
    padding-right: 40px !important;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    overflow: visible !important;
    z-index: 1030; /* stays above other content */
}


    .header-bar h3 {
        font-size: 1.5rem;
        color: #294C5E;
        font-weight: 600;
    }

    .header-bar .badge {
        background-color: #294C5E !important;
        color: #fff;
        font-weight: 500;
        padding: 0.35em 0.75em;
        border-radius: 0.5rem;
    }

        /* Keep consistent color overrides */
        .header-bar .badge.bg-success {
            background-color: #28a745 !important;
        }

        .header-bar .badge.bg-primary {
            background-color: #0d6efd !important;
        }

        .header-bar .badge.bg-danger {
            background-color: #dc3545 !important;
        }

        .header-bar .badge.bg-secondary {
            background-color: #6c757d !important;
        }


.header-status {
    font-size: 0.65rem !important;
    padding: 0.25em 0.6em;
    border-radius: 0.35rem;
}

.header-big-label {
    font-size: 1.4rem;
    color: #294C5E;
    line-height: 1.1;
}

.header-material-label {
    font-size: 1.2rem;
    color: #294C5E;
    line-height: 1.1;
    padding-top: 0.5rem;
}

.header-small-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
    line-height: 1.1;
    margin-top: 0.1rem;
}

.card {
    border-radius: 0 !important;
    border: 2px solid #b0c4ca; /* darker bluish-gray */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

    .card.no-top-and-sides-padding {
        padding-top: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

.fc-container {
    margin-top: 20px !important;
    margin-bottom: 30px !important;
    padding-left: 40px !important;
    padding-right: 40px !important
}

.row {

}
    .row.no-sides-margins{
        margin-right: 0 !important;
        margin-left: 0 !important;
    }


.calculation-results-row {
    padding-left: 40px !important;
    padding-right: 40px !important
}


.table-fc-bg {
    background-color: #e9f0f3;
}

/* import preview inside offcanvas: responsive maximum height based on viewport */
.import-preview {
    box-sizing: border-box;
    overflow: auto;
    /* Reserve space for offcanvas header + controls; tweak 260px as needed */
    max-height: calc(100vh - 260px);
    min-height: 120px;
}


/* --- Row input icon helpers --- */
.input-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem; /* space between input and icon */
}

    /* keep the input padding-normal so icon sits outside, not inside the input */
    .input-with-icon .form-control {
        padding-right: 0.75rem;
    }

    /* small icon placed to the right of the input (not overlapping) */
    .input-with-icon .small-icon {
        position: relative;
        margin-left: 0; /* spacing handled by gap on the container */
        /* allow pointer events so native title / tooltips work */
        pointer-events: auto;
        cursor: help; /* shows user that a tooltip/help is available */
        font-size: 0.95rem;
        line-height: 1;
        color: #ff8c00; /* default undersized warning color (orange) */
        display: inline-block;
        vertical-align: middle;
    }

        /* explicit overrides for common utility classes */
        .input-with-icon .small-icon.text-danger {
            color: var(--bs-danger);
        }

        .input-with-icon .small-icon.text-muted {
            color: var(--bs-secondary);
        }

        /* if icon should be slightly smaller for very tight inputs */
        .input-with-icon .small-icon.small {
            font-size: 0.85rem;
        }


