*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #09090b;
    color: #fafafa;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* MudBlazor dark overrides */
.mud-nav-link {
    color: #a1a1aa !important;
    border-radius: 8px !important;
    margin: 2px 8px !important;
    transition: background 0.15s ease, color 0.15s ease !important;
}

.mud-nav-link:hover,
.mud-nav-link.active {
    background: rgba(99, 102, 241, 0.12) !important;
    color: #6366F1 !important;
}

.mud-nav-link .mud-nav-link-icon {
    color: inherit !important;
}

.mud-table-row:hover td {
    background: rgba(255, 255, 255, 0.03) !important;
}

.mud-table-head th {
    background: transparent !important;
}

.mud-breadcrumbs {
    padding: 0 !important;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #18181b;
}
::-webkit-scrollbar-thumb {
    background: #3f3f46;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #52525b;
}

/* Blazor error boundary */
.blazor-error-boundary {
    background: #450a0a;
    padding: 1rem;
    color: #fca5a5;
    border-radius: 8px;
}

.blazor-error-boundary::after {
    content: "Une erreur s'est produite.";
}
