:root {
    --shell-sidebar-width: 260px;
    --shell-sidebar-bg: linear-gradient(180deg, #13293d 0%, #0b1f30 100%);
    --shell-sidebar-border: rgba(255, 255, 255, 0.08);
    --shell-sidebar-text: rgba(225, 236, 245, 0.86);
    --shell-sidebar-muted: rgba(214, 231, 244, 0.62);
    --shell-sidebar-active: linear-gradient(135deg, rgba(45, 212, 191, 0.26), rgba(15, 118, 110, 0.28));
}

body.app-shell {
    min-height: 100vh;
    overflow-x: hidden;
}

body.app-shell .app-shell-main {
    flex: 1 1 auto;
    min-height: 100vh;
    min-width: 0;
    width: calc(100% - var(--shell-sidebar-width));
    margin-left: var(--shell-sidebar-width);
}

body.app-shell .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--shell-sidebar-width);
    padding: 20px 14px 18px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background:
        radial-gradient(circle at top, rgba(45, 212, 191, 0.12), transparent 30%),
        var(--shell-sidebar-bg);
    border-right: 1px solid var(--shell-sidebar-border);
    color: #fff;
    z-index: 1000;
}

body.app-shell .sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 8px 18px;
    margin-bottom: 12px;
    color: #f8fbff;
    text-decoration: none;
}

body.app-shell .sidebar-logo__icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.22), rgba(20, 184, 166, 0.42));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

body.app-shell .sidebar-logo__text {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

body.app-shell .sidebar-group + .sidebar-group {
    margin-top: 18px;
}

body.app-shell .sidebar-group-title {
    margin: 0 8px 10px;
    color: var(--shell-sidebar-muted);
    font-size: 11px;
    line-height: 1.4;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 800;
}

body.app-shell .sidebar-group-items {
    display: grid;
    gap: 6px;
}

body.app-shell .sidebar-nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 16px;
    color: var(--shell-sidebar-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

body.app-shell .sidebar-nav-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateX(2px);
}

body.app-shell .sidebar-nav-item.active {
    color: #fff;
    background: var(--shell-sidebar-active);
    border-color: rgba(94, 234, 212, 0.34);
    box-shadow: 0 10px 24px rgba(5, 150, 105, 0.16);
}

body.app-shell .sidebar-nav-item.active::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 9px;
    bottom: 9px;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, #99f6e4 0%, #2dd4bf 100%);
}

body.app-shell .sidebar-nav-item__icon {
    width: 20px;
    flex: 0 0 20px;
    text-align: center;
    color: rgba(186, 230, 253, 0.92);
}

body.app-shell .sidebar-nav-item__label {
    flex: 1;
    min-width: 0;
}

body.app-shell .sidebar-divider {
    margin: 20px 8px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(214, 231, 244, 0.2), transparent);
}

body.app-shell .sidebar-footer {
    margin-top: auto;
    padding-top: 18px;
}

body.app-shell .sidebar-footer-card {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

@media (max-width: 960px) {
    body.app-shell .app-shell-main {
        width: 100%;
        margin-left: 0;
    }

    body.app-shell .sidebar {
        position: static;
        width: 100%;
        inset: auto;
        min-height: auto;
    }
}
