@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root,
:root[data-theme='desert-stone'] {
    --theme-background-image: url('../images/desert.png');
    --theme-overlay-color: rgba(0, 0, 0, 0.6);
    --theme-title-color: #E8C89F;
    --theme-title-glow: 232, 200, 159;
    --theme-subtitle-color: #F4E4C8;
    --theme-accent-color: #D4A574;
    --theme-soft-text-color: #F2DEC4;
    --theme-text-color: #F5E6D3;
    --theme-input-text-color: #3D2817;
    --theme-input-bg: rgba(245, 230, 211, 0.9);
    --theme-input-bg-strong: rgba(245, 230, 211, 1);
    --theme-input-border: #8B5A2B;
    --theme-button-solid: #8B5A2B;
    --theme-button-solid-hover: #654321;
    --theme-button-border: #654321;
    --theme-panel-gradient: linear-gradient(145deg, rgba(160, 111, 64, 0.72) 0%, rgba(139, 90, 43, 0.66) 55%, rgba(120, 80, 50, 0.62) 100%);
    --theme-panel-gradient-soft: linear-gradient(145deg, rgba(160, 111, 64, 0.55) 0%, rgba(139, 90, 43, 0.50) 50%, rgba(120, 80, 50, 0.45) 100%);
    --theme-panel-gradient-strong: linear-gradient(145deg, rgba(160, 111, 64, 0.92) 0%, rgba(139, 90, 43, 0.88) 50%, rgba(120, 80, 50, 0.85) 100%);
    --theme-panel-gradient-strong-alt: linear-gradient(145deg, rgba(170, 120, 70, 0.92) 0%, rgba(150, 100, 55, 0.88) 50%, rgba(130, 85, 45, 0.85) 100%);
    --theme-panel-gradient-strong-alt-2: linear-gradient(145deg, rgba(150, 100, 55, 0.92) 0%, rgba(130, 85, 45, 0.88) 50%, rgba(110, 70, 35, 0.85) 100%);
    --theme-panel-gradient-strong-alt-3: linear-gradient(145deg, rgba(160, 105, 60, 0.92) 0%, rgba(140, 90, 48, 0.88) 50%, rgba(120, 75, 40, 0.85) 100%);
    --theme-panel-gradient-strong-alt-4: linear-gradient(145deg, rgba(145, 95, 50, 0.92) 0%, rgba(125, 80, 42, 0.88) 50%, rgba(105, 65, 35, 0.85) 100%);
    --theme-sidebar-gradient: linear-gradient(175deg, rgba(160, 111, 64, 0.95) 0%, rgba(139, 90, 43, 0.92) 35%, rgba(120, 80, 50, 0.9) 65%, rgba(101, 67, 33, 0.95) 100%);
    --theme-surface-dark: rgba(42, 27, 18, 0.78);
    --theme-surface-dark-hover: rgba(67, 42, 24, 0.9);
    --theme-surface-chip: rgba(101, 67, 33, 0.45);
    --theme-border-color: rgba(80, 50, 30, 0.6);
    --theme-border-light: rgba(220, 180, 140, 0.5);
    --theme-border-light-soft: rgba(220, 180, 140, 0.35);
    --theme-border-dark: rgba(30, 20, 10, 0.5);
    --theme-shadow-color: rgba(0, 0, 0, 0.4);
    --theme-alert-error-bg: rgba(139, 69, 69, 0.85);
    --theme-alert-error-border: #8B4545;
}

