:root {
    --page-bg: #050b14;
    --text-main: #e7eefb;
    --text-muted: #7f93b8;
    --accent: #5b8fff;
    --scrollbar-track: rgba(7, 13, 24, 0.92);
    --scrollbar-thumb: linear-gradient(180deg, rgba(91, 143, 255, 0.88), rgba(39, 90, 194, 0.92));
    --scrollbar-thumb-hover: linear-gradient(180deg, rgba(126, 168, 255, 0.96), rgba(58, 110, 221, 0.98));
    --scrollbar-border: rgba(177, 205, 255, 0.12);
    --scrollbar-corner: rgba(5, 11, 20, 0.96);
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: #050b14;
    color: var(--text-main);
}

body {
    min-height: 100vh;
}

html {
    scrollbar-width: thin;
    scrollbar-color: rgba(91, 143, 255, 0.88) rgba(7, 13, 24, 0.92);
}

* {
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: rgba(91, 143, 255, 0.88) rgba(7, 13, 24, 0.92);
}

*::-webkit-scrollbar {
    width: 0.85rem;
    height: 0.85rem;
}

*::-webkit-scrollbar-track {
    background:
        radial-gradient(circle at top, rgba(91, 143, 255, 0.08), transparent 48%),
        var(--scrollbar-track);
    border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border: 2px solid transparent;
    border-radius: 999px;
    background-clip: padding-box;
    box-shadow:
        inset 0 0 0 1px var(--scrollbar-border),
        0 10px 24px rgba(3, 10, 22, 0.32);
}

*::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
    border: 2px solid transparent;
    background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, #8db6ff, #3a74e6);
    border: 2px solid transparent;
    background-clip: padding-box;
}

*::-webkit-scrollbar-corner {
    background: var(--scrollbar-corner);
}

button,
input,
select,
textarea {
    font: inherit;
}

input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 1.08rem;
    height: 1.08rem;
    margin: 0;
    flex: 0 0 auto;
    display: inline-grid;
    place-content: center;
    vertical-align: middle;
    border: 1px solid rgba(108, 132, 179, 0.48);
    border-radius: 0.35rem;
    background:
        linear-gradient(180deg, rgba(13, 21, 36, 0.96), rgba(8, 14, 24, 0.96));
    box-shadow:
        inset 0 1px 0 rgba(197, 216, 255, 0.04),
        0 10px 24px rgba(3, 10, 22, 0.16);
    cursor: pointer;
    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

input[type="checkbox"]::before {
    content: "";
    width: 0.62rem;
    height: 0.62rem;
    transform: scale(0);
    transition: transform 0.16s ease;
    box-shadow: inset 1em 1em #f7fbff;
    clip-path: polygon(14% 52%, 0 66%, 40% 100%, 100% 18%, 84% 4%, 37% 67%);
}

input[type="checkbox"]:hover {
    border-color: rgba(91, 143, 255, 0.58);
    box-shadow:
        inset 0 1px 0 rgba(197, 216, 255, 0.06),
        0 12px 28px rgba(8, 18, 38, 0.24);
}

input[type="checkbox"]:focus-visible {
    outline: 2px solid rgba(91, 143, 255, 0.72);
    outline-offset: 2px;
    border-color: rgba(91, 143, 255, 0.58);
}

input[type="checkbox"]:checked {
    border-color: rgba(91, 143, 255, 0.86);
    background:
        linear-gradient(180deg, rgba(91, 143, 255, 0.96), rgba(47, 94, 196, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 14px 28px rgba(16, 44, 109, 0.28);
}

input[type="checkbox"]:checked::before {
    transform: scale(1);
}

input[type="checkbox"]:indeterminate {
    border-color: rgba(91, 143, 255, 0.86);
    background:
        linear-gradient(180deg, rgba(91, 143, 255, 0.96), rgba(47, 94, 196, 0.98));
}

input[type="checkbox"]:indeterminate::before {
    width: 0.54rem;
    height: 0.12rem;
    clip-path: none;
    border-radius: 999px;
    transform: scale(1);
}

input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.62;
    box-shadow: none;
}

input[type="datetime-local"] {
    color-scheme: dark;
}

input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    filter: brightness(0) invert(1);
    opacity: 1;
}

button {
    color: inherit;
}

a,
.btn-link {
    color: var(--accent);
}

.content {
    padding-top: 1rem;
    padding-bottom: 2rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #45d07a;
}

.invalid {
    outline: 1px solid #ff667b;
}

.validation-message {
    color: #ffb4bd;
}

.blazor-error-boundary {
    background: #7f1d1d;
    border: 1px solid rgba(254, 202, 202, 0.25);
    padding: 1rem 1rem 1rem 3.7rem;
    color: #fff;
}

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

.darker-border-checkbox.form-check-input {
    border-color: #64748b;
}

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