/* ============================================================
   layout.css — сайдбар и шапка для app-страниц
   (dashboard, events, chat, profile)
   ============================================================ */

body.app-page {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* ================= SIDEBAR ================= */
.sidebar {
    width: 240px;
    height: 100vh;
    background: #FFFFFF;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar .logo-area {
    padding: 28px;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    padding: 10px 18px;
    gap: 10px;
    flex-grow: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-gray);
    transition: all 0.2s;
    gap: 12px;
    cursor: pointer;
}

.nav-item:hover { background: #F4F8F7; }

.nav-item.active {
    background: var(--primary-green-light);
    color: var(--primary-green-hover);
}

.nav-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #C8D3D0;
    flex-shrink: 0;
}

.nav-item.active .nav-dot { background: var(--primary-green); }

/* Профиль внизу */
.sidebar-bottom {
    padding: 22px;
    border-top: 1px solid var(--border-color);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar,
.header-avatar {
    background: var(--primary-green-soft);
    color: var(--primary-green-hover);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
}

.user-avatar {
    width: 38px;
    height: 38px;
    font-size: 10px;
}

.header-avatar {
    width: 36px;
    height: 36px;
    font-size: 9px;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-info strong {
    font-size: 10px;
    font-weight: 700;
    line-height: 12px;
}

.user-info span {
    font-size: 8px;
    color: var(--text-gray);
    line-height: 10px;
    margin-top: 2px;
}

/* ================= MAIN ================= */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
}

/* ================= TOP HEADER ================= */
.top-header {
    height: 72px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    flex-shrink: 0;
}

.breadcrumbs {
    display: flex;
    gap: 6px;
    font-size: 10px;
    font-weight: 500;
}

.breadcrumbs span { color: var(--text-light); }
.breadcrumbs .separator { color: #BAC3C1; }
.breadcrumbs .current {
    color: var(--text-dark);
    font-weight: 700;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.date {
    font-size: 9px;
    font-weight: 500;
    color: var(--text-gray);
}

/* ================= Адаптив ================= */
@media (max-width: 900px) {
    .sidebar { width: 200px; }
    .top-header { padding: 0 20px; }
}