@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    height: 100%;
    margin: 0;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.tooltip {
    z-index: 999999;
}

.bg-danger-light {
    background-color: #f5c6cb !important;
}
.table-striped > tbody > tr:nth-of-type(odd).bg-danger-light {
    background-color: #f5c6cb !important;
    --bs-table-accent-bg: unset !important;
}
.bg-warning-light {
    background-color: #ffeeba !important;
}
.bg-success-light {
    background-color: #c3e6cb !important;
}
.table-striped > tbody > tr:nth-of-type(odd).bg-success-light {
    background-color: #c3e6cb !important;
    --bs-table-accent-bg: unset !important;
}
.bg-orange-light {
    background-color: #ffd4a2 !important;
}
.bg-orange {
    background-color: #dc612c !important;
}
.text-danger-light {
    color: #f5c6cb;
}
.text-warning-light {
    color: #ffeeba;
}
text-orange-light {
    color: #ffd4a2;
}
.text-success-light {
    color: #c3e6cb;
}
.car-icon-orange {
    color: #fd7e14;
}
.car-icon-yellow {
    color: #f0ad4e;
}
.car-icon-light-blue {
    color: #3478f6;
}
.car-icon-dark-red {
    color: #d9534f;
}
.car-icon-dark-green {
    color: #5cb85c;
}
.car-icon-blue {
    color: #000088;
}
.bg-danger-very-light {
    background-color: #f8d7da;
}
.bg-warning-very-light {
    background-color: #fff3cd;
}
.bg-success-very-light {
    background-color: #d4edda;
}

.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;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.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;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) 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: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem 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");
}*/

/*Used for Cube Loader*/
:root {
    --size: 120;
    --coefficient: 1px;
    --timeline: 2s;
    --delay: 0s;
    --rotation-y: -24;
    --rotation-x: 28;
    --color-one: #3a0ca3;
    --color-two: #4361ee;
    --color-three: #4cc9f0;
}

.nav-gradient {
    /*background-image: linear-gradient(to right, #1d1d1d, #2b669a);*/
    /*background-image: linear-gradient(90deg, rgb(9, 0, 118) 0%, rgb(5, 2, 43) 70%);*/
    background-color: rgba(5,2,43,1);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.nav-gradient .nav-link {
    color: #fff;
}

.nav-gradient .fas, .nav-gradient .oi {
    color: #fff;
}

.nav-gradient .dropdown-item {
    color: #000;
}

.nav-gradient .dropdown-item:hover {
    background-color: #f8f9fa;
}

.navbar-right-section {
    display: flex;
    justify-content: space-between;
    flex-grow: 1;
    overflow: visible; /* Add this line */
}

.loader-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}

.full-height {
    height: calc(100vh - 56px);
    display: flex;
    flex-direction: column;
}

.ca-hyperlink {
    color: cornflowerblue !important;
    text-decoration: none;
    cursor: pointer;
    font-weight: bold !important;
}

.ca-hyperlink:hover {
    text-decoration: underline !important;
}

.grow-shrink {
    animation: growShrink 3.5s ease-in-out infinite;
    display: inline-block; /* Ensure the element doesn't break the table layout */
    transform-origin: center; /* Center the scale animation */
}

.grow-shrink-no {
    animation: growShrink-no 3.5s ease-in-out infinite;
    display: inline-block; /* Ensure the element doesn't break the table layout */
    transform-origin: center; /* Center the scale animation */
}

.dark-color-gradient {
    animation: colorChange 3s ease-in-out infinite;
}

