html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--color-bg);
    color: var(--color-text);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

main {
    flex: 1;
}

.container {
    max-width: var(--content-width);
}

.navbar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar-brand {
    letter-spacing: -0.03em;
}

.nav-link {
    transition:
        color var(--transition-fast),
        opacity var(--transition-fast);
}

.nav-link.active {
    font-weight: 600;
}

footer {
    border-top: 1px solid var(--color-border);
}
.app-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--color-border);
}

.app-header .navbar {
    min-height: 72px;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.app-header .navbar-brand {
    color: var(--color-text);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.app-header .navbar-brand:hover {
    color: var(--color-text);
}

.app-header .nav-link {
    position: relative;
    color: var(--color-text-muted);
    font-weight: 500;
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.85rem !important;
}

.app-header .nav-link:hover {
    color: var(--color-text);
    background: var(--color-surface-muted);
}

.app-header .nav-link.active {
    color: var(--color-primary);
    background: rgba(37, 99, 235, 0.08);
}

.navbar-user {
    min-width: 0;
}

.user-summary {
    line-height: 1.2;
}

.user-name {
    color: var(--color-text);
    font-size: 0.875rem;
    font-weight: 600;
}

.user-email {
    max-width: 220px;
    margin-top: 0.2rem;
    overflow: hidden;
    color: var(--color-text-muted);
    font-size: 0.75rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-footer {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 1.5rem 0;
}

.footer-brand,
.footer-meta {
    font-size: 0.8rem;
}

@media (max-width: 991.98px) {
    .app-header .navbar-collapse {
        padding-top: 1rem;
        padding-bottom: 0.5rem;
    }

    .navbar-user {
        align-items: flex-start !important;
        flex-direction: column;
        margin-top: 1rem;
    }
}