:root[data-theme='blush-garden'] {
    --theme-background-image: url('../images/neon_pink_forest.png');
    --theme-overlay-color: rgba(0, 0, 0, 0.66);
    --theme-title-color: #FFC9E8;
    --theme-title-glow: 255, 201, 232;
    --theme-subtitle-color: #FFE3F1;
    --theme-accent-color: #FF8AC7;
    --theme-soft-text-color: #FFD8EB;
    --theme-text-color: #FFF1F8;
    --theme-input-text-color: #2A0B1B;
    --theme-input-bg: rgba(255, 228, 242, 0.9);
    --theme-input-bg-strong: rgba(255, 238, 247, 1);
    --theme-input-border: #B33771;
    --theme-button-solid: #B33771;
    --theme-button-solid-hover: #7C1E4D;
    --theme-button-border: #12070E;
    --theme-panel-gradient: linear-gradient(145deg, rgba(179, 55, 113, 0.75) 0%, rgba(87, 24, 62, 0.7) 55%, rgba(18, 7, 14, 0.76) 100%);
    --theme-panel-gradient-soft: linear-gradient(145deg, rgba(179, 55, 113, 0.56) 0%, rgba(87, 24, 62, 0.5) 50%, rgba(18, 7, 14, 0.54) 100%);
    --theme-panel-gradient-strong: linear-gradient(145deg, rgba(179, 55, 113, 0.94) 0%, rgba(122, 30, 77, 0.9) 50%, rgba(18, 7, 14, 0.92) 100%);
    --theme-panel-gradient-strong-alt: linear-gradient(145deg, rgba(194, 70, 128, 0.94) 0%, rgba(138, 42, 91, 0.9) 50%, rgba(31, 12, 23, 0.92) 100%);
    --theme-panel-gradient-strong-alt-2: linear-gradient(145deg, rgba(165, 50, 105, 0.94) 0%, rgba(110, 25, 68, 0.9) 50%, rgba(18, 7, 14, 0.92) 100%);
    --theme-panel-gradient-strong-alt-3: linear-gradient(145deg, rgba(205, 80, 140, 0.94) 0%, rgba(140, 48, 98, 0.9) 50%, rgba(40, 14, 29, 0.92) 100%);
    --theme-panel-gradient-strong-alt-4: linear-gradient(145deg, rgba(150, 42, 96, 0.94) 0%, rgba(96, 20, 57, 0.9) 50%, rgba(18, 7, 14, 0.92) 100%);
    --theme-sidebar-gradient: linear-gradient(175deg, rgba(179, 55, 113, 0.95) 0%, rgba(87, 24, 62, 0.94) 40%, rgba(18, 7, 14, 0.96) 100%);
    --theme-surface-dark: rgba(33, 8, 22, 0.82);
    --theme-surface-dark-hover: rgba(58, 12, 38, 0.92);
    --theme-surface-chip: rgba(77, 20, 53, 0.48);
    --theme-border-color: rgba(90, 22, 58, 0.65);
    --theme-border-light: rgba(255, 178, 220, 0.45);
    --theme-border-light-soft: rgba(255, 178, 220, 0.3);
    --theme-border-dark: rgba(14, 6, 11, 0.55);
    --theme-shadow-color: rgba(0, 0, 0, 0.48);
    --theme-alert-error-bg: rgba(140, 45, 85, 0.88);
    --theme-alert-error-border: #8E365D;
}

:root[data-theme='sparkling-ocean'] {
    --theme-background-image: url('../images/neon_blue_ocean.png');
    --theme-overlay-color: rgba(0, 10, 22, 0.64);
    --theme-title-color: #BFEFFF;
    --theme-title-glow: 191, 239, 255;
    --theme-subtitle-color: #DDF7FF;
    --theme-accent-color: #66D4FF;
    --theme-soft-text-color: #CDEEFF;
    --theme-text-color: #EDF9FF;
    --theme-input-text-color: #09243A;
    --theme-input-bg: rgba(227, 246, 255, 0.92);
    --theme-input-bg-strong: rgba(238, 250, 255, 1);
    --theme-input-border: #149DDD;
    --theme-button-solid: #149DDD;
    --theme-button-solid-hover: #0C6E9A;
    --theme-button-border: #08243F;
    --theme-panel-gradient: linear-gradient(145deg, rgba(20, 157, 221, 0.74) 0%, rgba(10, 86, 135, 0.7) 55%, rgba(8, 36, 63, 0.76) 100%);
    --theme-panel-gradient-soft: linear-gradient(145deg, rgba(20, 157, 221, 0.55) 0%, rgba(10, 86, 135, 0.5) 50%, rgba(8, 36, 63, 0.55) 100%);
    --theme-panel-gradient-strong: linear-gradient(145deg, rgba(20, 157, 221, 0.94) 0%, rgba(12, 110, 154, 0.9) 50%, rgba(8, 36, 63, 0.92) 100%);
    --theme-panel-gradient-strong-alt: linear-gradient(145deg, rgba(44, 178, 236, 0.94) 0%, rgba(18, 127, 173, 0.9) 50%, rgba(11, 44, 73, 0.92) 100%);
    --theme-panel-gradient-strong-alt-2: linear-gradient(145deg, rgba(13, 137, 195, 0.94) 0%, rgba(9, 96, 139, 0.9) 50%, rgba(8, 36, 63, 0.92) 100%);
    --theme-panel-gradient-strong-alt-3: linear-gradient(145deg, rgba(63, 187, 241, 0.94) 0%, rgba(23, 136, 183, 0.9) 50%, rgba(13, 48, 79, 0.92) 100%);
    --theme-panel-gradient-strong-alt-4: linear-gradient(145deg, rgba(9, 121, 174, 0.94) 0%, rgba(8, 83, 122, 0.9) 50%, rgba(8, 36, 63, 0.92) 100%);
    --theme-sidebar-gradient: linear-gradient(175deg, rgba(20, 157, 221, 0.95) 0%, rgba(10, 86, 135, 0.94) 40%, rgba(8, 36, 63, 0.96) 100%);
    --theme-surface-dark: rgba(10, 34, 56, 0.82);
    --theme-surface-dark-hover: rgba(13, 54, 88, 0.92);
    --theme-surface-chip: rgba(17, 70, 112, 0.48);
    --theme-border-color: rgba(8, 56, 89, 0.66);
    --theme-border-light: rgba(151, 230, 255, 0.45);
    --theme-border-light-soft: rgba(151, 230, 255, 0.3);
    --theme-border-dark: rgba(6, 24, 42, 0.56);
    --theme-shadow-color: rgba(0, 8, 18, 0.46);
    --theme-alert-error-bg: rgba(116, 44, 80, 0.86);
    --theme-alert-error-border: #7F345B;
}

