﻿
.blazor-error-ui {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    transition: all 0.3s ease;
    background-color: unset !important;
    color: var(--mud-palette-text) !important;
}

.error-overlay {
    background-color: rgba(0, 0, 0, 0.6);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s forwards;
}

.error-dialog {
    background-color: #ffffff;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: scaleIn 0.3s forwards;
}

.error-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    color: var(--mud-palette-error);
}

.error-icon {
    margin-right: 12px;
}
    .error-icon svg {
        height: 34px;
        width: 34px;
        position: relative;
        top: 2px;
    }

.error-body {
    padding: 20px;
}

.error-footer {
    padding: 16px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.reload-button {
    background-color: var(--mud-palette-error);
    color: white !important;
    text-decoration: none !important;
    border: none;
    padding: 10px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
    .reload-button:hover {
        background-color: #c62828;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 600px) {
    .error-dialog {
        width: 95%;
        margin: 0 10px;
    }
}