/* ========================================
   BLAZOR ERROR UI
   ======================================== */
#blazor-error-ui {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#blazor-error-ui .error-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

#blazor-error-ui h3 {
    color: #dc3545;
    margin-bottom: 1rem;
}

#blazor-error-ui p {
    color: #333;
    margin-bottom: 1.5rem;
}

#blazor-error-ui .error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

#blazor-error-ui .reload {
    background: var(--color-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
}

#blazor-error-ui .dismiss {
    background: #6c757d;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

/* ========================================
   LOADING PROGRESS
   ======================================== */
.loading-progress {
    position: relative;
    display: block;
    width: 80px;
    height: 80px;
    margin: 20% auto;
}

.loading-progress circle {
    fill: none;
    stroke-width: 4;
    stroke: var(--color-primary);
    transform-origin: 50% 50%;
    animation: loading-spin 1s linear infinite;
}

.loading-progress circle:nth-child(2) {
    stroke-dasharray: 60, 200;
    stroke-dashoffset: 0;
}

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

.loading-progress-text {
    text-align: center;
    color: var(--color-primary);
    font-size: 1rem;
    margin-top: 1rem;
}