:root[data-theme='jaded-jungle'] {
    --theme-background-image: url('../images/green_jungle.png');
    --theme-overlay-color: rgba(0, 14, 5, 0.63);
    --theme-title-color: #D9F2BF;
    --theme-title-glow: 217, 242, 191;
    --theme-subtitle-color: #E8F8D6;
    --theme-accent-color: #8FD85A;
    --theme-soft-text-color: #DEF2C8;
    --theme-text-color: #F5FFEB;
    --theme-input-text-color: #0E2C17;
    --theme-input-bg: rgba(229, 247, 232, 0.92);
    --theme-input-bg-strong: rgba(240, 252, 242, 1);
    --theme-input-border: #6FBF3A;
    --theme-button-solid: #6FBF3A;
    --theme-button-solid-hover: #4E8F27;
    --theme-button-border: #0E2C17;
    --theme-panel-gradient: linear-gradient(145deg, rgba(111, 191, 58, 0.74) 0%, rgba(72, 131, 34, 0.7) 55%, rgba(14, 44, 23, 0.76) 100%);
    --theme-panel-gradient-soft: linear-gradient(145deg, rgba(111, 191, 58, 0.55) 0%, rgba(72, 131, 34, 0.5) 50%, rgba(14, 44, 23, 0.55) 100%);
    --theme-panel-gradient-strong: linear-gradient(145deg, rgba(111, 191, 58, 0.94) 0%, rgba(78, 143, 39, 0.9) 50%, rgba(14, 44, 23, 0.92) 100%);
    --theme-panel-gradient-strong-alt: linear-gradient(145deg, rgba(128, 204, 72, 0.94) 0%, rgba(90, 154, 47, 0.9) 50%, rgba(18, 54, 28, 0.92) 100%);
    --theme-panel-gradient-strong-alt-2: linear-gradient(145deg, rgba(95, 173, 46, 0.94) 0%, rgba(66, 120, 31, 0.9) 50%, rgba(14, 44, 23, 0.92) 100%);
    --theme-panel-gradient-strong-alt-3: linear-gradient(145deg, rgba(144, 214, 92, 0.94) 0%, rgba(103, 166, 56, 0.9) 50%, rgba(23, 63, 33, 0.92) 100%);
    --theme-panel-gradient-strong-alt-4: linear-gradient(145deg, rgba(82, 154, 39, 0.94) 0%, rgba(56, 102, 25, 0.9) 50%, rgba(14, 44, 23, 0.92) 100%);
    --theme-sidebar-gradient: linear-gradient(175deg, rgba(111, 191, 58, 0.95) 0%, rgba(72, 131, 34, 0.94) 40%, rgba(14, 44, 23, 0.96) 100%);
    --theme-surface-dark: rgba(16, 50, 26, 0.82);
    --theme-surface-dark-hover: rgba(24, 74, 38, 0.92);
    --theme-surface-chip: rgba(28, 86, 43, 0.48);
    --theme-border-color: rgba(18, 74, 37, 0.66);
    --theme-border-light: rgba(175, 236, 186, 0.45);
    --theme-border-light-soft: rgba(175, 236, 186, 0.3);
    --theme-border-dark: rgba(8, 27, 14, 0.56);
    --theme-shadow-color: rgba(0, 12, 3, 0.45);
    --theme-alert-error-bg: rgba(132, 56, 56, 0.86);
    --theme-alert-error-border: #874242;
}

html, body {
    font-family: 'Crimson Text', serif;
    position: relative;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Cinzel', serif;
    letter-spacing: 0.5px;
}

body {
    background-image: var(--theme-background-image);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--theme-overlay-color);
    z-index: -1;
}

@media (max-width: 768px) {
    body {
        background-attachment: scroll;
    }
}

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 {
    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,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: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto 0 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;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}
