html, body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #121212;
    color: #e0e0e0;
}

#app {
    position: relative;
}

.loading-progress {
    position: relative;
    display: block;
    fill: none;
    stroke: #8b0000;
    stroke-width: 0.08rem;
    stroke-dasharray: 0.251rem 10rem;
    stroke-dashoffset: -0.65rem;
    animation: loading-progress-spin 2s linear infinite, loading-progress-animation 4s linear infinite;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto;
}

@keyframes loading-progress-spin {
    100% { transform: rotate(360deg); }
}

@keyframes loading-progress-animation {
    0% { stroke-dasharray: 0.001rem 10rem; stroke-dashoffset: 0; }
    50% { stroke-dasharray: 3.5rem 10rem; stroke-dashoffset: -1.5rem; }
    100% { stroke-dasharray: 3.5rem 10rem; stroke-dashoffset: -5rem; }
}

.loading-progress-text::after {
    content: "Ładowanie Character Sheet System...";
    font-size: 1.2rem;
    color: #8b0000;
    display: block;
    text-align: center;
    margin-top: -4rem;
}

#blazor-error-ui {
    background: #2a0000;
    border-top: 1px solid #8b0000;
    color: #e0e0e0;
    display: none;
    font-size: 1rem;
    padding: 0.6rem 1.25rem 0.7rem;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* Character sidebar drag-and-drop (VtM, SIN) */
.char-drag-ghost {
    opacity: 0.4;
    background: #3d0000 !important;
    border-radius: 4px;
}

[data-char-folder].sortable-over {
    background: rgba(183, 28, 28, 0.1);
    border-radius: 4px;
}
