/* Общие стили для PWA */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    padding-bottom: 70px; /* Отступ снизу, чтобы контент не перекрывался меню */
}

/* Контейнер для экранов */
#app-container {
    padding: 20px;
    box-sizing: border-box;
}

/* Нижнее навигационное меню (Таббар) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: #ffffff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.bottom-nav button {
    background: none;
    border: none;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 10px;
    width: 100%;
    transition: color 0.2s ease;
}

.bottom-nav button:hover, 
.bottom-nav button:focus {
    color: #007bff; /* Подсветка активной кнопки */
}

/* Кнопка установки PWA */
.hidden {
    display: none !important;
}

#install-banner {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #007bff;
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 15px;
    width: 90%;
    max-width: 400px;
    box-sizing: border-box;
}

#install-banner p {
    margin: 0;
    font-size: 14px;
    flex-grow: 1;
    line-height: 1.3;
}

#install-button {
    background: white;
    color: #007bff;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 13px;
    white-space: nowrap;
    transition: background 0.2s;
}

#install-button:hover {
    background: #f1f1f1;
}