/* app.css - Blazor Blueprint with Sliced Theme */

/* Loading Screen */
.custom-loading-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-color: #f9fbfd;
    color: #6a69f5;
    font-family: 'Cerebri Sans', 'Roboto', sans-serif;
}

.custom-loading-screen .loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid #e2e6eb;
    border-top-color: #6a69f5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.custom-loading-screen .loading-text {
    margin-top: 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: #94989a;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Language Selector - Topbar */
.language-selector {
    min-width: 100px;
    max-width: 140px;
}

.language-selector .mud-select {
    font-size: 0.875rem;
}

/* Blazor Error UI */
#blazor-error-ui {
    background: #f1416c;
    color: white;
    bottom: 0;
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.15);
    display: none;
    left: 0;
    padding: 0.75rem 1.25rem;
    position: fixed;
    right: 0;
    z-index: 1000;
}

#blazor-error-ui .reload {
    color: white;
    text-decoration: underline;
    margin-left: 0.5rem;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

/* Help Box in Sidebar */
.help-box {
    background: linear-gradient(135deg, #6a69f5 0%, #5a59e5 100%);
}

/* RemixIcon sizing helper */
.ri-lg {
    font-size: 1.25rem;
}

.ri-xl {
    font-size: 1.5rem;
}

.ri-2x {
    font-size: 2rem;
}

/* Utility: text truncate */
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Page transition */
.page-content {
    animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
