/* ── Sidebar Navigation ─────────────────────────────── */

.app-layout {
    display: flex;
    min-height: 100vh;
}

.app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 56px;
    height: 100vh;
    background: #000000;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: width 0.2s ease;
    overflow: hidden;
}

.app-sidebar:hover {
    width: 180px;
}

.app-sidebar-logo {
    height: 56px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}

.app-sidebar-logo svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: #FFFFFF;
    stroke: #FFFFFF;
}

.app-sidebar-logo span {
    margin-left: 12px;
    color: #FFFFFF;
    font-family: 'JetBrains Mono', 'Menlo', monospace;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: -0.02em;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.app-sidebar:hover .app-sidebar-logo span {
    opacity: 1;
}

.app-sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 8px 0;
    gap: 2px;
}

.app-sidebar-link {
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 16px;
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    position: relative;
}

.app-sidebar-link:hover {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.75);
}

.app-sidebar-link.active {
    color: #FFFFFF;
    background: rgba(255,255,255,0.1);
}

.app-sidebar-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: #FFFFFF;
    border-radius: 0 1px 1px 0;
}

.app-sidebar-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.app-sidebar-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.app-sidebar-label {
    margin-left: 12px;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 400;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.app-sidebar:hover .app-sidebar-label {
    opacity: 1;
}

.app-sidebar-spacer {
    flex: 1;
}

/* ── Main Content Area ──────────────────────────────── */

.app-main {
    margin-left: 56px;
    flex: 1;
    min-width: 0;
}

/* Override existing container to work inside sidebar layout */
.app-main .container,
.app-main .mn-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px;
}

/* ── Mobile Responsive ──────────────────────────────── */

@media (max-width: 768px) {
    .app-sidebar {
        width: 0;
        transform: translateX(-56px);
    }

    .app-sidebar.mobile-open {
        width: 180px;
        transform: translateX(0);
    }

    .app-main {
        margin-left: 0;
    }

    .app-mobile-toggle {
        display: flex !important;
    }
}

.app-mobile-toggle {
    display: none;
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1001;
    width: 36px;
    height: 36px;
    border: none;
    background: #000000;
    color: #FFFFFF;
    border-radius: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
