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

@import "_components.css";

.noselect-text {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

.main-loader {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-block;
    border-top: 4px solid #b7b9bc;
    border-right: 4px solid transparent;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

.loading-anim-container {
    display: flex;
    flex-direction: row;
    gap: 2rem;
}
.main-loader::after {
    content: '';
    box-sizing: border-box;
    position: absolute;
    left: 0;
    top: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border-bottom: 4px solid #5350d1;
    border-left: 4px solid transparent;
}
.loading-anim-dot {
    --color1: #5764EE;
    --color2: #00DF06;

    height: 2rem;
    width: 2rem;
    border-radius: 50%;
    background-color: var(--color1);
    animation: loading-scaling 2.5s ease-in-out infinite;
}

@keyframes loading-scaling {
    0%, 100%{
        transform: scale(0.2);
        background-color: var(--color2);
    }
    40%{
        transform: scale(1);
        background-color: var(--color1);
    }
    50%{
        transform: scale(1);
        background-color: var(--color1);
    }
}

.rz-notification {
    box-sizing: border-box;
    position: fixed;
    z-index: 10000 !important;
    inset-block-start: 100px;
    inset-inline-end: 1rem;
}

.rz-menu:focus,
.rz-menu:focus-within,
.rz-menu *:focus {
    outline: none !important;
}

.no-select-border:read-only,
.no-select-border:focus,
.no-select-border:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.title-editor-border:read-write {
    border-top: 2px solid rgba(0,0,0,0) !important;
    border-bottom: 2px solid var(--rz-base-600) !important;
}

.title-editor-border:read-only {
    border: none;
}

.hover-rounded:hover {
    border-radius: 8px;
}

.hover-darker:hover {
    transition: background-color 100ms ease-in 0ms;
    background-color: rgba(0,0,0,0.025);
}

.hover-darker-xs:hover {
    transition: background-color 100ms ease-in 0ms;
    background-color: rgba(0,0,0,0.01);
}

.hover-darker-sm:hover {
    transition: background-color 100ms ease-in 0ms;
    background-color: rgba(0,0,0,0.017);
}

.hover-darker-md:hover {
    transition: background-color 100ms ease-in 0ms;
    background-color: rgba(0,0,0,0.025);
}

.hover-darker-lg:hover {
    transition: background-color 100ms ease-in 0ms;
    background-color: rgba(0,0,0,0.05);
}

.hover-darker-filter:hover {
    transition: filter 100ms ease-in 0ms;
    filter: brightness(0.95);
}

.hover-darker-filter-xs:hover {
    transition: filter 100ms ease-in 0ms;
    filter: brightness(0.98);
}

.hover-darker-filter-sm:hover {
    transition: filter 100ms ease-in 0ms;
    filter: brightness(0.92);
}

.hover-darker-filter-md:hover {
    transition: filter 100ms ease-in 0ms;
    filter: brightness(0.90);
}

.hover-darker-filter-lg:hover {
    transition: filter 100ms ease-in 0ms;
    filter: brightness(0.85);
}

.hover-lighter:hover {
    transition: background-color 100ms ease-in 0ms;
    background-color: rgba(255,255,255,0.01);
}

.pattern-1 {
    background-size: 20px;
    background-color: #e0e0e0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='72' viewBox='0 0 36 72'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%239a9a9a' fill-opacity='0.47'%3E%3Cpath d='M2 6h12L8 18 2 6zm18 36h12l-6 12-6-12z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    41zM0 1.4l2.83 2.83 1.41-1.41L1.41 0H0v1.41zM38.59 40l-2.83-2.83 1.41-1.41L40 38.59V40h-1.41zM40 1.41l-2.83 2.83-1.41-1.41L38.59 0H40v1.41zM20 18.6l2.83-2.83 1.41 1.41L21.41 20l2.83 2.83-1.41 1.41L20 21.41l-2.83 2.83-1.41-1.41L18.59 20l-2.83-2.83 1.41-1.41L20 18.59z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hover-arrow {
    background-color: rgba(0,0,0,0);
    transition: background-color 100ms ease-in 0ms;
}

.hover-arrow:hover {
    background-color: rgba(0,0,0,0.1);
}

.editor-bar {
    width: 825px;
}

@media (min-width: 1401px) {
    .editor-bar {
        width: 1246px;
    }
}

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

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

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

.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+PHBhdGggZD0iTTI2My41M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IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) 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");
    }

code {
    color: #c02d76;
}

