/* webapp/css/layout.css */

#app-container {
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    z-index: 1;
    padding: 0; /* Базовый, тема Modern Gradient его переопределит */
}

#app-content {
    flex-grow: 1;
    padding: 1rem; /* Стандартный отступ для большинства тем */
    padding-bottom: 70px; /* Место для нижней навигации */
}

/* Общие стили для шапки */
#header-title-logo {
    display: flex;
    align-items: center;
    justify-content: center; /* Базовое выравнивание по центру */
    margin-bottom: 1.5rem;
    cursor: pointer;
}
#header-title-logo h1 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-right: 0.5rem;
    /* Цвет текста будет задан темой */
}
#header-title-logo .header-logo-en-accent {
    /* Акцентный цвет будет задан темой */
}
#header-title-logo .app-logo-icon {
    width: 70px; /* Глобальный размер, как просили */
    height: 70px;
    vertical-align: middle;
    /* fill/color будет задан темой */
}

/* Общие стили для нижней навигации */
#bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 60px; /* Фиксированная высота */
    display: flex; /* Добавлено для выравнивания .nav-item */
    justify-content: space-around; /* Равномерное распределение элементов */
    padding: 0; /* Убраны внутренние отступы, т.к. .nav-item имеют свои */
    /* background-color и border-top будут заданы темой */
}

.nav-item {
    flex-grow: 1;
    text-align: center;
    padding: 4px 2px;
    cursor: pointer;
    font-size: 0.65rem; /* Базовый размер шрифта */
    font-weight: bold;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    transition: color 0.2s ease, background-color 0.2s ease, background 0.2s ease;
    /* color и active state background будут заданы темой */
}

.nav-item span.icon svg,
.nav-item .material-symbols-rounded { /* Для Material Symbols */
    width: 22px;
    height: 22px;
    stroke: currentColor; /* Для SVG с stroke */
    fill: none; /* Для SVG с fill (как Material Symbols, которые используют font color) */
    margin-bottom: 2px;
    display: block; /* Чтобы margin-bottom работал */
}

/* Общие стили для страниц (вкладок) */
.page-content {
    display: none; /* Скрыты по умолчанию */
    opacity: 0;
    width: 100%;
    will-change: opacity;
    /* Анимация появления/скрытия будет в base.css */
}

.page-content.active {
    display: block;
    /* opacity и transition будут управляться классами fade-in-visible из base.css */
}

/* Общие стили для плавающих кнопок */
#floating-action-buttons {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 110;
    display: flex;
    gap: 0.75rem;
}

.floating-action-button {
    width: 30px;
    height: 30px;
    padding: 0.2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border: 1px solid transparent;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    /* background-color и color будут заданы темой */
}
.floating-action-button .material-symbols-rounded {
    font-size: 18px;
    line-height: 1;
    color: currentColor;
    user-select: none;
}
.floating-action-button:hover,
.floating-action-button:focus,
.floating-action-button:focus-visible {
    outline: none;
    /* border-color и box-shadow для фокуса будут заданы темой */
}

/* App initializing message and auth blocker - base layout */
#app-initializing-message,
#auth-blocker-overlay {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem; /* p-8 */
    text-align: center;
}
#app-initializing-message svg,
#auth-blocker-overlay svg.app-logo-icon {
    height: 3rem; /* h-12 or h-16 */
    width: 3rem; /* w-12 or w-16 */
    margin-bottom: 1rem; /* mb-4 or mb-6 */
}
#app-initializing-message h2,
#auth-blocker-overlay h2 {
    font-size: 1.25rem; /* text-xl or text-2xl */
    font-weight: 600; /* font-semibold or font-bold */
    margin-bottom: 0.25rem; /* mb-1 or mb-3 */
}
#app-initializing-message p,
#auth-blocker-overlay p {
    font-size: 0.875rem; /* text-sm or text-md */
    margin-bottom: 1.5rem; /* mb-6 for auth blocker */
}
#auth-blocker-overlay p:last-child {
    font-size: 0.75rem; /* text-xs */
    opacity: 0.7;
    margin-bottom: 0;
}

#app-main-content {
    display: flex; /* Базовый display, будет .hidden при инициализации */
    flex-grow: 1;
    flex-direction: column;
}
