:root {
    --treffwerk-sidebar-width: 15rem;
    --treffwerk-sidebar-bg: #212529;
    --treffwerk-sidebar-text: #f8f9fa;
    --treffwerk-sidebar-muted: #adb5bd;
    --treffwerk-page-bg: #f1f3f5;
}

body {
    min-height: 100vh;
    background-color: var(--treffwerk-page-bg);
    color: #212529;
}

.app-shell {
    min-height: 100vh;
}

.app-sidebar {
    width: var(--treffwerk-sidebar-width);
    flex: 0 0 var(--treffwerk-sidebar-width);
    min-height: 100vh;
    background-color: var(--treffwerk-sidebar-bg);
    color: var(--treffwerk-sidebar-text);
}

.app-brand {
    padding: 1.25rem 1.25rem 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.app-nav-section {
    margin: 1.25rem 1rem 0.35rem;
    color: var(--treffwerk-sidebar-muted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.app-nav-link {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    margin: 0.125rem 0.625rem;
    padding: 0.625rem 0.875rem;
    border-radius: 0.375rem;
    color: var(--treffwerk-sidebar-text);
    text-decoration: none;
}

.app-nav-link:hover,
.app-nav-link:focus-visible {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.app-nav-link.active {
    background-color: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-weight: 600;
}

.app-main {
    min-width: 0;
}

.app-topbar {
    min-height: 4rem;
    background-color: #fff;
    border-bottom: 1px solid #dee2e6;
}

.app-user-menu {
    min-width: 0;
}

.app-user-menu .dropdown-toggle {
    max-width: min(16rem, 45vw);
}

.app-content {
    padding: 1.5rem;
}

.app-content-surface {
    min-height: calc(100vh - 7rem);
    padding: 1.5rem;
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
}

.offcanvas.app-mobile-sidebar {
    width: min(var(--treffwerk-sidebar-width), 85vw);
    background-color: var(--treffwerk-sidebar-bg);
    color: var(--treffwerk-sidebar-text);
}

@media (max-width: 991.98px) {
    .app-content {
        padding: 1rem;
    }

    .app-content-surface {
        min-height: calc(100vh - 6rem);
        padding: 1.25rem;
    }
}
