.instruction-toggle-button {
    z-index: 1000;
}

/* Общие стили для кнопок внутри панели */
.menu-button,
.instruction-toggle-button,
.mode-toggle-button {
    width: 34px;
    height: 34px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 5px 0; /* Вертикальный отступ между кнопками */
}

.menu-button img, .mode-toggle-button img, .instruction-toggle-button img {
    width: 24px;
    height: 24px;
}

.menu-dropdown {
    position: absolute;
    top: 100%; /* Под панелью */
    right: 0;
    background: white; /* Как у dropdownFooter-content */
    padding: 5px; /* Как у dropdownFooter-content */
    border: 1px solid #ccc; /* Как у dropdownFooter-content */
    border-radius: 10px; /* Как у dropdownFooter-content */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Как у dropdownFooter-content */
    z-index: 2000;
}

/* Скрытие выпадающего меню */
.menu-dropdown.hidden {
    display: none;
}

/* Стили пунктов меню */
.menu-item {
    padding: 10px 15px; /* Как у footer-btn */
    cursor: pointer; /* Как у footer-btn */
    font-family: 'Roboto', sans-serif; /* Как у body */
    font-size: 14px; /* Как у footer-btn */
    text-align: left; /* Как у footer-btn в dropdown */
    background: #F9F9F9; /* Как у footer-btn */
    color: black; /* Как у footer-btn */
    border: 1px solid #b3b3b3; /* Как у footer-btn */
    border-radius: 10px; /* Как у footer-btn */
    transition: background 0.3s ease; /* Как у footer-btn */
    display: flex; /* Сохраняем для выравнивания иконок */
    align-items: center;
    gap: 5px; /* Отступ между иконкой и текстом */
}

.menu-item:hover, .menu-item:active {
    background: #cfcfcf; /* Как у footer-btn:hover */
}

/* Для select внутри menu-item */
.menu-item select {
    margin-left: 10px;
    padding: 5px;
    border: 1px solid #b3b3b3;
    border-radius: 5px;
}

/* Панель меню */
.menu-panel {
    position: fixed;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

/* Модальное окно (без изменений) */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    font-family: 'Comfortaa', cursive;
}

.modal-content h2 {
    font-family: 'Lobster', cursive;
    color: #D00000;
}

.modal-content label {
    display: block;
    margin: 10px 0 5px;
}

.modal-content input, .modal-content button {
    width: 100%;
    padding: 8px;
    margin: 5px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
}

.modal-content button {
    background: #FFD700;
    cursor: pointer;
}

.tabs {
    display: flex;
    border-bottom: 1px solid #ccc;
    margin-bottom: 20px;
}

.tab-button {
    flex: 1;
    padding: 10px;
    background: #f1f1f1;
    border: none;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    text-align: center;
}

.tab-button.active {
    background: #FFD700;
    font-weight: bold;
}

.tab-content {
    display: none;
}

/* .view-mode .menu-panel {
    display: none !important;
} */