:root {
    --pico-font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --pico-border-radius: 0.75rem;
    --pico-primary: #3949ab;
    --pico-primary-background: #3949ab;
    --pico-primary-hover: #283593;
    --pico-muted-border-color: rgba(0, 0, 0, 0.12);
}

@media (prefers-color-scheme: light) {
    :root {
        --pico-background-color: #fcfcfd;
        --card-background: #ffffff;
        --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        --logo-url: url('/img/logo.svg');
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --pico-background-color: #11191f;
        --card-background: #1a232e;
        --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.18);
        --logo-url: url('/img/logo_lt.svg');
    }
}

body {
    background-color: var(--pico-background-color);
    transition: background-color 0.3s ease;
    margin: 0;
    font-family: var(--pico-font-family);
}

h1, h2, h3, h4, h5, h6 {
    border: none !important;
    outline: none !important;
}

.logo-link {
    display: inline-block;
    text-decoration: none;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.site-logo {
    height: 2.5rem;
    width: auto;
    border: none !important;
    outline: none !important;
}

.nav-profile-img {
    height: 2rem;
    width: 2rem;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
    border: 1px solid var(--pico-muted-border-color);
}

.profile-link {
    padding: 0 !important;
    display: flex;
    align-items: center;
}

.profile-placeholder {
    font-size: 1.5rem;
    line-height: 1;
}

.page-card {
    padding: 1.5rem;
}

.footer {
    margin-top: 2rem;
    padding: 1rem 0 2rem;
    text-align: center;
}

.mud-nav-link,
.mud-nav-link .mud-nav-link-text {
    color: inherit;
}

.main-content {
    padding: 1.5rem 1rem 0;
}

@media (min-width: 992px) {
    .main-content {
        padding: 2rem 1.5rem 0;
    }
}

#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;
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100vw;
    background-color: var(--pico-background-color);
}

.loading-logo {
    width: 120px;
    height: 120px;
    background-image: var(--logo-url);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.7; }
}
