:root {
    --v4-sidebar-width: 250px;
    --v4-sidebar-bg: #111827;
    --v4-sidebar-panel: #182131;
    --v4-sidebar-text: #d1d5db;
    --v4-sidebar-muted: #778196;
    --v4-sidebar-hover: rgba(255,255,255,.055);
    --v4-primary: #4f7cff;
}

.v4-sidebar {
    height: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--v4-sidebar-bg);
    color: var(--v4-sidebar-text);
}

.v4-brand {
    min-height: 76px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.v4-brand-link {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
}

.v4-brand-mark {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: var(--v4-primary);
    color: #fff;
    font-size: 19px;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(79,124,255,.25);
}

.v4-brand-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.v4-brand-text strong {
    font-size: 15px;
    line-height: 21px;
    letter-spacing: .2px;
}

.v4-brand-text span {
    margin-top: 2px;
    color: #69758a;
    font-size: 9px;
    letter-spacing: 1.5px;
}

.v4-sidebar-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 18px 12px;
}

.v4-nav-section {
    margin-bottom: 22px;
}

.v4-nav-label {
    padding: 0 11px 8px;
    color: var(--v4-sidebar-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .8px;
}

.v4-nav-item {
    position: relative;
    min-height: 43px;
    margin: 3px 0;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 11px;
    border-radius: 9px;
    color: var(--v4-sidebar-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition:
        background .16s ease,
        color .16s ease,
        transform .16s ease;
}

.v4-nav-item:hover {
    background: var(--v4-sidebar-hover);
    color: #fff;
}

.v4-nav-item.is-active {
    background: rgba(79,124,255,.14);
    color: #fff;
}

.v4-nav-item.is-active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--v4-primary);
}

.v4-nav-icon {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: rgba(255,255,255,.055);
    color: #aab4c6;
    font-size: 11px;
    font-weight: 800;
}

.v4-nav-item.is-active .v4-nav-icon {
    background: var(--v4-primary);
    color: #fff;
}

.v4-sidebar-footer {
    padding: 13px;
    border-top: 1px solid rgba(255,255,255,.07);
}

.v4-system-status {
    min-height: 55px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--v4-sidebar-panel);
}

.v4-status-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34,197,94,.1);
}

.v4-system-status div {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.v4-system-status strong {
    color: #e5e7eb;
    font-size: 11px;
    font-weight: 600;
}

.v4-system-status span {
    margin-top: 2px;
    color: #6f7b8f;
    font-size: 10px;
}

@media (min-width: 901px) {
    .sidebar {
        width: var(--v4-sidebar-width);
    }

    .main {
        margin-left: var(--v4-sidebar-width);
    }
}
