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 Lore Scheduler...";
    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;
}

/* Calendar styles */
.lore-calendar-container {
    padding: 16px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-top: 8px;
}

.calendar-day-header {
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 8px 4px;
    color: #9e9e9e;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.calendar-day {
    min-height: 80px;
    padding: 6px;
    border-radius: 6px;
    border: 1px solid #333;
    background: #1e1e1e;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    position: relative;
    overflow: hidden;
}

.calendar-day:hover {
    background: #2a2a2a;
    border-color: #555;
}

.calendar-day.other-month {
    opacity: 0.35;
    cursor: default;
}

.calendar-day.today {
    border: 2px solid #b71c1c;
    background: #1e1214;
}

.calendar-day.has-session {
    background: linear-gradient(135deg, #7f0000 0%, #b71c1c 100%);
    border-color: #ef5350;
    color: #fff;
}

.calendar-day.has-session:hover {
    background: linear-gradient(135deg, #9a0000 0%, #c62828 100%);
}

.day-number {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 4px;
}

.session-title {
    font-size: 0.72rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
    margin-top: 4px;
}

.session-participants {
    font-size: 0.68rem;
    opacity: 0.85;
    margin-top: 2px;
}

.calendar-legend {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 12px;
    font-size: 0.8rem;
    color: #9e9e9e;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.legend-dot.session { background: #b71c1c; }
.legend-dot.today { border: 2px solid #b71c1c; background: transparent; }

/* 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;
}
