@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');
@import url('kendo-theme.css');

text:not(.er) {
    color: var(--color-text-primary) !important;
    fill: var(--color-text-primary);
}

text.er {
    color: var(--color-bg-primary) !important;
    fill: var(--color-bg-primary);
}

html, body {
    font-family: var(--main-font), Helvetica, Arial, sans-serif;
    font-weight: 500;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.sidebar {
    min-width: var(--sidebar-desktop-w) !important;
}

.content {
    min-height: calc(100vh - var(--title-h));
    padding: 1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: var(--default-error);
    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;
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: var(--color-default-default-secondary);
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: var(--color-primary);
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    color: var(--color-text-primary);
    font-weight: bold;
    width: 100%;
    height: 3.5rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(20px);
    background: linear-gradient(to right, rgba(255, 255, 255, 0), var(--color-bg-tertiary), rgba(255, 255, 255, 0))
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

::-webkit-scrollbar {
    width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
    background: rgba(134, 131, 131);
    border-radius: 8px;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: rgba(173, 173, 173);
    border-radius: 8px;
    cursor: pointer;
}

    /* Handle on hover */
    ::-webkit-scrollbar-thumb:hover {
        background: var(--color-primary);
    }

pre, pre * {
    color: white !important;
    overflow-x: auto;
}

ol, ul, menu {
    list-style: disc;
    margin: 15px;
    padding: 0;
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    margin-bottom: .5rem;
    font-weight: 500;
    line-height: 1.2
}

.h1, h1 {
    font-size: 2.5rem
}

.h2, h2 {
    font-size: 2rem
}

.h3, h3 {
    font-size: 1.75rem
}

.h4, h4 {
    font-size: 1.5rem
}

.h5, h5 {
    font-size: 1.25rem
}

.h6, h6 {
    font-size: 1rem
}

pre {
    margin: 0;
}

.purple-glow:focus, .purple-glow:active, .purple-glow:focus-visible {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 0.2rem rgb(99,82,149,0.25) !important;
    outline: none;
}

code {
    font-size: 87.5%;
    color: #e83e8c;
    word-break: break-word;
}

.mermaid {
    margin-top: 0px !important;
}

iframe {
    display: none;
}

@media (max-width: 640px) {
    .content {
        min-height: calc(100vh - calc(3.5rem + var(--title-h))); /* Full view hight - hieght of top navbar */
    }

    :root {
        --main-content-p-x: 0.75rem;
    }
}

@media (min-width: 641px) {
    .content {
        max-width: calc(100vw - var(--sidebar-desktop-w)); /* Full view width - width of sidebar */
    }
}


/* Custom dark mode styles for Kendo Chart */
.telerik-chart {
    background-color: #2e2e2e; /* Dark background */
    color: #ffffff; /* Light text color */
}

    .telerik-chart .k-series {
        stroke: #ffcc00; /* Custom stroke color for series */
    }

    .telerik-chart .k-axis {
        stroke: #ffffff; /* Custom axis color */
    }

    .telerik-chart .k-category-axis text {
        fill: #ffffff; /* Custom category axis text color */
    }

    .telerik-chart .k-value-axis text {
        fill: #ffffff; /* Custom value axis text color */
    }

    .telerik-chart .k-title {
        fill: #ffffff; /* Custom title text color */
    }

    .telerik-chart .k-legend {
        background-color: #2e2e2e; /* Dark background for legend */
        color: #ffffff; /* Light text color for legend */
    }

input::-moz-placeholder, textarea::-moz-placeholder {
    opacity: 1;
    /* 1 */
    color: var(--color-text-secondary);
    /* 2 */
}

input::placeholder,
textarea::placeholder {
    opacity: 1;
    /* 1 */
    color: var(--color-text-secondary);
    /* 2 */
}

.justify-around {
    justify-content: space-around;
}
