/* Logo */
.sidebar h1.app-name::before {
    content: "";
    display: inline-block;
    width: 80px;
    height: 45px;
    background: url('../images/logo.png') no-repeat;
    background-size: contain;
    margin-right: 10px;
    vertical-align: middle;
    position: relative;
    top: 2px;
}

/* Стили для оригинальной кнопки Docsify */
.sidebar-toggle-button {
    position: fixed !important;
    top: -2px !important;
    left: 18px !important;
    z-index: 1000 !important;
    width: 40px !important;
    height: 40px !important;
    background: white !important;
    border: none !important;
    border-radius: 10px !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.10) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    opacity: 0.8 !important;
}

.sidebar-toggle-button:hover {
    opacity: 1 !important;
}

/* Скрываем встроенные элементы кнопки */
.sidebar-toggle-button > * {
    display: none !important;
}

/* Иконка кнопки - когда сайдбар открыт (показать иконку "скрыть") */
.sidebar-toggle-button::before {
    content: '' !important;
    width: 24px !important;
    height: 24px !important;
    background: url("../images/sidebar-right.svg") no-repeat center !important;
    background-size: contain !important;
    transform: scale(0.85) !important;
    opacity: 0.8 !important;
}

/* Иконка кнопки - когда сайдбар скрыт (показать иконку "показать") */
body.close .sidebar-toggle-button::before {
    background: url("../images/sidebar-left.svg") no-repeat center !important;
}

/* Позиционирование кнопки когда сайдбар скрыт */
    body.close .sidebar-toggle-button {
    left: 20px !important;
}

/* Темная тема для кнопки */
@media (prefers-color-scheme: dark) {
    .sidebar-toggle-button {
        background: #2d2d2d !important;
    }

    .sidebar-toggle-button::before {
        filter: invert(1) !important;
    }
}

/* Хаки для мобильной верстки */
@media (max-width: 768px) {
    .sidebar-toggle-button {
        left: 12px !important;
        top: 12px !important;
    }

    .sidebar-toggle-button::before {
        transform: scale(0.75) !important;
    }

    article#main {
        padding-left: 20px !important;
        padding-right: 20px !important;
        padding-top: 60px !important;
    }
}


aside.sidebar {
    padding-bottom: 24px !important;
}

.sidebar .tool-logo-inline {
    display: none;
}