/* base */
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;
}

/* loading */
.loading-progress {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 15rem;
    height: 15rem;
    margin: 18vh auto 2rem auto;
}

.loading-progress svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.loading-progress circle {
    fill: none;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
}

.loading-progress circle:first-child {
    stroke: #e0e0e0;
}

.loading-progress circle:last-child {
    stroke: #1b6ec2;
    stroke-linecap: round;
    stroke-dasharray: calc(2.513 * var(--blazor-load-percentage, 0%)), 500;
    transition: stroke-dasharray 0.1s ease-in-out;
}

.loading-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -48%);
    text-align: center;
    color: #1b6ec2;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    width: 100%;
    pointer-events: none;
}

.loading-center .title {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.loading-center .subtitle {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

/* dots */
.loading-center .dots::after {
    content: "";
    display: inline-block;
    width: 1ch;
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0% {
        content: "";
    }

    25% {
        content: ".";
    }

    50% {
        content: "..";
    }

    75% {
        content: "...";
    }

    100% {
        content: "";
    }
}

.loading-center .percent {
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 0.3rem;
}

.loading-center .percent::after {
    content: var(--blazor-load-percentage-text, "0%");
}

/* tippy */
.tippy-box {
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    background-color: #333;
    color: #fff;
    border-radius: 8px;
    padding: 6px 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.tippy-box[data-placement^='top'] > .tippy-arrow::before {
    color: #333;
}

/* typing */
.typing {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    width: 0;
    vertical-align: middle;
    animation: typing 1.5s steps(3, end) infinite, blink 0.7s step-end infinite;
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 3ch
    }
}

@keyframes blink {
    50% {
        border-color: transparent
    }
}

.chat {
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    word-break: break-word;
    white-space: pre-wrap;
}

/* chat titles */
.chat h1, .chat h2, .chat h3 {
    margin-top: 0;
    margin-bottom: 0;
    font-weight: 600;
    font-size: 1.4em;
    line-height: 1.2;
}

/* chat paragraphs */
.chat p {
    margin: 0;
}

/* chat lists */
.chat ul, .chat ol {
    margin: 0.3em 0 0.3em 1.2em;
    padding: 0;
}

/* chat emphasis */
.chat strong {
    font-weight: bold;
}

.chat em {
    font-style: italic;
}

/* chat links */
.chat a {
    color: #4a00e0;
    text-decoration: underline;
}

/* overlay */
.full-screen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 10000;
    cursor: pointer;
}

.full-screen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: fill;
    background-position: center;
    z-index: 10000;
    cursor: pointer;
}

/* logout button */
.btn-logout {
    background-color: #e74c3c;
    color: white;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.2s ease-in-out;
}

.btn-logout:hover {
    background-color: #c0392b;
    cursor: pointer;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0,0,0,0.15);
}

/* menu */
.main-menu {
    display: flex;
    align-items: center;
    gap: 12px;
}

.main-menu .rz-menuitem {
    border-radius: 999px;
    padding: 6px 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.main-menu .rz-menuitem-link {
    color: inherit;
}

.main-menu .rz-menuitem:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.main-menu .rz-menuitem-active {
    background-color: #3b82f6;
    color: white;
}

.main-menu .rz-menuitem-active .rz-menuitem-link {
    color: white;
}

.menu-separator {
    width: 1px;
    height: 28px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0 12px;
    pointer-events: none;
}
