@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn-command {
    width: 120px;
    margin-right: 25px;
}

app {
    position: relative;
    display: flex;
    flex-direction: column;
}

.top-row {
    height: 3.5rem;
    display: flex;
    align-items: center;
    z-index:100;
}

.main {
    flex: 1;
}

    .main .top-row {
        background-color: #f7f7f7;
        border-bottom: 1px solid #d6d5d5;
        justify-content: flex-end;
    }

        .main .top-row > a, .main .top-row .btn-link {
            white-space: nowrap;
            margin-left: 1.5rem;
        }

.main .top-row a:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

.bg-navy-gradient {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #151339 90%) !important; /* Navy for MHP */
}
.bg-green-gradient {
    background-image: linear-gradient(180deg, rgb(12, 159, 33) 0%, #151339 90%) !important; /* Green for SUD */
}
.bg-burgandy-gradient {
    background-image: linear-gradient(180deg, rgb(183, 3, 51) 0%, #151339 90%) !important; /* Burgandy for MHP Stage */
}

.sidebar {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #151339 90%) ;          /* Navy (default) */
    /*background-image: linear-gradient(180deg, rgb(12, 159, 33) 0%, #151339 90%) */     /* Green */
    /*background-image: linear-gradient(180deg, rgb(183, 3, 51) 0%, #151339 90%)  */     /* Burgancy */
}

    .sidebar .top-row {
        background-color: rgba(0,0,0,0.4);
    }

    .sidebar .navbar-brand {
        font-size: 1.1rem;
    }

    .sidebar .oi {
        width: 2rem;
        font-size: 1.1rem;
        vertical-align: text-top;
        top: -2px;
    }

    .sidebar .nav-item {
        font-size: 0.9rem;
        padding-bottom: 0.5rem;
        text-shadow: 2px 2px 3px rgba(0,0,0,0.4);
    }

        .sidebar .nav-item:first-of-type {
            padding-top: 1rem;
        }

        .sidebar .nav-item:last-of-type {
            padding-bottom: 1rem;
        }

        .sidebar .nav-item a {
            color: #d7d7d7;
            border-radius: 4px;
            height: 3rem;
            display: flex;
            align-items: center;
            line-height: 3rem;
        }

            .sidebar .nav-item a.active {
                background-color: rgba(255,255,255,0.25);
                color: white;
            }

            .sidebar .nav-item a:hover {
                background-color: rgba(255,255,255,0.1);
                color: white;
            }

.content {
    padding-top: 1.1rem;
}

    .content .title {
        text-shadow: 1px 1px 2px gray;
        white-space: nowrap
    }

.modal-title.title {
    text-shadow: 0px 0px 1px rgba(0,0,0,0.4);
}

.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.1);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.btn-fancy {
    background: linear-gradient(-45deg, #1b6ec2, #258cfb, #1b6ec2, #0d4a85);
    background-size: 400% 400%;
    animation: gradient-animation 5s ease infinite;
    border: none;
    color: white !important;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-fancy:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    color: white !important;
    text-decoration: none;
}

.btn-fancy:active {
    transform: scale(0.95);
}

@keyframes gradient-animation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    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;
}

.form-group.row.cols-2 {
    margin-top: 0px;
    margin-bottom: 0px;
    align-items: center !important;
}

.form-group.row.cols-2 {
    margin-top: 0px;
    margin-bottom: 0px;
    align-items: center !important;
}

.form-group.row.cols-2 label:last-of-type {
    color:red;
    white-space: nowrap !important;
}

@media (max-width: 767.98px) {
    .main .top-row:not(.auth) {
        display: none;
    }

    .main .top-row.auth {
        justify-content: space-between;
    }

    .main .top-row a, .main .top-row .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 768px) {
    app {
        flex-direction: row;
    }

    .sidebar {
        width: 190px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .main .top-row {
        position: sticky;
        top: 0;
    }

    .main > div {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }

    .navbar-toggler {
        display: none;
    }

    .sidebar .collapse {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }

    .fw-md-75 {
        font-size: .75rem;
    }

    .form-group.row.cols-2 {
        margin-bottom: .5rem !important;
    }

        .form-group.row.cols-2 label:last-of-type {
            font-size: .75rem;
            -ms-flex: 0 0 25%;
            flex: 0 0 25%;
            max-width: 25%;
        }
}

@media (min-width: 992px) {
    .fw-md-75 {
        font-size: .875rem;
    }

    .form-group.row.cols-2 label:last-of-type {
        font-size: .875rem;
        -ms-flex: 0 0 16.666667%;
        flex: 0 0 16.666667%;
        max-width: 16.666667%;
    }
}

@media (min-width: 1200px) {
    .fw-md-75 {
        font-size: 1rem;
    }

    .form-group.row.cols-2 label:last-of-type {
        font-size: 1rem;
    }
}

.logo-image {
    height : 2.8rem;
    -webkit-filter: drop-shadow(5px 5px 5px rgba(0,0,0,0.4));
    filter: drop-shadow(5px 5px 5px rgba(0,0,0,0.4));
}

.nav-tabs .active {
    border-top: 4px solid #1b6ec2 !important;
    padding-top: 5px;
    border-bottom: 1px solid transparent;
    background-color: white;
    color: #0366d6 !important;
    font-weight: bold;
}

.nav-tabs > li {
    margin-bottom: 1px;
}

.nav-tabs-body {
    border: 1px solid #dee2e6;
    border-top-width: 0;
    margin-bottom: 10px;
}

.oi-check {
    color: darkgreen;
}

.oi-warning {
    color: darkorange;
}

.oi-x {
    color: darkred;
}

.vld-overlay {
    position: relative !important;
}
    .vld-overlay input {
        padding-right: 25px;
    }

    .vld-overlay span {
        position: absolute;
        right: 0;
        top: 10px;
        margin-right: 20px;
    }

    .vld-overlay a {
        position: absolute;
        right: 0;
        top: 10px;
        margin-right: 20px;
    }



.lds-roller {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

    .lds-roller div {
        animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
        transform-origin: 40px 40px;
    }

        .lds-roller div:after {
            content: " ";
            display: block;
            position: absolute;
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: #000;
            margin: -4px 0 0 -4px;
        }

        .lds-roller div:nth-child(1) {
            animation-delay: -0.036s;
        }

            .lds-roller div:nth-child(1):after {
                top: 63px;
                left: 63px;
            }

        .lds-roller div:nth-child(2) {
            animation-delay: -0.072s;
        }

            .lds-roller div:nth-child(2):after {
                top: 68px;
                left: 56px;
            }

        .lds-roller div:nth-child(3) {
            animation-delay: -0.108s;
        }

            .lds-roller div:nth-child(3):after {
                top: 71px;
                left: 48px;
            }

        .lds-roller div:nth-child(4) {
            animation-delay: -0.144s;
        }

            .lds-roller div:nth-child(4):after {
                top: 72px;
                left: 40px;
            }

        .lds-roller div:nth-child(5) {
            animation-delay: -0.18s;
        }

            .lds-roller div:nth-child(5):after {
                top: 71px;
                left: 32px;
            }

        .lds-roller div:nth-child(6) {
            animation-delay: -0.216s;
        }

            .lds-roller div:nth-child(6):after {
                top: 68px;
                left: 24px;
            }

        .lds-roller div:nth-child(7) {
            animation-delay: -0.252s;
        }

            .lds-roller div:nth-child(7):after {
                top: 63px;
                left: 17px;
            }

        .lds-roller div:nth-child(8) {
            animation-delay: -0.288s;
        }

            .lds-roller div:nth-child(8):after {
                top: 56px;
                left: 12px;
            }

@keyframes lds-roller {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


.table-fadein {
    animation: fadeInAnimation ease .5s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    transform-origin: top;
}

@keyframes fadeInAnimation {
    0% {

        transform: scale(.05, 0.05);
    }
    100% {
        transform: scale(1, 1);
    }
}

.table-dropin {
    animation: dropInAnimation ease .5s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    transform-origin: top;
}

@keyframes dropInAnimation {
    0% {
        transform: scale(1, 0.05);
    }

    100% {
        transform: scale(1, 1);
    }
}

.expandable {
    overflow: hidden;

    transition: all .5s ease-in-out;
    line-height: 0;
    padding: 0 1em;
    color: transparent;
}

.expandable:target {
    line-height: 1.5;
    padding-top: 1em;
    padding-bottom: 1em;
    color: black;
}

::-webkit-calendar-picker-indicator {
    margin-left: 0px;
    cursor: pointer;
}

input:read-only {
    cursor: default !important;
}

select:enabled{
    cursor: pointer;
}

.input-group > input.invalid {
    outline: none;
}

.dropdown-toggle::after {
    margin-top: 0.55em !important;
    float: right !important;
}

.row-striped .row:nth-of-type(odd) {
    border-bottom: none;
}

.row-striped .row:nth-of-type(odd) button.btn-light {
    background-color: rgba(0,0,0,.06);
}

a.drill-down:hover {
    color: navy !important;
    text-decoration: none !important;
}

.pill-yellow{
    border-radius:5px; padding: 2px 5px; margin: 0 1px; background-color:#ffee9b; color: navy; border: 2px solid #777  ;
}
.pill-white {
    border-radius: 5px; padding: 2px 5px; margin: 0 1px; background-color: white; color: navy; border: 2px solid #777 ;
}

.submit-loading-spinner {
    position: fixed !important;
    z-index: 999999;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    display: block !important;
    overflow: hidden !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba( 0, 0, 0, 0.7 );
    background-image: url('data:image/svg+xml,<svg width="24" height="24" stroke="%23fff" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g><circle cx="12" cy="12" r="9.5" fill="none" stroke-width="3" stroke-linecap="round"><animate attributeName="stroke-dasharray" dur="1.5s" calcMode="spline" values="0 150;42 150;42 150;42 150" keyTimes="0;0.475;0.95;1" keySplines="0.42,0,0.58,1;0.42,0,0.58,1;0.42,0,0.58,1" repeatCount="indefinite"/><animate attributeName="stroke-dashoffset" dur="1.5s" calcMode="spline" values="0;-16;-59;-59" keyTimes="0;0.475;0.95;1" keySplines="0.42,0,0.58,1;0.42,0,0.58,1;0.42,0,0.58,1" repeatCount="indefinite"/></circle><animateTransform attributeName="transform" type="rotate" dur="2s" values="0 12 12;360 12 12" repeatCount="indefinite"/></g></svg>' );
    background-repeat: no-repeat;
    background-size: 4rem;
    background-position: center center;
}

.comment-invalid {
    border: 1px solid red;
}

.dev-info {
    width: 190px;
    left: auto;
    right: auto;
}

.dev-info-pill-white {
    border-radius: 5px;
    padding: 2px 5px;
    margin: 0 1px;
    background-color: white;
    color: navy;
    border: 2px solid #777;
    white-space: nowrap; /* Prevent text from wrapping */
    overflow: hidden; /* Hide overflowing content */
    text-overflow: ellipsis; /* Show "..." for truncated text */
    display: inline-block; /* Ensure proper inline behavior */
    max-width: 100%; /* Constrain the width to the parent container */
}


.btn-uiverse {
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    border: 0;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    letter-spacing: 1.5px;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

    .btn-uiverse:hover {
        background-color: hsl(210, 75%, 43%);
        color: white;
        box-shadow: 0 10px 20px rgba(27, 109, 192, 0.4);
        transform: translateY(-2px);
    }

    .btn-uiverse:active {
        transform: translateY(1px);
        box-shadow: 0 4px 10px rgba(27, 109, 192, 0.4);
        transition: transform 0.1s;
    }

.btn-pill {
    background: none;
    border: none;
    padding: 0;
}

.btn-pill:hover .pill-white {
    background-color: navy;
    color: white;
}

.table-hover tbody tr:hover {
    background-color: #daeaf6;
}

/* Stylish Search Bar */
.search-container-stylish {
    display: flex;
    align-items: center;
    border-radius: 50px;
    background-color: #fff;
    border: 1px solid #ced4da;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.search-container-stylish:focus-within {
    border-color: #1b6ec2;
    box-shadow: 0 0 8px rgba(27, 110, 194, 0.3);
}

.search-container-stylish .form-control {
    border: none !important;
    box-shadow: none !important;
    padding-left: 20px;
    padding-right: 40px; /* Space for clear button */
}

.search-container-stylish .btn-search {
    background-color: #1b6ec2;
    color: white;
    border: none;
    padding: 8px 20px;
    transition: background-color 0.2s;
    z-index: 11;
}

.search-container-stylish .btn-search:hover {
    background-color: #155a9e;
}

.search-container-stylish .btn-clear {
    position: absolute;
    right: 70px;
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    padding: 0;
    z-index: 10;
    transition: color 0.2s;
}

.search-container-stylish .btn-clear:hover {
    color: #666;
}
