body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0D0D1A, #16162A);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease-out;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

.loading-container.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    color: #fff;
}

.loading-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
}

.spinner-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: #FFB300;
    border-radius: 50%;
    animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.spinner-circle-2 {
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    border-top-color: #00BCD4;
    animation-delay: -0.4s;
    animation-direction: reverse;
}

.spinner-circle-3 {
    width: 40%;
    height: 40%;
    top: 30%;
    left: 30%;
    border-top-color: #7C4DFF;
    animation-delay: -0.2s;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff, #FFB300);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loading-text p {
    font-size: 1rem;
    color: #B0B0C0;
    transition: opacity 0.3s ease;
    min-height: 1.5em;
}

.loading-text p.hide {
    opacity: 0;
}

.mud-snackbar {
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.mud-snackbar.mud-alert-filled-success {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.85), rgba(56, 142, 60, 0.85)) !important;
}

.mud-snackbar.mud-alert-filled-error {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.85), rgba(211, 47, 47, 0.85)) !important;
}

.mud-snackbar.mud-alert-filled-warning {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.85), rgba(245, 124, 0, 0.85)) !important;
}

.mud-snackbar.mud-alert-filled-info {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.85), rgba(25, 118, 210, 0.85)) !important;
}

#blazor-error-ui {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.95), rgba(211, 47, 47, 0.95));
    backdrop-filter: blur(12px);
    bottom: 0;
    box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.4);
    display: none;
    left: 0;
    padding: 1rem 1.5rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    color: white;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 1.5rem;
    top: 0.75rem;
}

#blazor-error-ui .reload {
    color: #00BCD4;
    text-decoration: underline;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1A1A2E;
}

::-webkit-scrollbar-thumb {
    background: #FFB300;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #FFCA28;
}

::selection {
    background: rgba(255, 179, 0, 0.4);
    color: #fff;
}
