:root {
    --sidebar-width: 280px;
}

/* Theme-aware logo switching */
.logo-light {
    display: none;
}

.logo-dark {
    display: inline-block;
}

[data-bs-theme="dark"] .logo-light {
    display: inline-block;
}

[data-bs-theme="dark"] .logo-dark {
    display: none;
}

body {
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    overflow-y: auto;
}

.main-content {
    margin-left: var(--sidebar-width);
}

.nav-link.active {
    font-weight: 600;
}

#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;
}

@media (max-width: 991.98px) {
    .sidebar {
        width: 100%;
        position: relative;
        height: auto;
    }

    .main-content {
        margin-left: 0;
    }
}

.toast-enter {
    animation: toast-slide-in 0.3s ease-out;
}

.toast-exit {
    animation: toast-slide-out 0.3s ease-in forwards;
}

@keyframes toast-slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toast-slide-out {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.news-card::after {
    content: "\2197";
    position: absolute;
    right: 1rem;
    top: 1rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.news-card:hover::after {
    opacity: 1;
}
