@import "./light.css" (prefers-color-scheme: light);
@import "./dark.css" (prefers-color-scheme: dark);
@import "./platform-details.css";
/*@import "./fontawesome.css";*/
@import "./lucide.css";

html, body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !important;
    padding: 0;
    margin: 0;
    background: var(--window-background);
    color: var(--text-color);
    height: 100%;
    overscroll-behavior: none;
    overflow: auto;
    font-size: 1rem;
}

#blazor-error-ui {
    width: calc(100vw - 30px) !important;
    left: 50% !important;
    transform: translateX(-50%);
    max-width: 500px;
    margin-bottom: 20px;
    border-radius: 300px;
    border: 1px solid #ffa50042;
    background: #ffa50045 !important;
    color: var(--text-color);
    color-scheme: initial;
}

#blazor-error-ui .dismiss {
    top: 50% !important;
    transform: translateY(-50%) !important;
}

#dotnet-compile-error {
    display: none;
}

.app-loading-emblem {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: grayscale(70%);
    opacity: 0.3;
    max-width: 500px;
    width: 100%;
    padding: 20px;
    animation: emblem-animation 2s infinite;
}

@keyframes emblem-animation {
    0% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.1;
    }

    100% {
        opacity: 0.3;
    }
}

.vibrancy {
    --window-background: transparent;
}

#app {
    height: 100%;
}

.page {
    height: 100%;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}
/* Remove outline for non-keyboard :focus */
*:focus:not(.focus-visible) {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

/*button {*/
/*    background: var(--navigation-button-background);*/
/*    color: white;*/
/*    border-radius: 10px;*/
/*    outline: none;*/
/*    touch-action: manipulation;*/
/*    font-size: inherit;*/
/*    cursor: pointer;*/
/*    border: none;*/
/*    backdrop-filter: blur(40px) saturate(180%);*/
/*    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.10);*/
/*    padding: 4px 7px;*/
/*    overflow: hidden;*/
/*}*/

/*button::before {*/
/*    content: '';*/
/*    position: absolute;*/
/*    top: 0;*/
/*    left: 0;*/
/*    height: 60%;*/
/*    width: 100%;*/
/*    background: linear-gradient(*/
/*            to bottom,*/
/*            rgba(255, 255, 255, 0.25),*/
/*            rgba(255, 255, 255, 0.0)*/
/*    );*/
/*    pointer-events: none;*/
/*}*/

/*button:hover {*/
/*    box-shadow:*/
/*            0 2px 6px rgba(0, 0, 0, 0.15),*/
/*            0 4px 12px rgba(0, 0, 0, 0.10);*/
/*    transition: box-shadow 0.2s ease;*/
/*}*/

/*button:active {*/
/*    opacity: 0.6;*/
/*}*/

button.nav.rounded, #blazor-error-ui .dismiss {
    height: 35px;
    width: 35px;
    border-radius: 300px !important;
}

button.nav, button.icon, .toolbar button {
    padding: 0;
    background: transparent;
}
button.nav.icon, .toolbar button:not(.navigation-button) {
    font-size: 1.4em;
}

button.nav::before, button.icon::before {
    display: none;
}

/*button.nav:hover, button.icon:hover {*/
/*    background: var(--navigation-button-hover-background);*/
/*}*/

a:link {
    color: var(--primary-button-bg);
}

a:hover {
    opacity: 0.8;
}

a:active {
    opacity: 0.5;
}

a:visited {
    color: var(--primary-button-active-bg);
}

@media (hover: none) {
    button.nav:hover { background: transparent !important; }
}

.list .divider:last-of-type {
    display: none;
}

.input-group input {
    flex: 1;
    padding: 0 16px;
    font-size: 16px;
    color: var(--text-color);
    border: none;
    background: transparent;
    outline: none;
    height: 100%;
}

.input-group input::placeholder {
    color: var(--placeholder-color);
}

.input-group input:focus {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Button Base Styles */
button,
.button,
#blazor-error-ui .reload,
#blazor-error-ui .dismiss {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.2;
    /*transition: all 0.2s ease-in-out;*/
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    position: relative;
    white-space: nowrap;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
    transition: transform 0.01s ease-in-out;
    text-decoration: none;

    /* Default (Secondary) Button */
    background: var(--button-bg);
    color: var(--button-text);
    border: 1px solid var(--button-border);
    --button-border-radius: 30px;
    border-radius: var(--button-border-radius);
}

