﻿/* Enhanced Blazor error UI styling */
#blazor-error-ui {
    background: linear-gradient(135deg, #dc3545, #c82333);
    bottom: 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    display: none;
    left: 0;
    padding: 1rem;
    position: fixed;
    right: 0;
    z-index: 1000;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border-top: 3px solid #fff;
}

    #blazor-error-ui .friendly-error {
        display: flex;
        align-items: flex-start;
        margin-bottom: 0.5rem;
        font-size: 1rem;
        font-weight: 500;
        color: #ff4757;
    }

        #blazor-error-ui .friendly-error i {
            margin-right: 0.75rem;
            font-size: 1.25rem;
            color: #ffc107;
            margin-top: 0.125rem;
            flex-shrink: 0;
            line-height: 1;
        }

        #blazor-error-ui .friendly-error .error-content {
            flex: 1;
            line-height: 1.4;
        }

        #blazor-error-ui .friendly-error .error-message {
            margin-bottom: 0.5rem;
        }

        #blazor-error-ui .friendly-error .contact-info {
            font-size: 0.875rem;
        }

            #blazor-error-ui .friendly-error .contact-info a {
                color: #87ceeb;
                text-decoration: none;
            }

                #blazor-error-ui .friendly-error .contact-info a:hover {
                    color: white;
                    text-decoration: underline;
                }

    #blazor-error-ui .reload,
    #blazor-error-ui .dismiss {
        color: black;
        text-decoration: none;
        margin-right: 1rem;
        padding: 0.5rem 1rem;
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 0.25rem;
        display: inline-flex;
        align-items: center;
        transition: all 0.2s ease;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
    }

        #blazor-error-ui .reload:hover,
        #blazor-error-ui .dismiss:hover {
            background: rgba(255, 255, 255, 0.2);
            color: white;
            text-decoration: none;
            transform: translateY(-1px);
        }

        #blazor-error-ui .reload i,
        #blazor-error-ui .dismiss i {
            margin-right: 0.5rem;
        }

/* Toast notification styles */
.blazored-toast-container {
    position: fixed;
    z-index: 1050;
}

.blazored-toast-top-center {
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
}

.blazored-toast {
    min-width: 350px;
    max-width: 500px;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideInDown 0.3s ease-out;
    backdrop-filter: blur(10px);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.blazored-toast-error {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border-left: 4px solid #ffc107;
}

.blazored-toast-message {
    flex: 1;
    display: flex;
    align-items: center;
    font-weight: 500;
    line-height: 1.4;
}

.blazored-toast-close-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem;
    margin-left: 1rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .blazored-toast-close-btn:hover {
        background: rgba(255, 255, 255, 0.1);
        color: white;
    }

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive design */
@media (max-width: 576px) {
    .blazored-toast {
        min-width: 280px;
        max-width: calc(100vw - 2rem);
        margin: 0 1rem 1rem 1rem;
    }

    .blazored-toast-top-center {
        left: 0;
        right: 0;
        transform: none;
    }

    #blazor-error-ui {
        padding: 0.75rem;
    }

        #blazor-error-ui .friendly-error {
            font-size: 0.9rem;
        }

            #blazor-error-ui .friendly-error i {
                font-size: 1.1rem;
                margin-right: 0.5rem;
            }
}
