﻿.app-shell {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: #171717;
    color: #fff;
    flex: 0 0 260px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #2a2a2a;
}

.sidebar__brand {
    padding: 18px 16px;
    border-bottom: 1px solid #2a2a2a;
}

.sidebar__title {
    font-weight: 800;
    letter-spacing: 0.5px;
}

.sidebar__subtitle {
    opacity: 0.7;
    font-size: 12px;
    margin-top: 4px;
}

.sidebar__nav {
    padding: 10px 0;
    overflow-y: auto;
}

.menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-item {
    margin: 2px 0;
}

.menu-link,
.submenu-link {
    display: block;
    padding: 12px 16px;
    color: #d6d6d6;
    text-decoration: none;
    border-radius: 10px;
    margin: 0 10px;
}

    .menu-link:hover,
    .submenu-link:hover {
        background: #242424;
        color: #fff;
    }

.is-active {
    background: #2f2f2f;
    color: #fff !important;
}

.menu-group {
    margin: 6px 0;
}

.menu-header {
    width: calc(100% - 20px);
    margin: 0 10px;
    padding: 12px 16px;
    background: transparent;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .menu-header:hover {
        background: #242424;
    }

.menu-arrow {
    opacity: 0.8;
    transform: rotate(0deg);
    transition: transform 0.15s ease-in-out;
}

/* Submenu */
.submenu {
    list-style: none;
    padding: 6px 0 8px 0;
    margin: 0;
    display: none;
}

    .submenu.is-open {
        display: block;
    }

.submenu-link {
    padding-left: 28px;
    font-size: 14px;
    margin: 2px 10px;
}

/* Content */
.app-content {
    flex: 1;
    background: #f5f6f7;
    display: flex;
    flex-direction: column;
}

.app-topbar {
    height: 56px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
}

.app-topbar__title {
    font-weight: 700;
}

.user-badge {
    font-size: 13px;
    opacity: 0.85;
}

.app-page {
    padding: 16px;
}

/* Mobile */
.mobile-menu-btn {
    display: none;
    margin-right: 10px;
    font-size: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
}

@media (max-width: 980px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        transform: translateX(-100%);
        transition: transform 0.2s ease-in-out;
        z-index: 1000;
    }

        .sidebar.is-open {
            transform: translateX(0);
        }

    .mobile-menu-btn {
        display: inline-block;
    }

    .app-shell {
        display: block;
    }

    .sidebar-header {
        background: #000;
        padding: 14px 16px;
        display: flex;
        align-items: center;
        gap: 12px;
        overflow: hidden; /* nix darf raus */
        border-bottom: 1px solid rgba(255,255,255,.08);
    }

    .sidebar-logo-wrap {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
    }

    .sidebar-logo {
        height: 28px; /* <<< klein, sicher */
        width: auto;
        max-width: 110px; /* <<< verhindert “zu breit” */
        display: block;
    }

    .sidebar-title .title {
        color: #fff;
        font-size: 18px;
        font-weight: 700;
        line-height: 1.1;
    }

    .sidebar-title .subtitle {
        color: #fff;
        font-size: 12px;
        opacity: .7;
        line-height: 1.1;
    }
}