/* Button Sizes */
button.small {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    --button-border-radius: 30px;
}

button.large {
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    --button-border-radius: 30px;
}

/* Button Variants */
button.primary {
    background: var(--primary-button-bg);
    color: var(--primary-button-text);
    border-color: var(--primary-button-border);
    --spinner-color: var(--primary-button-text);
}

button.danger {
    background: var(--danger-button-bg);
    color: var(--danger-button-text);
    border-color: var(--danger-button-border);
}

/* Hover States */
@media (hover: hover) {
    button:hover {
        background: var(--button-hover-bg);
    }

    button.primary:hover {
        background: var(--primary-button-hover-bg);
    }

    button.danger:hover {
        background: var(--danger-button-hover-bg);
    }
}

/* Active States */
button:active {
    background: var(--button-active-bg);
    transform: scale(0.97);
}

button.primary:active {
    background: var(--primary-button-active-bg);
}

button.danger:active {
    background: var(--danger-button-active-bg);
}

/* Disabled State */
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Loading State */
button.loading {
    cursor: default;
}

button.icon {
    height: 40px;
    width: 40px;
}

/* Focus State */
button:focus-visible {
    outline: 2px solid var(--primary-button-bg);
    outline-offset: 2px;
}

.button-list {
    width: min-content;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.button-list button {
    border-radius: 0;
    background: transparent;
    padding: 3px 10px;
    text-align: left;
}

.button-list button:hover {
    background: var(--button-hover-bg);
    border-radius: 30px;
}

.button-list button.danger {
    color: var(--danger-button-bg);
}

/*.button-list button:first-of-type {*/
/*    border-top-left-radius: var(--button-border-radius);*/
/*    border-top-right-radius: var(--button-border-radius);*/
/*}*/

/*.button-list button:last-of-type {*/
/*    border-bottom-left-radius: var(--button-border-radius);*/
/*    border-bottom-right-radius: var(--button-border-radius);*/
/*}*/

.header .toolbar button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 10px;
    font-size: 0.9em;
    padding: 0.3rem 0.8rem;
}
@media (hover: hover) {
    .header .toolbar button:hover {
        background: var(--button-hover-bg);
    }
}

.spacer {
    flex: 1;
}

.spinner {
    position: relative;
    width: 20px;
    height: 20px;
}

.spinner .spinner-blade {
    position: absolute;
    top: 6.5px;
    left: 8.5px;
    width: 2px;
    height: 4px;
    background-color: var(--spinner-color);
    border-radius: 2px;
    -webkit-animation: spinnerBlade 1s linear infinite;
    animation: spinnerBlade 1s linear infinite;
    will-change: opacity;
    --animation-transform: scale(1.0);
}

.spinner .spinner-blade:nth-child(1) {
    transform: rotate(45deg) translateY(-6.5px) var(--animation-transform);
    -webkit-animation-delay: -1.625s;
    animation-delay: -1.625s;
}

.spinner .spinner-blade:nth-child(2) {
    transform: rotate(90deg) translateY(-6.5px) var(--animation-transform);
    -webkit-animation-delay: -1.5s;
    animation-delay: -1.5s;
}

.spinner .spinner-blade:nth-child(3) {
    transform: rotate(135deg) translateY(-6.5px) var(--animation-transform);
    -webkit-animation-delay: -1.375s;
    animation-delay: -1.375s;
}

.spinner .spinner-blade:nth-child(4) {
    transform: rotate(180deg) translateY(-6.5px) var(--animation-transform);
    -webkit-animation-delay: -1.25s;
    animation-delay: -1.25s;
}

.spinner .spinner-blade:nth-child(5) {
    transform: rotate(225deg) translateY(-6.5px) var(--animation-transform);
    -webkit-animation-delay: -1.125s;
    animation-delay: -1.125s;
}

.spinner .spinner-blade:nth-child(6) {
    transform: rotate(270deg) translateY(-6.5px) var(--animation-transform);
    -webkit-animation-delay: -1s;
    animation-delay: -1s;
}

.spinner .spinner-blade:nth-child(7) {
    transform: rotate(315deg) translateY(-6.5px) var(--animation-transform);
    -webkit-animation-delay: -0.875s;
    animation-delay: -0.875s;
}

