/* =========================
   GLOBAL RESET (OK)
========================= */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
}


.dark .app-shell .sidebar {
    background: rgba(37, 37, 58, 0.85);
}
.light .app-shell .sidebar {
    background: rgba(214, 214, 214, 0.85);
}



/* box-sizing ok global */
*, *::before, *::after {
    box-sizing: border-box;
}

/* =========================
   APP ROOT ISOLATION
========================= */
.app-shell {
    display: flex;
    height: 100dvh;    
}

/* =========================
   SIDEBAR
========================= */
.app-shell .sidebar {
    width: 260px;
    flex-shrink: 0;
    backdrop-filter: blur(12px);
    border-right: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: width 0.25s ease;
}

.app-shell .sidebar.collapsed {
    width: 72px;
}

/* LOGO */
.app-shell .logo {
    font-size: 26px;
    padding: 20px;
    text-align: center;
}

/* NAV */
.app-shell .nav-section {
    display: flex;
    flex-direction: column;
    padding: 10px;
    gap: 6px;
}

.app-shell .nav-section.bottom {
    margin-top: auto;
    margin-bottom: 30px;
}

/* SECTION TITLE */
.app-shell .section-title {
    font-size: 10px;
    opacity: 0.5;
    margin: 10px 10px 5px;
}

/* NAV ITEM */
.app-shell .nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
    color: inherit;
}

.app-shell .nav-item:hover {
    background: rgba(255,255,255,0.06);
}

.app-shell .nav-item.active {
    background: rgba(0,150,255,0.18);
}

/* ICON */
.app-shell .icon {
    width: 24px;
    text-align: center;
}

/* LABEL */
.app-shell .label {
    font-size: 14px;
}

/* COLLAPSE */
.app-shell .sidebar.collapsed .label {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

/* TOGGLE */
.app-shell .toggle {
    position: absolute;
    bottom: 5px;
    right: 0px;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 18px;
    opacity: 0.7;
    padding: 10px;
}

/* Button Grundsetup */
.toggle {
    position: absolute;
    bottom: 15px;
    right: 10px;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 18px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}



/* =========================
   CONTENT ISOLATION
========================= */

.app-shell #content {
    flex: 1;
    min-width: 0;
    padding: 20px;
    overflow-x: hidden;
    transition: all 0.25s ease;
}


@media (max-width: 700px) {
    .app-shell .sidebar {
        width: 160px;
    }
}