/* General reset for consistent spacing across browsers */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Set the background for the whole page */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9; /* Light background for the page */
    color: #333; /* Dark text for contrast */
    line-height: 1.6;
    padding: 20px;
    margin: 0;
}

/* Main container to center the content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Login and other content box styling */
.content-box {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-top: 50px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Title styles */
h1 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #4CAF50; /* Green color for the heading */
}

/* Error message styling */
.error-message {
    background-color: #f8d7da; /* Light red background */
    color: #721c24; /* Dark red text */
    border: 1px solid #f5c6cb; /* Light red border */
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
}

/* Styling for error boundary UI */
#error-message {
    background-color: #ffcccc;
    color: red;
    padding: 10px;
    border-radius: 4px;
    margin-top: 20px;
    text-align: center;
}

    #error-message a {
        color: red;
        text-decoration: underline;
    }

/* General link styling */
a {
    color: #4CAF50;
    text-decoration: none;
    font-size: 14px;
}

    a:hover {
        text-decoration: underline;
    }

/* Styles for the error boundary UI */
#blazor-error-ui {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffcccc; /* Soft red background */
    color: #721c24; /* Red text */
    padding: 15px;
    font-size: 16px;
    text-align: center;
    display: none;
    z-index: 9999; /* Ensure it overlays above all content */
}

    #blazor-error-ui a {
        color: #721c24;
        font-weight: bold;
        text-decoration: underline;
    }

    #blazor-error-ui .reload {
        margin-left: 10px;
    }

    #blazor-error-ui .dismiss {
        position: absolute;
        top: 10px;
        right: 15px;
        cursor: pointer;
        font-size: 18px;
    }

    /* Show error message UI */
    #error-message.show,
    #blazor-error-ui.show {
        display: block;
    }

/* Utility classes */
.text-center {
    text-align: center;
}

/* Make sure content fits well in small screens */
@media (max-width: 768px) {
    .content-box {
        padding: 20px;
        margin-top: 20px;
        max-width: 100%;
    }
}