.spinner .spinner-blade:nth-child(8) {
    transform: rotate(360deg) translateY(-6.5px) var(--animation-transform);
    -webkit-animation-delay: -0.75s;
    animation-delay: -0.75s;
}

.spinner.large {
    width: 35px;
    height: 35px;
}

.spinner.large .spinner-blade {
    top: 11.5px;
    left: 15px;
    width: 4px;
    height: 6px;
    border-radius: 2px;
}

.spinner.large .spinner-blade:nth-child(1) {
    transform: rotate(45deg) translateY(-11.5px) var(--animation-transform);
}

.spinner.large .spinner-blade:nth-child(2) {
    transform: rotate(90deg) translateY(-11.5px) var(--animation-transform);
}

.spinner.large .spinner-blade:nth-child(3) {
    transform: rotate(135deg) translateY(-11.5px) var(--animation-transform);
}

.spinner.large .spinner-blade:nth-child(4) {
    transform: rotate(180deg) translateY(-11.5px) var(--animation-transform);
}

.spinner.large .spinner-blade:nth-child(5) {
    transform: rotate(225deg) translateY(-11.5px) var(--animation-transform);
}

.spinner.large .spinner-blade:nth-child(6) {
    transform: rotate(270deg) translateY(-11.5px) var(--animation-transform);
}

.spinner.large .spinner-blade:nth-child(7) {
    transform: rotate(315deg) translateY(-11.5px) var(--animation-transform);
}

.spinner.large .spinner-blade:nth-child(8) {
    transform: rotate(360deg) translateY(-11.5px) var(--animation-transform);
}

@keyframes spinnerBlade {
    0% {
        --animation-transform: scale(1.5);
        opacity: 0.85;
    }
    50% {
        --animation-transform: scale(1.05);
        opacity: 0.25;
    }
    100% {
        --animation-transform: scale(1.0);
        opacity: 0.25;
    }
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    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,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAw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gMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

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


::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    z-index: 999999;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-color);
    border-radius: 9999px;
    z-index: 999999;
}

    ::-webkit-scrollbar-thumb:hover {
        background-color: var(--scrollbar-active-color);
    }

/* Cancel scrollbar styling on Safari (macOS + iOS) */
@supports (-webkit-touch-callout: none) {
    ::-webkit-scrollbar,
    ::-webkit-scrollbar-track,
    ::-webkit-scrollbar-thumb,
    ::-webkit-scrollbar-thumb:hover {
        all: unset;
    }
}

input {
    width: 100%;
    background: var(--menu-background);
    border: 1px solid var(--divider-color);
    border-radius: 20px;
    font-size: 0.9em;
    color: var(--text-color);
    padding: 0 13px;
}

.close-button {
    background: var(--button-bg) !important;
}

.dialog .cor-ui-content {
    background: transparent;
}
.dialog .toolbar {
    background: transparent;
    box-shadow: none;
}
.dialog .toolbar-content {
    border-bottom: none;
}

.input-group {
    display: flex;
    border: 1px solid var(--card-border-color);
    border-radius: 30px;
    overflow: hidden;
    height: 40px;
    /*box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);*/
}

.input-group:focus-within {
    border-color: var(--select-background)
}

.input-group > label, .input-group .label {
    padding: 0 10px;
    align-self: center;
    height: 100%;
    align-items: center;
    display: flex;
    background: var(--card-content-background);
    opacity: 0.6;
}

.input-group input {
    border-left: 1px solid var(--border-color);
    height: 100%;
    border-radius: 0;
}

.alternative-navigation-split-view-design .cor-ui-content {
    border-left: 0.5px solid var(--divider-color);
    border-top-left-radius: 20px;
    border-top: 0.5px solid var(--divider-color);
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.35) inset;
}

.alternative-navigation-split-view-design .sidebar-resizer-left {
    border-right: none;
}

.alternative-navigation-split-view-design .sidebar-resizer-right {
    /*border-right: none;*/
}

.alternative-navigation-split-view-design .toolbar-content {
    border-bottom: none;
}

pre > code {
    border-radius: 15px;
    border: 1px solid var(--card-border-color);
}

.cor-icon-label {
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0.8;
}

.mobile-only {
    display: none !important;
}

@media only screen and (max-width: 600px) {
    .mobile-only {
        display: initial !important;
    }
    .desktop-only {
        display: none !important;
    }
    .navigation-split-page .sidebar, .navigation-split-page .sidebar-resizer {
        display: none !important;
    }
}