﻿
.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;
}

.error-overlay {
    background-color: rgba(0, 0, 0, 0.5);
    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 {
    background-color: #ffebee;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ffcdd2;
}

.error-icon {
    margin-right: 12px;
}

    .error-icon svg {
        height: 24px;
        width: 24px;
        color: #e53935;
    }

.error-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #c62828;
}

.error-body {
    padding: 20px;
}

    .error-body p {
        margin: 0 0 10px 0;
        font-size: 15px;
        line-height: 1.5;
        color: #333333;
    }

.error-details {
    margin-top: 10px;
    color: #757575;
    font-size: 14px;
}

.error-footer {
    padding: 16px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background-color: #f5f5f5;
    border-top: 1px solid #e0e0e0;
}

.reload-button {
    background-color: #e53935;
    color: white;
    text-decoration: none !important;
    border: none;
    padding: 10px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .reload-button:hover {
        background-color: #c62828;
    }

.dismiss {
    background-color: transparent;
    color: #616161 !important;
    border: 1px solid #bdbdbd;
    padding: 10px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    position: relative !important;
    right: unset !important;
    top: unset !important;
}

    .dismiss:hover {
        background-color: #eeeeee;
        color: #424242;
    }

@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;
    }
}
