
#jazzy-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    height: 100vh !important;
    width: 100% !important;
    max-width: 300px !important;
    background: #37363d !important;
    transform: translateX(-100%) !important;
    transition: transform 0.3s ease !important;
    z-index: 1030 !important;
    pointer-events: all !important;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3) !important;
    display: block !important;
    visibility: visible !important;
}

body.sidebar-open #jazzy-sidebar {
    transform: translateX(0) !important;
}

/* Добавляем стили для отладки */
body.sidebar-open {
    overflow: hidden !important;
}

#sidebar-overlay {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.5) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
    z-index: 22029 !important;
    pointer-events: none !important;
}

body.sidebar-open #sidebar-overlay {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

#sidebarToggle {
    cursor: pointer !important;
    background: none !important;
    border: none !important;
    color: inherit !important;
    padding: 0.5rem !important;
}

#sidebarToggle:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-radius: 4px !important;
}

/* Кнопка закрытия sidebar */
.sidebar-close-btn {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border: 0 !important;
    border-radius: 50% !important;
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    color: #fff !important;
    font-size: 18px !important;
    transition: all 0.3s ease !important;
    z-index: 1031 !important;
    opacity: 60%;
    backdrop-filter: blur(10px) !important;
}

.sidebar-close-btn:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    transform: scale(1.05) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

.sidebar-close-btn:active {
    transform: scale(0.95) !important;
}

.sidebar-close-btn:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3) !important;
}

/* Анимация появления кнопки */
body.sidebar-open .sidebar-close-btn {
    animation: fadeInScale 0.3s ease !important;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Стили для содержимого sidebar */
#jazzy-sidebar .sidebar {
    height: 100% !important;
    overflow-y: auto !important;
    padding: 20px !important;
    color: #fff !important;
}

#jazzy-sidebar .user-panel {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding-bottom: 20px !important;
    margin-bottom: 20px !important;
}

#jazzy-sidebar .nav-sidebar {
    margin-top: 20px !important;
}

/* Стили для навигации в sidebar */
#jazzy-sidebar .nav-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 10px 15px !important;
    border-radius: 4px !important;
    margin-bottom: 5px !important;
    transition: all 0.3s ease !important;
}

#jazzy-sidebar .nav-sidebar .nav-link:hover {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
}

#jazzy-sidebar .nav-sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
}

/* Дополнительные стили для отладки */
#jazzy-sidebar * {
    box-sizing: border-box !important;
}

/* Убеждаемся, что sidebar не скрыт другими стилями */
#jazzy-sidebar {
    clip: auto !important;
    clip-path: none !important;
    -webkit-clip-path: none !important;
}