/* bot_app/web_app/css/layout.css */

/* Хедер */
#top-bar {
    position: fixed; top: 0; left: 0; right: 0; height: 60px;
    background-color: var(--bg-color);
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 15px; z-index: 1200; /* Увеличено */
}
#top-bar-avatar { width: 44px; height: 44px; border-radius: 8px; cursor: pointer; }

#top-bar-balance-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--bg-color);
    border: 1px solid var(--secondary-color);
    border-radius: 12px;
    padding: 5px 8px;
}
.balance-item { display: flex; align-items: center; gap: 5px; padding: 0 5px; font-weight: bold; }
.balance-icon { display: inline-block; width: 18px; height: 18px; vertical-align: middle; margin-left: 2px; margin-right: 2px; }
.balance-icon svg { width: 100%; height: 100%; }

/* Основной контейнер */
#app { display: flex; flex-direction: column; height: 100vh; }
#main-content { flex-grow: 1; overflow-y: auto; padding: 60px 15px 80px; }

/* Стили страниц */
.page {
    display: none;
}
.page.active {
    display: block;
}
#friends-page {
    padding-top: 20px;
}

.page-header {
    display: flex;
    justify-content: center; /* Center the content (the h1) */
    align-items: center;
    position: relative; /* New: for absolute positioning of the button */
    margin-bottom: 25px;
    padding-top: 10px;
}

.page-header h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 500;
    text-align: center;
}

/* Кнопка "Назад" */
.back-btn {
    background-color: transparent;
    border: none;
    color: var(--text-color);
    width: 44px;
    height: 44px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: absolute; /* New */
    left: 0; /* New: Aligns to the left of the page-header container */
}


/* Нижняя навигация */
#bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; display: flex; justify-content: center; gap: 15px; background-color: var(--bg-color); padding: 10px 5px; z-index: 1200; /* Увеличено */ }
.nav-btn { background: transparent; border: none; color: #8e8e93; font-size: 15px; cursor: pointer; padding: 8px 18px; border-radius: 10px; transition: color 0.2s; }
.nav-btn svg { fill: currentColor; transition: fill 0.2s; }
.nav-btn.active { color: #28a745; font-weight: bold; }
.nav-btn:not(.active):hover { color: #fff; }
.nav-btn-with-icon { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.nav-btn-with-icon svg { width: 28px; height: 28px; }