/* ===== МАКЕТ ПРИЛОЖЕНИЯ ===== */

.top-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: white;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    z-index: 100;
    display: flex;
    align-items: center;
}

.top-menu-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 24px;
    height: 100%;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
}

.btn-logout {
    padding: 8px 16px;
    background-color: var(--light);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-logout:hover {
    background-color: #f3f4f6;
    border-color: var(--primary);
    color: var(--primary);
}

/* ===== КОНТЕЙНЕР ПРИЛОЖЕНИЯ ===== */

.app-container {
    display: flex;
    height: calc(100vh - 70px);
    margin-top: 70px;
}

/* ===== БОКОВОЕ МЕНЮ ===== */

.sidebar {
    position: fixed;
    left: 0;
    top: 70px;
    width: 260px;
    height: calc(100vh - 70px);
    background: white;
    border-right: 1px solid var(--border);
    overflow-y: auto;
    padding: 20px;
    z-index: 99;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.nav-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 12px;
    margin-bottom: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
    border-left: 2px solid transparent;
}

.nav-item:hover {
    background: var(--light);
    color: var(--text-primary);
}

.nav-item.active {
    background: #dbeafe;
    color: var(--primary);
    font-weight: 600;
    border-left-color: var(--primary);
}

.nav-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== ОСНОВНОЙ КОНТЕНТ ===== */

.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 24px;
    overflow-y: auto;
    background: var(--light);
}

.page-section {
    display: none;
}

.page-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.section-header {
    margin-bottom: 32px;
}

.section-header h1 {
    margin-bottom: 4px;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
    .sidebar {
        width: 220px;
    }

    .main-content {
        margin-left: 220px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 200px;
        padding: 16px;
    }

    .main-content {
        margin-left: 200px;
        padding: 16px;
    }

    .section-header h1 {
        font-size: 24px;
    }
}

@media (max-width: 640px) {
    .sidebar {
        position: fixed;
        width: 70px;
        padding: 12px;
        left: 0;
        z-index: 98;
    }

    .main-content {
        margin-left: 70px;
        padding: 12px;
    }

    .nav-item {
        padding: 12px;
        justify-content: center;
    }

    .nav-item span:last-child {
        display: none;
    }

    .nav-title {
        display: none;
    }

    .nav-icon {
        margin: 0;
    }

    .section-header h1 {
        font-size: 20px;
        margin-bottom: 16px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}