.turnstile-container {
    padding: 1rem;
}

.turnstile-success {
    color: #28a745;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.turnstile-error {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.rz-primary-bgcolor{
    background-color: var(--rz-primary);
}


.background-login {
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2000 1500'%3E%3Cdefs%3E%3Crect stroke='%23ffffff' stroke-width='0.2' width='1' height='1' id='s'/%3E%3Cpattern id='a' width='3' height='3' patternUnits='userSpaceOnUse' patternTransform='scale(21.95) translate(-954.44 -715.83)'%3E%3Cuse fill='%23fcfcfc' href='%23s' y='2'/%3E%3Cuse fill='%23fcfcfc' href='%23s' x='1' y='2'/%3E%3Cuse fill='%23fafafa' href='%23s' x='2' y='2'/%3E%3Cuse fill='%23fafafa' href='%23s'/%3E%3Cuse fill='%23f7f7f7' href='%23s' x='2'/%3E%3Cuse fill='%23f7f7f7' href='%23s' x='1' y='1'/%3E%3C/pattern%3E%3Cpattern id='b' width='7' height='11' patternUnits='userSpaceOnUse' patternTransform='scale(21.95) translate(-954.44 -715.83)'%3E%3Cg fill='%23f5f5f5'%3E%3Cuse href='%23s'/%3E%3Cuse href='%23s' y='5' /%3E%3Cuse href='%23s' x='1' y='10'/%3E%3Cuse href='%23s' x='2' y='1'/%3E%3Cuse href='%23s' x='2' y='4'/%3E%3Cuse href='%23s' x='3' y='8'/%3E%3Cuse href='%23s' x='4' y='3'/%3E%3Cuse href='%23s' x='4' y='7'/%3E%3Cuse href='%23s' x='5' y='2'/%3E%3Cuse href='%23s' x='5' y='6'/%3E%3Cuse href='%23s' x='6' y='9'/%3E%3C/g%3E%3C/pattern%3E%3Cpattern id='h' width='5' height='13' patternUnits='userSpaceOnUse' patternTransform='scale(21.95) translate(-954.44 -715.83)'%3E%3Cg fill='%23f5f5f5'%3E%3Cuse href='%23s' y='5'/%3E%3Cuse href='%23s' y='8'/%3E%3Cuse href='%23s' x='1' y='1'/%3E%3Cuse href='%23s' x='1' y='9'/%3E%3Cuse href='%23s' x='1' y='12'/%3E%3Cuse href='%23s' x='2'/%3E%3Cuse href='%23s' x='2' y='4'/%3E%3Cuse href='%23s' x='3' y='2'/%3E%3Cuse href='%23s' x='3' y='6'/%3E%3Cuse href='%23s' x='3' y='11'/%3E%3Cuse href='%23s' x='4' y='3'/%3E%3Cuse href='%23s' x='4' y='7'/%3E%3Cuse href='%23s' x='4' y='10'/%3E%3C/g%3E%3C/pattern%3E%3Cpattern id='c' width='17' height='13' patternUnits='userSpaceOnUse' patternTransform='scale(21.95) translate(-954.44 -715.83)'%3E%3Cg fill='%23f2f2f2'%3E%3Cuse href='%23s' y='11'/%3E%3Cuse href='%23s' x='2' y='9'/%3E%3Cuse href='%23s' x='5' y='12'/%3E%3Cuse href='%23s' x='9' y='4'/%3E%3Cuse href='%23s' x='12' y='1'/%3E%3Cuse href='%23s' x='16' y='6'/%3E%3C/g%3E%3C/pattern%3E%3Cpattern id='d' width='19' height='17' patternUnits='userSpaceOnUse' patternTransform='scale(21.95) translate(-954.44 -715.83)'%3E%3Cg fill='%23ffffff'%3E%3Cuse href='%23s' y='9'/%3E%3Cuse href='%23s' x='16' y='5'/%3E%3Cuse href='%23s' x='14' y='2'/%3E%3Cuse href='%23s' x='11' y='11'/%3E%3Cuse href='%23s' x='6' y='14'/%3E%3C/g%3E%3Cg fill='%23efefef'%3E%3Cuse href='%23s' x='3' y='13'/%3E%3Cuse href='%23s' x='9' y='7'/%3E%3Cuse href='%23s' x='13' y='10'/%3E%3Cuse href='%23s' x='15' y='4'/%3E%3Cuse href='%23s' x='18' y='1'/%3E%3C/g%3E%3C/pattern%3E%3Cpattern id='e' width='47' height='53' patternUnits='userSpaceOnUse' patternTransform='scale(21.95) translate(-954.44 -715.83)'%3E%3Cg fill='%234639CE'%3E%3Cuse href='%23s' x='2' y='5'/%3E%3Cuse href='%23s' x='16' y='38'/%3E%3Cuse href='%23s' x='46' y='42'/%3E%3Cuse href='%23s' x='29' y='20'/%3E%3C/g%3E%3C/pattern%3E%3Cpattern id='f' width='59' height='71' patternUnits='userSpaceOnUse' patternTransform='scale(21.95) translate(-954.44 -715.83)'%3E%3Cg fill='%234639CE'%3E%3Cuse href='%23s' x='33' y='13'/%3E%3Cuse href='%23s' x='27' y='54'/%3E%3Cuse href='%23s' x='55' y='55'/%3E%3C/g%3E%3C/pattern%3E%3Cpattern id='g' width='139' height='97' patternUnits='userSpaceOnUse' patternTransform='scale(21.95) translate(-954.44 -715.83)'%3E%3Cg fill='%234639CE'%3E%3Cuse href='%23s' x='11' y='8'/%3E%3Cuse href='%23s' x='51' y='13'/%3E%3Cuse href='%23s' x='17' y='73'/%3E%3Cuse href='%23s' x='99' y='57'/%3E%3C/g%3E%3C/pattern%3E%3C/defs%3E%3Crect fill='url(%23a)' width='100%25' height='100%25'/%3E%3Crect fill='url(%23b)' width='100%25' height='100%25'/%3E%3Crect fill='url(%23h)' width='100%25' height='100%25'/%3E%3Crect fill='url(%23c)' width='100%25' height='100%25'/%3E%3Crect fill='url(%23d)' width='100%25' height='100%25'/%3E%3Crect fill='url(%23e)' width='100%25' height='100%25'/%3E%3Crect fill='url(%23f)' width='100%25' height='100%25'/%3E%3Crect fill='url(%23g)' width='100%25' height='100%25'/%3E%3C/svg%3E");
    background-attachment: fixed;
    background-size: cover;
}

