html, body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
}

#app {
    height: 100%;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjcyNyA1MS4zNjgxTDI1OC41MTggMzYuMzM4MUMyNTcuNzkyIDM4LjA0OTIgMjU2LjUyMiAzOC40Njg1IDI1NS4yNjggMzguNDY4NUMyNTQuMDE1IDM4LjQ2ODUgMjUyLjc0NCAzOC4wNDkyIDI1Mi4wMTggMzYuMzM4MUwyNDQuMDQ5IDUxLjMzODFDMjQyLjU4OSA1MS4yNzkyIDI0Mi4xMyA1MSAyNDEuODggNTFDMjM5LjQ1IDUxIDIzNyA1My4zNDg5IDIzNyA1Ni4wMzYxTDIzNyA5MS4wMzYxQzIzNyA5My45MTQxIDIzOS4yODQgOTYuMDM2MSAyNDEuODggOTYuMDM2MUwyNzAuNjU3IDk2LjAzNjFDMjczLjI1MyA5Ni4wMzYxIDI3NS41MzggOTMuOTE0MSAyNzUuNTM4IDkxLjAzNjFMMjc1LjUzOCA1Ni4wMzYxQzI3NS41MzggNTMuMzQ4OSAyNzMuMjUzIDUxIDI3MC42NTcgNTFaIiBmaWxsPSIjRkY2MzYzIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L2c+PC9zdmc+) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

/* Custom scrollbar styles */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Animation for loading states */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading-skeleton {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Dashboard tab styling to match React UI */
.dashboard-tabs .mud-tab {
    font-size: 1rem;
    font-weight: 500;
    text-transform: none;
}

/* React-style DataGrid */
.react-style-datagrid .mud-table-head .mud-table-row .mud-table-cell {
    background-color: #FAFBFC;
    border-bottom: 2px solid #E0E0E0;
}

.react-style-datagrid .mud-table-body .mud-table-row .mud-table-cell {
    border-bottom: 1px solid #F0F0F0;
}

.react-style-datagrid .mud-table-body .mud-table-row:hover {
    background-color: rgba(33, 150, 243, 0.04) !important;
}

/* Remove text-transform on buttons globally */
.mud-button-root {
    text-transform: none !important;
}
