@media (min-width: 992px) {
    body.sidebar-collapsed #sidenav-main {
        transform: translateX(-100%);
    }

    body.sidebar-collapsed .main-content {
        margin-left: 0 !important;
    }

    #sidenav-main,
    .main-content {
        transition: transform 0.18s ease, margin-left 0.18s ease;
    }
}

.sidebar-toggle-button {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.sidebar-toggle-button:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.28);
}

.sidebar-toggle-icon {
    width: 18px;
    height: 14px;
    position: relative;
    display: inline-block;
}

.sidebar-toggle-icon span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 999px;
    transition: transform 0.18s ease, opacity 0.18s ease, top 0.18s ease;
}

.sidebar-toggle-icon span:nth-child(1) {
    top: 0;
}

.sidebar-toggle-icon span:nth-child(2) {
    top: 6px;
}

.sidebar-toggle-icon span:nth-child(3) {
    top: 12px;
}

body.sidebar-collapsed .sidebar-toggle-icon span:nth-child(1) {
    top: 6px;
    transform: rotate(45deg);
}

body.sidebar-collapsed .sidebar-toggle-icon span:nth-child(2) {
    opacity: 0;
}

body.sidebar-collapsed .sidebar-toggle-icon span:nth-child(3) {
    top: 6px;
    transform: rotate(-45deg);
}

.sidebar-footer-panel {
    width: 100%;
    margin-top: 1rem;
    padding: .85rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.sidebar-guide-button {
    width: 100%;
    min-height: 50px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: .7rem;
    color: #fff;
    background: #256e4f;
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: .55rem .65rem;
    box-shadow: 0 12px 28px rgba(37, 110, 79, 0.28);
    text-align: left;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.sidebar-guide-button:hover {
    color: #fff;
    background: #1f5d43;
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 14px 30px rgba(37, 110, 79, 0.34);
    transform: translateY(-1px);
}

.sidebar-guide-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
    color: inherit;
    flex: 0 0 auto;
}

.sidebar-guide-button:hover .sidebar-guide-icon {
    background: rgba(255, 255, 255, 0.22);
}

.sidebar-guide-copy {
    min-width: 0;
    display: grid;
    gap: .1rem;
}

.sidebar-guide-text {
    font-size: .82rem;
    font-weight: 800;
    line-height: 1.2;
    white-space: normal;
}

.sidebar-guide-help {
    color: rgba(255, 255, 255, 0.72);
    font-size: .68rem;
    font-weight: 600;
    line-height: 1.15;
}

.sidebar-product-signature {
    padding-top: .5rem;
    text-align: center;
}

.sidebar-product-name {
    color: rgba(255, 255, 255, 0.92);
    font-size: .86rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: .08em;
}

.sidebar-product-credit {
    color: rgba(255, 255, 255, 0.58);
    font-size: .68rem;
    line-height: 1.35;
    margin-top: .35rem;
}

.sidebar-product-credit a {
    color: rgba(255, 255, 255, 0.84);
}

.sidebar-product-credit a:hover {
    color: #fff;
}

@media (max-width: 575.98px) {
    .sidebar-guide-button {
        justify-content: center;
    }
}