.rz-text-color {
    color: var(--rz-text-color);
}

/* The override has to reside here? */
.ranking-tab {
    border-bottom: solid 2px #F0F0F0 !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}
.ranking-tab.active{
    border-bottom-color: var(--rz-primary) !important;
}
.selected-ranking-tab{
    /*background-color: #E1F2E4 !important;*/
    font-weight: bold !important;
}

/* Radzen Layout - Full Height Fix */
html, body, #app, #application {
    height: 100%;
    margin: 0;
    padding: 0;
}

.rz-layout {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.rz-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.rz-p-4 {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Full-height table pages (no page scroll, only table scroll) */
.full-height-table-page {
    overflow: hidden;
}

/* Radzen DataGrid - Global Header Styling */
.rz-datatable-thead,
.rz-grid-table > thead,
.rz-datatable-scrollable-header-box {
    background-color: #7579e7 !important;
}

.rz-datatable-thead th,
.rz-grid-table > thead > tr > th,
.rz-datatable-scrollable-header-box th {
    background-color: #7579e7 !important;
    color: white !important;
    font-weight: 600 !important;
}

/* Header text and icons */
.rz-datatable-thead .rz-column-title,
.rz-grid-table > thead .rz-column-title {
    color: white !important;
    font-weight: 600 !important;
}

/* Sort icons */
.rz-datatable-thead .rzi,
.rz-grid-table > thead .rzi,
.rz-datatable-thead .rz-sortable-column-icon,
.rz-grid-table > thead .rz-sortable-column-icon {
    color: white !important;
}

/* Filter icons and buttons */
.rz-datatable-thead .rz-column-filter-button,
.rz-grid-table > thead .rz-column-filter-button,
.rz-datatable-thead .rz-column-filter-icon,
.rz-grid-table > thead .rz-column-filter-icon {
    color: white !important;
}

/* Hover effects for sortable columns */
.rz-datatable-thead th.rz-sortable-column:hover,
.rz-grid-table > thead > tr > th.rz-sortable-column:hover {
    background-color: #6469d9 !important;
}

/* Column resize handle */
.rz-datatable-thead .rz-column-resizer,
.rz-grid-table > thead .rz-column-resizer {
    border-color: rgba(255, 255, 255, 0.3) !important;
}
