/* File: voice-notebook/css/sidebar.css */
/* Боковая панель для голосового блокнота */
.sidebar {
    position: fixed;
    left: -250px;
    top: 0;
    bottom: 0;
    width: 250px;
    background: rgba(0, 40, 45, 0.95);
    transition: left 0.3s ease;
    z-index: 100;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    height: 100vh;
    font-size: 14px;
}

.sidebar.active {
    left: 0;
}

.sidebar nav {
    padding: 70px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

/* Пункты меню (ссылки на заметки) */
.sidebar .note-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 4px;
    transition: background-color 0.2s;
    width: 100%;
    cursor: pointer;
    box-sizing: border-box;
}

.sidebar .note-item:hover,
.sidebar .note-item.active {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Кнопка открытия/закрытия меню */
.toggle-sidebar {
    position: fixed;
    left: 15px;
    top: 15px;
    background: rgba(0, 150, 200, 0.7);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 50%;
    z-index: 101;
    transition: all 0.2s;
}

.toggle-sidebar:hover {
    background: rgba(0, 170, 220, 0.9);
    transform: scale(1.05);
}

/* Когда меню открыто – смещаем основную часть вправо */
.sidebar.active ~ .note-container {
    margin-left: 250px;
    width: calc(100% - 250px);
}

@media (max-width: 768px) {
    .sidebar {
        width: 80%;
        left: -80%;
    }
    .sidebar.active ~ .note-container {
        margin-left: 0;
        width: 100%;
    }
}