.animated-rainbow-color-gradient {
    background: linear-gradient(270deg, #8B0000, #FF8C00, #B8860B, #008000, #00008B, #4B0082, #8B0000); /* Dark reds, oranges, yellows, greens, blues, etc. */
    background-size: 200% 100%; /* Make the background wide enough to allow horizontal movement */
    color: transparent; /* Make the text itself transparent */
    background-clip: text; /* Clip the gradient to the text */
    -webkit-background-clip: text; /* WebKit browser support */
    -webkit-text-fill-color: transparent; /* Transparent text fill for WebKit browsers */
    animation: moveGradient 7s linear infinite; /* Moves the gradient continuously from left to right */
}

@keyframes moveGradient {
    0% {
        background-position: 0% 0%; /* Start at the left */
    }

    100% {
        background-position: 200% 0%; /* End at the right */
    }
}

@keyframes colorChange {
    0% {
        color: #333; /* Dark gray */
    }

    25% {
        color: #555; /* Slightly lighter gray */
    }

    50% {
        color: #777; /* Medium gray */
    }

    75% {
        color: #555; /* Slightly lighter gray */
    }

    100% {
        color: #333; /* Dark gray */
    }
}

@keyframes growShrink {
    0%, 100% {
        margin-right: 0px;
    }

    50% {
        transform: scale(1.5) rotate(-20deg);
    }
}

@keyframes growShrink-no {
    0%, 100% {
        margin-right: 0px;
    }

    50% {
        transform: scale(1.5);
    }
}

/* Keyframes for gradient animation that moves only to the right */
@keyframes gradientFlowRight {
    0%, 40% {
        background-position: 100% 50%;
    }

    50%, 90% {
        background-position: 0% 50%;
    }

    100% {
        background-position: -100% 50%;
    }
}

/* Stock number with animated gradient */
tr.stock-challenge {
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.05), rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.05), rgba(255, 215, 0, 0.2));
    background-size: 200% 100%; /* Adjust background size for smooth transition */
    box-shadow: inset 0 0 1px 1px rgba(255, 215, 0, 1);
    animation: gradientFlowRight 8s linear infinite; /* Apply the animation */
}

.centered-bold-caption {
    text-align: center;
    font-weight: bold;
    font-size: 17px;
    color: white;
    background-color: #212529;
}

.notification-container {
    position: relative;
    display: inline-block; /* or other adjustments to ensure it's properly positioned within its parent */
}

.notification-count {
    position: relative;
    top: -6px;
    background-color: red;
    color: white;
    border-radius: 50%;
    padding: 0.1rem 0.3rem;
    font-size: 0.7rem;
}

.notification-tray {
    position: absolute;
    top: 45px;
    /* Start by aligning the right edge to the center of the container */
    transform: translateX(-52.5%); /* Shift it back to center the tray */
    width: 300px;
    max-height: 400px;
    min-height: 0px;
    border: 1px solid #ccc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    overflow-y: auto; /* Make it scrollable */
    transition: min-height 0.5s ease-in-out;
}

.notification-card-header {
    font-weight: bold; /* Ensure visible font weight */
    background-color: #0d6efd;
}

.mud-card-content .notification-card-content {
    margin: 0px;
    padding: 3px;
    justify-content: center;
}

.mud-card-content .notification-card-content .unread {
    font-size: 0.9rem; /* Adjust for readability */
    background-color: antiquewhite;
}

.mud-card-content .notification-card-content .read {
    font-size: 0.9rem; /* Adjust for readability */
    background-color: white;
}

.notification-card {
    border: 1px solid black;
    color: black;
    margin-bottom: 3px;
}

.notification-icon {
    cursor: pointer;
    font-size: 14px;
    margin-right: 30px;
    margin-top: 10px;
}

.notification-icon.disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.notification-count {
    position: absolute;
    top: -12px;
    right: -14px;
    background-color: red;
    color: white;
    border-radius: 50%;
    padding: 2px 4px;
    font-size: 10px;
}

/* Loader */
/* Reset default margins and paddings */
body, html {
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100%;
    background-color: #fff; /* or any background color you prefer */
}

/* Loading screen overlay */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #2c2c2c; /* Start with dark gray */
    z-index: 1000;
    animation: backgroundFade 5s forwards;
}

/* Falling cherries container */
#falling-cherries {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Central cherry and loading bar */
#central-cherry {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

#central-cherry img {
    width: 64px;
    height: 64px;
}

/* Loading bar container */
#loading-bar {
    width: 200px;
    height: 10px;
    background-color: #ddd;
    margin-top: 20px;
    border-radius: 5px;
    overflow: hidden;
}

/* Loading text */
#loading-text {
    margin-top: 10px;
    font-size: 16px;
    color: #000;
}

#loading-text::after {
    font-weight: bold;
    color: white;
    content: var(--blazor-load-percentage-text, "Loading...");
}

/* Loading bar progress */
#progress {
    width: calc(var(--blazor-load-percentage, 0) * 100%);
    height: 100%;
    background-color: #ff0000; /* Cherry red */
    transition: width 0.05s ease-in-out;
}

@keyframes backgroundFade {
    from {
        background-color: #2c2c2c; /* Dark gray */
    }

    to {
        background-color: #ffffff; /* White */
    }
}
