/* ---------------------------------------------------------------
   app.css — DieselCore EVENTS
   Minimal overrides for MudBlazor-based application
   --------------------------------------------------------------- */

/* Blazor focus outline removal */
h1:focus {
    outline: none;
}

/* Blazor error boundary */
.blazor-error-boundary {
    background-color: #b32121;
    padding: 1rem 1.5rem;
    color: white;
    border-radius: 4px;
    margin: 1rem;
    font-family: 'Inter', sans-serif;
}

.blazor-error-boundary::after {
    content: "An unexpected error has occurred. Please try refreshing the page.";
}

/* Blazor reconnect / error UI */
#blazor-error-ui {
    background: #4A4A4A;
    color: white;
    bottom: 0;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.25);
    display: none;
    left: 0;
    padding: 1rem 1.5rem;
    position: fixed;
    right: 0;
    text-align: center;
    z-index: 10000;
    font-family: 'Inter', sans-serif;
}

#blazor-error-ui .reload {
    color: #8DC63F;
    font-weight: 600;
    text-decoration: underline;
    margin-left: 0.5rem;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 0.5rem;
    font-size: 1.25rem;
}

/* Responsive images — exclude AppBar logos */
.mud-main-content img {
    max-width: 100%;
    height: auto;
}

/* Touch-friendly tap targets on mobile */
@media (max-width: 599.98px) {
    .mud-icon-button {
        min-width: 44px;
        min-height: 44px;
    }

    .mud-button {
        min-height: 44px;
    }

    /* Ensure table horizontal scroll on mobile */
    .mud-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Cursor pointer for clickable cards */
.cursor-pointer {
    cursor: pointer;
}
