#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    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::after {
    content: "An error has occurred."
 }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #1b6ec2;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

.backdrop-blur {
    backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 0, 0.5) !important;
}

.name-column {
    width: 70%;
}

.quantity-column {
    width: 30%;
}

.semi-transparent-progress {
    opacity: 0.9; /* Ajustez la valeur pour définir le niveau de transparence */
}

.pale-text-with-shadow {
    color: rgba(255, 255, 255, 0.7); /* Couleur plus pâle */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Drop shadow */
}

.page-padding {
    padding-left: 20px; /* Adjust the padding value as needed */
    padding-right: 20px; /* Adjust the padding value as needed */
}

.chat-container {
    height: 80vh;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 1rem;
    border-radius: 8px;
}

.transparent-border {
    border: none !important;
    background-color: #fff;
    border-radius: 8px;
}

.custom-chip {
    border: 2px solid rgba(0, 0, 0, 0.1); /* Contour plus foncé */
    background-color: rgba(0, 0, 0, 0.1); /* Intérieur transparent à 30% */
    color: lightgray; /* Couleur du texte */
}


/* Add smooth scrolling */
html {
    scroll-behavior: smooth;
}

.mud-main-content {
    height: 100%;
    min-height: 100vh;
    display: flex;
}

.mud-chip {
    font-size: var(--mud-typography-default-size);
}

    .mud-chip.mud-chip-size-small {
        font-size: var(--mud-typography-body1-size);
    }

.mud-tabs {
    background-color: var(--mud-palette-surface);
}

.mud-input-control > .mud-input-control-input-container > .mud-input-label-inputcontrol {
    font-size: var(--mud-typography-subtitle1-size);
}

.mud-input > input.mud-input-root, div.mud-input-slot.mud-input-root {
    font-size: var(--mud-typography-default-size) !important;
}

.mud-input > textarea.mud-input-root {
    font-size: var(--mud-typography-default-size) !important;
}

.mud-simple-table table * tr > td, .mud-simple-table table * tr th {
    font-size: var(--mud-typography-default-size) !important;
}

.mud-expand-panel .mud-expand-panel-header {
    font-size: var(--mud-typography-default-size) !important;
}

.mud-button-year {
    font-size: var(--mud-typography-default-size) !important;
}

.mud-table-cell {
    font-size: var(--mud-typography-default-size) !important;
}

.mud-typography-subtitle2 {
    font-size: var(--mud-typography-subtitle2-size);
    color: var(--mud-palette-text-secondary);
}

.mud-typography-body1 {
    font-size: var(--mud-typography-body1-size);
}

.mud-typography-body2 {
    font-size: var(--mud-typography-body2-size);
}

.mud-button-outlined-size-small {
    font-size: var(--mud-typography-body2-size);
}

.mud-grid.readonly-grid > .mud-grid-item {
    border-bottom: 1px solid var(--mud-palette-table-lines);
    padding-bottom: 2px;
}

.mud-nav-link {
    white-space: normal !important;
}

.user-button {
    text-transform: none;
    background: rgba(var(--mud-palette-primary-rgb), 0.1)
}

.side-menu .mud-chip.mud-chip-size-small {
    font-size: 0.625rem;
    height: 1.125rem;
}

.mud-table.mud-data-grid .mud-toolbar {
    height: auto !important;
    padding: 1rem
}


.mud-table.mud-data-grid .mud-toolbar-gutters {
    height: auto !important;
    padding: 1rem
}

.mud-table.mud-data-grid .mud-table-toolbar {
    height: auto !important;
    padding: 1rem
}

.mud-table.mud-data-grid .mud-table-pagination-toolbar {
    height: auto !important;
    padding: 0rem !important;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDg2IDY2LjAxODMgMjYzLjU4NiA2Ni4wMTgzWk0yNjMuNTc2IDg2LjA1NDdDMjYxLjAwOSA4Ni4wNTQ3IDI1OS43ODUgODcuMzAwNSAyNTkuNzg2IDg5Ljc5MjEgMjU5Ljk1NiA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/* Updated loading-logo with increased size and pulse effect */
.loading-logo {
    opacity: 1;
    width: 225px; /* Enlarged logo size */
    height: auto; /* Maintain aspect ratio */
    animation: pulse 3s infinite;
}

/* Utility classes */
.transition {
    transition: opacity 1s ease-in-out;
}

.fade-out {
    opacity: 0;
}

.fade-in {
    opacity: 1;
}

.loading-container {
    text-align: center;
    margin-top: 15vh;
}

.loading-text {
    font-family: 'Roboto', sans-serif;
    font-size: 1.6em;
    font-weight: bold;
    color: #6177c7;
    margin-top: 1em;
}

.logo-text {
    font-family: 'Roboto', sans-serif;
    font-size: 4em;
    font-weight: bold;
    color: #6177c7;
    margin-top: 1em;
}

/* Keyframes for the pulse effect */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.full-height {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* DataGrid Organization improvements - Modern styling */
.cursor-pointer {
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.cursor-pointer:hover {
    transform: translateY(-2px);
    opacity: 0.85;
}

/* Organization card with hover effect */
.mud-paper {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mud-paper:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Badge pulse animation for interactive elements */
@keyframes badge-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.mud-badge-root:hover {
    animation: badge-pulse 1.5s ease-in-out infinite;
}

/* Smooth color transitions for chips */
.mud-chip {
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Avatar hover effect */
.mud-avatar {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mud-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Link styling */
a {
    color: var(--mud-palette-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--mud-palette-primary-darken);
    text-decoration: underline;
}

/* Icon button subtle animation */
.mud-icon-button {
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.mud-icon-button:hover {
    transform: rotate(15deg);
}

/* Loading overlay smooth fade */
.mud-overlay {
    backdrop-filter: blur(2px);
    transition: opacity 0.3s ease;
}

/* DataGrid row hover enhancement */
.mud-table-row:hover {
    background-color: rgba(var(--mud-palette-primary-rgb), 0.02) !important;
    transition: background-color 0.2s ease;
}

/* Tooltip improvements */
.mud-tooltip {
    backdrop-filter: blur(8px);
    background-color: rgba(33, 33, 33, 0.95) !important;
}

/* Menu animations */
.mud-menu-popover {
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom scrollbar for better UX */
.mud-table-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.mud-table-container::-webkit-scrollbar-track {
    background: var(--mud-palette-background-grey);
    border-radius: 4px;
}

.mud-table-container::-webkit-scrollbar-thumb {
    background: var(--mud-palette-grey-light);
    border-radius: 4px;
}

.mud-table-container::-webkit-scrollbar-thumb:hover {
    background: var(--mud-palette-grey);
}

.mud-table-container {
    background-color: var(--mud-palette-background-default) !important;
}

.mud-paper[style*="Elevation:2"], .mud-paper.pa-4 {
    border: 1.5px solid var(--mud-palette-lines-default);
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.10);
    background-color: var(--mud-palette-surface);
}